Sorry if this is a duplicate post or not (but i could not find anything similar on the forum). I am using Hass.io + HA bridge + homebridge. I would like to use all my devices with Siri. The problem is, all my devices are considerate as lights. So when i am trying to ask Siri to turn off the lights, it is turning off everything. So i would like to know how can i change the entity of my devices with HA bridge and home assistant. For example: light.projector > switch.projector.
Why are you using HAbridge in the middle? That’s the problem. Go straight from Hassio to Homebridge and all your devices will be passed through as their proper entity types.
Hello
I have similar problems, I want to change my switch.device to light.device, because there are lights attached to these switches and for Google Home to understand that there are lights not switch.
I get my switches and lights through Tellstick Live. I don’t have switch or lights in my config.yaml.
Or can I do anything else to get Google Home (Assistant) to understand the switches as lights. As it is now, I can not say, “Turn of lights in Living Room”, then it only extinguishes a lamp sitting on a dimmer. If, on the other hand, I say “Turn of Switches in Living Room”, the other lights turn off, but not the dimmer.
That was just my way of saying you repeat this structure for more switches/lights. That part wasn’t intended to be entered verbatim.
Yes, I believe you’d have to have an individual entry for each switch for which you want a “light wrapper”. Maybe there’s an easier way, but if there is, I’m not seeing it.
This assumes group.switch_group_1 exists and is a group of the switch entities you want to control as a group of lights. And you would control it as light.group1.
BTW, I removed value_template and level_template, which then causes the default “optimistic” behavior, which I believe just means that it remembers what state & level it was set to last and reports that as the current state & brightness level.
And this you say now …
I’ve entered all of my rooms and synced with Google Home, looks and works as it should. Maybe i will try to test with groups but do not have so many switches so that’s no problem. (And I want to control only one particular light)
And before you posted last example I changed the Value: level_template: '{{**100** if is_state ("switch.vrum_fonster1", "on") else 0}}'
100 to 255 for the icon to light 100% yellow.
And to see the changes, I had to restart HA.
Little feedback if someone else have benefits from this.
Ah, I keep forgetting for brightness there’s brightness (0 to 255) and brightness_pct (0 to 100.) I always use brightness_pct. I’ll go back and adjust the example accordingly (like you say, for future reference.)
Yeah, if you want individual light control then you’d probably want individual template lights for each switch entity.
Although this still may not be the best way, I’m glad it helped.
I followed your steps and got everything to work with Google Assistant but now HA and Google Home is showing both a light and switch for the same unit.
Is there a way to only get the light to be shown and not the switch?
Thanks for the tip, I tried it and the switch got hidden in HA but not in Google Home when I relinked it to hass.io
Both the light and the switch for the same unit was discovered by google home.
When you have updated your configuration.yaml, restart HA and then say “ok google, sync my devices” (my google assistant talks swedish so I said it in swedish and that worked just fine)
This way you don’t need to relink hass.io in google home.