XIAO ESP32C6 as an End Device for Zigbee2MQTT

I am trying to use an Seeed XIAO ESP32C6 as a Zigbee end device that reports the state of a GPIO pin to zigbee2mqtt configured with an SLZB-06M coordinator.

I’m using the examples at Arduino Zigbee Contact Switch and Seeed Zigbee IoT Button Example.

Although the device is recognized by zigbee2mqtt, it never configures an output cluster and never reports the state of the GPIO pin to zigbee2mqtt. I’ve also tried using esp-idf with sample code provided in the esp-zigbee-sdk with the same result… I can never get the state of the GPIO pin to appear in zigbee2mqtt.

Since none of the variations I’ve work, I must be missing something fundamental and would appreciate some pointers on the correct approach.

Hi,

First, welcome the Seeed’s forum!

Have you checked our Wiki page? We have a series of example how to connect XIAO esp32c6 to Home Assistant.

XIAO esp32c6 Zigbee Wiki: Connect to Home Assistant via the XIAO ESP32C6 Zigbee | Seeed Studio Wiki

Regards,
John

I have referred to many of the examples on the Wiki. I was able to get the light examples to work with zigbee2mqtt or Home Assistant. I was also able to bind an esp32c6 configured as a switch/coordinater to a second device configured as an end device light.

However I was not successful in get the esp32c6 device act as an end device that reported status TO zigbee2mqtt or Home Assistant.

Hi there,

So I was able to get about as far as you, but also couldn’t get the MQTT to show it? Then I came across this article. Take a look maybe you’ll see something i missed?

HTH
GL :slight_smile: PJ :v:

also to the right of the articles page are more projects by the USER one is the MQTT wioTerminal one. Maybe some info in there also. :crossed_fingers:

I will take a look. Thanks for the tip,

@rslueb - It depends on what you actually require, whether just an on/off state, or an IAS Zone Device (which is used by the devices you have shown above).

If you would just like a switch on/off state, then I’d use the Occupancy Sensor example as it’s an End Device and has a GPIO state.

For some reason the Espressif On/Off switch is a ZCZR device… I tend to work with the idea that a Zigbee On/Off device is an End Device (Sleepy) - like a key fob?

If you’d like a specific device like a “(Sleepy) On/Off Button”, then you need to create it yourself.

1 Like