I’ve created a Virtual Switch called Downstairs Lights. I’ve created two routines called On Downstairs Lights and Off Downstairs Lights.The On Downstairs Light Routine is setup to turn on two individual lights (Living Room Light and Family Room Light). The Off Downstairs Light Routine is set up to turn off the same two individual lights (Living Room Light and Family Room Light).
Using Switch Activates Home Phrase the Downstairs Lights virtual switch calls the two aforementioned routines.
The Family Room Light is set to turn on at 6:30 pm and turn off at 12:45 am via the SmartThings Smart Lights app. The Living Room Light is set to turn on at 6:30 pm and turn off at 1 am via the SmartThings Smart Lights app.
The problem I’ve got is when the individual lights turn on at 6:30 pm the Downstairs Light Virtual Switch is Off. If I then ask Alexa to turn off the Downstairs Light virtual switch, Alexa says OK but the lights remain on because the Virtual Switch is already off. In order to turn off the actual lights I need to ask Alexa to first turn on the Downstairs Lights Virtual Switch (Alexa says OK but nothing happens since the lights are already On) and then ask Alexa to turn off the Downstairs Lights Virtual Switch at which point Alexa says OK and the lights do go off.
Is there any way to synchronize the function of the Virtual Switch with the state of the devices that I am trying to control?
Or is there a better way to accomplish what I have described above?