I'm new to HE (from ST) and want to set up a virtual switch for my garage door. But none of the virtual devices seem to show state or state variables in the Device listing.
eg: for my physical devices under the Command label there are buttons for configure/on/off, and a Current States label with "switch: off" under it.
However for my virtual devices there are the same buttons, and the same Current States label, but there is nothing under it (and no state appears to change when I mash the buttons)
I'm guessing I'm missing something simple? Thanks much for the lift
Virtual devices should update "Current States" in response to commands as expected--e.g., a virtual switch being turned on or off should put "switch: on" or "switch: off" there shortly after a command that is supposed to result in this state is issued. What driver are you using? Make sure it's a "Virtual..." driver (built-in, or one you wrote/found that is supposed to do a similar function).
Thanks Bert - that's the behavior I was expecting, but I'm not seeing it for any virtual devices I add. I'm using the Virtual Component Switch device.
Is there a "how to add virtual devices" guide or something that you are aware of? Because this seems so basic I'm sure I'm leaving something out when I add the device, tho there don't appear many ways to mess that up.
That doesn't match the name of any built-in driver. If you're using a custom (user) driver, you'll have to make sure it was meant to be used virtually. If you meant Hubitat's built-in "Generic Component...." drivers, those are not something you want unless you're dealing with parent/child devices or apps, generally something you'd only be able to create programmatically. The driver you want for a switch (on/off device) is named "Virtual Switch" verbatim.
I'm not aware of any guides, but it sounds like you've figured everything out besides the drivers. Hopefully the above is just the missing piece!
I must not get it either as I made 4 separate virtual switches to get one tap changes in HSM. They don't show the change (or any indication of use at all, lol). But they work, and the actual HSM button does show the state change. So, I'm ok. But this post caught my interest. I guess I'm not using "any" driver.