I am using a “signal” repeater, which is basically a usb power supply, from IKEA (Tradfri). I have this repeater set up through Phoscon deCONZ on home assistant. It is in turn shown as an entity in the “light” domain.
I would like to use it with voice in Google Assistant, but not as a light, as I use the “turn off all lights” command quite often. I know you can set a “switch” to the “light” domain, as in this example:
light:
platform: switch
name: Christmas Tree Lights
entity_id: switch.christmas_tree_lights
I would like to do the reverse, where I put this “light” in the “switch” domain. I have not been able to find anything and all the commands I found to be logical didn’t work. I was wondering if anyone had tried it before.
Using this method seems to create a new ‘virtual’ device in the switch domain while still leaving the original device intact. That doesn’t solve my problem. I need to ‘kill’ the original device because its presence as a light causes problems. And when killing the original device, the template fails.
Add the switch template entity to make the “switch” as above.
You can leave the original light entity alone.
To prevent getting it in Google Assistant you can exclude exposing it from Google Assistant.
Put this in your configuration.yaml file under the google_assistant: heading
google_assistant:
#other google_assistant stuff here
entity_config:
light.usb_power_supply:
expose: false