Merge branch 'main' of https://github.com/Aircoookie/WLED into um-sht
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
@@ -75,6 +75,10 @@ class WizLightsUsermod : public Usermod {
|
||||
UDP.endPacket();
|
||||
}
|
||||
|
||||
// Override definition so it compiles
|
||||
void setup() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
// TODO: Check millis() rollover
|
||||
|
||||
Reference in New Issue
Block a user