And woul like to change the interval based on the status of an input pin. I’ve tried various things but haven’t found a way to do this yet. Has anyone cracked it, please?
I have not yet found a way to vary the flash rate so I have temporarily settled for having the LED flash or setting it solid on by adding the following:
on_loop:
then:
- if:
condition: # if both sensors ares activated then set LED solid on
- binary_sensor.is_on: mw
- binary_sensor.is_on: pir
then:
- switch.turn_on: led01
I’d still like to vary the flash rate as I’d like to be able to identify if either sensor is activated as well as both using different flash rates or states of the LED so will keep looking!
I’m replacing an ESP8266 that was originally programmed using the Arduino IDE - it fits onto a one-off PCB, into a crafted housing and the cabling runs behind a decorative finish. Consequently, even though there are spare pins on the ESP8266, there is no way to run another wire to allow a dual colour LED.