I have a virtual switch (switch.virtual) and I have a led strip (light.led). what is the cleanest way to do an automation, so whenever I turn on or off the switch or the led strip, they change the state together?
Why do you have the need for a virtual switch?
the led strip is in the home assistant through esphome and I can’t access it on my vera gatway. so i created a virtual switch in vera (which i also have access to it in home assistant) and i want home assistant to make this association between the two
This may seem like I’m being evasive, but I’m just trying to understand the problem, why do you need to see it in the vera?
to do some automations through the reactor plugin that is in vera. what I want is: turn on the led strip>turn on the switch, turn off the led strip>turn off the switch, turn on the switch>turn on the led strip>turn on the switch, turn off the led strip>turn off the switch. I have something similar on my gatway vera, through the reactor plugin, with some modules that I have on the electrical board and that I use channel 2 of some on/off modules that I’m not using, to make the association.