Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
I connected the HC-SR501 to GPIO14 and the light is switched on (and off) if the sensor detected a movement. Is there any solution to do that only at night? I thought about adding a TSL2561 but I found no possible way to bring the two sensors into dependence.
Next idea was using the variables %sunrise% and %sunset% ... If sunrise is true disable switching the light. If sunset is true enable switching the light.
But how to set this rules? Would it be possible?
I connected the HC-SR501 to GPIO14 and the light is switched on (and off) if the sensor detected a movement. Is there any solution to do that only at night? I thought about adding a TSL2561 but I found no possible way to bring the two sensors into dependence. Next idea was using the variables %sunrise% and %sunset% ... If sunrise is true disable switching the light. If sunset is true enable switching the light. But how to set this rules? Would it be possible?