Zigbee2MQTT Area Assignment

Sorry, I’ve googled and search and I am probably staring right at it. How do I assign a device to an area in Zigbee2MQTT. Some guides say “hit the pencil” but that just brings up a box to rename the device or add a description — not area assignment.

Are you clicking on the pencil in the very top right of the device page ? When I click on it there is an place to edit area

EDIT: Ah, you’re in Z2M

You do not set the area in Zigbee2mqtt GUI. You set the device area in HA, using the pensil

1 Like

I always set them in MQTT integration page. It’s easy to scan down and spot any that are missing.

2 Likes

That was it. I can’t set it from teh Zigbee2MQTT page but have to go to Integrations, MQTT

Would be so much easier to set them up as you add devices in the Z2M console. I am adding a bunch of bulbs and having to sift through the integrations page is very time consuming. Ideally, I would just add the area when I change the name in the console.

Z2M works with other home automation software, not all of which have a concept of what an Area is. They can’t just add an option which might cause issues with other installations.

Supposedly you can set the suggested_area in the Zigbee2MQTT configuration.yaml file. I haven’t gotten it to work, but I think that’s because it’s reporting on the individual entities, rather than the device (e.g. it’s on homeassistant/sensor/0xdeadbeef/battery/config, but seems like it should be on homeassistant/device/0xdeadbeef/config). And the default for entities is to use their device’s area, so they don’t take it anyway. But I’I don’t fully understand how MQTT discovery works for HomeAssistant.

Hopefully someone more knowledgeable can explain how to make the suggested_area work (or something equivalent).