long time lurker here (thank you all for your help and contributions) thought i should give back to the community.
I want to share with you the way i over came the issue when using smart switches/plugs in alexa groups.
The problem i faced was that i have a TV connected to a Z-Wave plug and wanted to say to alexa “turn off the tv” and it would turn off the tv in the same room as the alexa device i was in.
If alexa thinks its a switch then you cant control the entity in a group unless you say the whole name e.g. kitchen tv. this is fine if its a light since the alexa app allows you to reasign the device type as a light but we dont want the tv being turned on if we say “alexa lights on”.
after serching the forums i found one solution but though there must be a better way.
after going through the nabu-casa documentation i found the key.
cloud: alexa: entity_config:
Using this we can present anything to alexa as a specific device.
How to do this:
- Delete the device in the Alexa app.
- Add the following code in your configuration.yaml
cloud: alexa: entity_config: switch.shenzhen_neo_electronics_co_ltd_power_plug_12a_switch: display_categories: TV
replace “switch.shenzhen_neo_electronics_co_ltd_power_plug_12a_switch” with the relevant device you are configuring.
resync your entities with nabu-casa
Get alexa to search for new devices
add the device to the group you want.
Hope it helps some people.