I've defined a virtual switch so I can use it in a scene, but it's not available. Are scenes limited to physical switches?
More complete scenario:
I need to turn off my thermostat, along with other noisemakers, when I'm doing podcast recordings. I would also like to be able to turn the thermostat on and off by voice via my Alexa. I thought it would be useful to to switch on a "house hush" scene to achieve it. I have a Honeywell thermostat, so I've installed the great TCC driver (Honeywell Total Connect Comfort thermostat control), which (after some debugging) appears to work for what I need. I added a virtual switch and connected it to the thermostat using my very first rule in Rule Machine. When I click the virtual switch, it does exactly what I want. But it doesn't show up in the scene definition. What am I missing?
Yeah, I have that all set up and ready to go. But I want to turn off a number of devices in addition to the thermostat, e.g. a handful of air filters and a couple fans.
There is no reason that a virtual switch should not show up in a Scene as av available switch. One possibility would be that you had the Scene already open when you created the switch, and didn't refresh the page?
Now that I've gotten it working, I can explain my reasoning. I'm a fan of (a) keep it simple, and (b) don't repeat yourself. The virtual switch does nothing but control the thermostat, which means I can use it directly in other contexts (Alexa, dashboard). Modes have broad influence (other automation depends on it being "day," for example).
Scenes exist to set state on a collection of devices, which is what I wanted here. Virtual switch + scene = woot.
Curiouser and curiouser. I added a couple zigbee outlets today. They show up in my device list, and when I create a brand new scene they're in the list of available switches. But neither show up in a scene I want to amend to include them, both on my laptop and iPhone browser. To make sure the hub wasn't in a strange state I rebooted it, as well.
Do scenes grab the collection of available devices when you first define them? Or should I be able to add more (brand new) devices over time?
Actually it does do some odd things in the way it gathers the devices you can use. So that could be what's going on with this. I will look into it. In the meantime, if you run into this issue you could delete the old scene and recreate it.