We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f66d091 commit 6bb1587Copy full SHA for 6bb1587
usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h
@@ -235,7 +235,7 @@ class PIRsensorSwitch : public Usermod
235
if (offTimerStart > 0 && millis() - offTimerStart > m_switchOffDelay) {
236
offTimerStart = 0;
237
if (enabled == true) {
238
- if (!m_mqttOnly && (!m_nightTimeOnly || (m_nightTimeOnly && !isDayTime()))) switchStrip(false);
+ if (!m_mqttOnly && (!m_nightTimeOnly || (m_nightTimeOnly && !isDayTime()) || PIRtriggered)) switchStrip(false);
239
else if (NotifyUpdateMode != CALL_MODE_NO_NOTIFY) updateInterfaces(CALL_MODE_WS_SEND);
240
publishMqtt("off");
241
}
0 commit comments