Author
Topic: Alexa with virtual switch (Read 4178 times)

Hi,I have two scences, one will turn off the TV, the other one will turn on the TV. (I am using broadlink RM for that)I added a virtual switch so Ill able to control the TV, so when the virtual switch will turned off the turn off scene will be triggered and the same for turn on.The problem is that alexa is not recognized the virtual switch device. When I click on discover all devices, the virtual switch is not in the deviced list. I tried to forget all the devices and also the Vera skill but it did not helped.I know that alexa can detect virtual devices because it detected the Vera mode device.Hoow to configure the virtual switch so Alexa will able to find it?Thanks

I updated the vswtich code to reflect category 3 and it was still not offered as a switch as part of the process to select devices to add to Alexa. So simply updating the Category and SubCategory doesn't appear to be enough to make it work with Alexa.

The virtual switch didn't work for me even after updating all the properties, but after rebooting Vera and the echo, they showed up like an hour later. Not sure exactly what happened, but now all my virtual switches show up immediately after discovering devices. Hope this helps.

All works flawlessly with Alexa, But if i turn light off at wall switch, virtual switch thinks its still on, so if i then tell alexa to turn on virtual switch it does nothing as it thinks it is already on. Is there a way for virtual switch to get feed back?

Yes, create a scene that triggers from the light being turned On (from the wall switch or another scene), to turn on the Virtual SwitchThen create a second scene that triggers from the light being turned Off, to turn off the Virtual Switch.

Your Virtual Switch will catch back up the next time your light switch is polled. (so it will be a little out of sync for a bit until the polling happens). This usually isn't a big deal unless you are sitting there fiddling with your wall switch and Alex/Vera to control the light switch all at the same time.

Note that this creates a little bit of circular logic between the two switches, that will result in the On Command or Off Command being sent twice to the light switch, but because it is already on or off at the time it all works out without having to get more complex about it.

Yes, create a scene that triggers from the light being turned On (from the wall switch or another scene), to turn on the Virtual SwitchThen create a second scene that triggers from the light being turned Off, to turn off the Virtual Switch.

Your Virtual Switch will catch back up the next time your light switch is polled. (so it will be a little out of sync for a bit until the polling happens). This usually isn't a big deal unless you are sitting there fiddling with your wall switch and Alex/Vera to control the light switch all at the same time.

Note that this creates a little bit of circular logic between the two switches, that will result in the On Command or Off Command being sent twice to the light switch, but because it is already on or off at the time it all works out without having to get more complex about it.