Merge branch 'main' of https://github.com/Aircoookie/WLED into um-sht

This commit is contained in:
ezcGman
2022-12-15 01:38:54 +01:00
13 changed files with 650 additions and 641 deletions

View File

@@ -2,7 +2,7 @@
This usermod makes your staircase look cool by illuminating it with an animation. It uses
PIR or ultrasonic sensors at the top and bottom of your stairs to:
- Light up the steps in the direction you're your walking.
- Light up the steps in the direction you're walking.
- Switch off the steps after you, in the direction of the last detected movement.
- Always switch on when one of the sensors detects movement, even if an effect
is still running. It can gracefully handle multiple people on the stairs.

View File

@@ -235,7 +235,7 @@ private:
if (offTimerStart > 0 && millis() - offTimerStart > m_switchOffDelay) {
offTimerStart = 0;
if (enabled == true) {
if (!m_mqttOnly && (!m_nightTimeOnly || (m_nightTimeOnly && !isDayTime()))) switchStrip(false);
if (!m_mqttOnly && (!m_nightTimeOnly || (m_nightTimeOnly && !isDayTime()) || PIRtriggered)) switchStrip(false);
else if (NotifyUpdateMode != CALL_MODE_NO_NOTIFY) updateInterfaces(CALL_MODE_WS_SEND);
publishMqtt("off");
}

View File

@@ -75,6 +75,10 @@ class WizLightsUsermod : public Usermod {
UDP.endPacket();
}
// Override definition so it compiles
void setup() {
}
// TODO: Check millis() rollover