I have the following setup:
- 1 wemos d1 mini with remote reciever
binary_sensor.galben_2 ( entity) with instant ON/OFF when the button is pressed
- 1 sonoff dimmer
- 1 automation
if binary sensor is ON then toggle light
- desired automation:
if the remote button is pressed twice (ON-OFF-ON-OFF) in less than a second or maybe two, then if brightness is low make it high and reverse.
I have tried to achieve that also in esphome, also in homeassistant, I had no succes, all info about this idea is poor on documentation and also on internet. I have no ideea to make a trigger for less than desired time (in my case 1-2 seconds).
Any suggestions? I feel I am waisting so much time on this issue and I need some help.