Hi, this is my first post here, and I’m looking for a kind soul to point me in the right direction. I am very new to home automation, and have watched lots of videos and read through lots of docs but still struggling moving from just app enabled switches to something more “intelligent”.
Please be gentle with me if I have not adhered to the rules here
I am running Home Assistant 2021.4.5 on a Pi4 and have Node Red, ESP Home and Mosquitto installed (plus a few other helpful bits like Samba share) but have no automations at all yet.
I am trying to override the behaviour of a Sonoff T1 light switch which is flashed with ESPHome. I can turn it on or off by touching the physical switch, or by pressing the bulb on the card in HA.
However, I would like make it so that a short press turns it on or off, but if it’s switched on, a long press (say 4 seconds) sets a timer, which switches the light off after another 20 seconds. I really don’t know where I should start. Would I do it in ESPHome, create an automation in Home Assistant, use Node Red ???
I could just program the ESP myself in Arduino, but I feel that I should be using Home Assistant and the various plugins to do this rather coding it myself. Any help offered would be very gratefully received (even just point me at the right doc)
Many thanks.