I’ve looked at similar topics for ideas but I can’t get a virtual switch to respond to a voice command nor does the switch appear in Google Home even after “Okay Google, sync devices”.
Several other “real” devices are responding fine and show up in Google apps.
Item code:
version: 1
items:
Garage_Door_Open:
type: Switch
label: Garage Door Open
icon: wallswitch
metadata:
ga:
value: Switch
I’ve tried “value: Switchable” as some examples have shown. No difference.
I’m using Mycroft (open source voice assistant) and he can control many of my virtual switches, as you said, by just making them [Switchable]
I’m using text files for items, so I am not sure is the “value: Switchable” equivalent to appending [Switchable] to the text item. After making them switchable, all I have to do is ask the voice assistant to “refresh openhab items” and I get a response “all right, found 42 items”. So once you add a new one, you can clearly understand if it worked because the response should be I found 43 items.
Hi, I think you have to give a room hint in openHAB or move the Virtual Switch from the “Linked to my home” section to a room in the Home App for controlling them with voice commands.
In my setup everything works fine, including “virtual switches”