I have a Shelly 2.5 switch with double switch connected to it. One of the channels controls a traditional light so it’s set to momentary
.
I’d like the other channel to control another light via Home Assistant (which happens to be controlled by Shelly 1).
I’d like to avoid using Node Red or calling rest endpoints directly from Shelly. Ideally I would like to define something like event trigger that toggles the light whenever Shelly switch is pressed. It would be nice to differentiate between short and long press etc.
I can see in the logbook that whenever I press the button I see events being fired
How could I capture these events and use them to drive the other light?