is there any way to have a generic switch with
turn_off scripts, and assumed state? So, kind of a template switch, but without the required
Background: I have a few pilight switches with bad reception. So, I want to replace the plain pilight configuration by something of the above kind. In the actions I would repeatedly send pilight commands. But as there is no way to retrieve the actual state by a template, it would need to be assumed state.
I guess this would be possible with some
input_boolean and complicated cross-scripting with the switch. But I would prefer something clean, i.e. one single entity of type
Do you have any ideas?