Light switch and area

Hello,

I’m using zigbee2mqtt for a lot of devices including xiaomi wall switch.
These switches commands light so I want them to be displayed as light in hass.

With tasmota I can use SetOption30 to transform a switch to a light and it’s perfect for my need.
But nothing like this exists in z2m so I’m using light switch integration https://www.home-assistant.io/integrations/light.switch/

Ok this make the job even if I have two entities for the same device (one swicth and one light).

But my main issue is that I can’t associate these lights with areas.
So in google assistant integration they are not in a room.

Am I missing something here ?

Thanks

ok I should have started with the release page of latest version 2020.12: Automate with Blueprints!

I see the same, you can assoicate a light.switch with an area but it never actually appears in that area.

For me it’s on now I can assign entities like light switch directly to area in lovelace by accessing entity properties.
And with the latest version of hass if I sync my devices with google assistant they are displayed in the correct room without any additional action from me.

Yes correct , the lights do appear in correct Google rooms. However still in the overview Lovelace page they are not in correct room. I wonder did you remove the underlying switches from the room?

I never place the switches in the area.