ZHA: Using ESP32-H2

I have a ESP32-H2 that will be connected to a sensor that will collect data and then send that data to a head unit that is composed of a raspberry pi4b which has a sonoff zigbee 3.0 usb dongle plus connected to it. I have yet to figure out how to make the esp32-h2 to be able send those data or ADC values using zigbee. I have not come across many people that has done this so I am looking for more help on this topic. Any help will be much appreciated, thanks.

2 Likes

Hi,
Can I ask why you want to use a ZigBee transport?

Can the sensor unit get the power budget for a WLAN network, rather than ZigBee?

  • ESP32 + ESPhome + WLAN + MQTT = easy

  • ESP32 + Tasmota + WLAN + MQTT = might be enough for many sensor types without any development

  • ESP32 + ZigBee = seems hard, and uncommon

I’ve not looked, but wonder if the Matter code samples include Thread clients (same radios as ZigBee, but might be more current).

Personally, I’ve stuck to WLAN + MQTT for embedded sensors as there’s a lot less real-time development code to write. Creating you own pico-amp battery sensor device is a serious undertaking - unless this is a really custom sensor package, there’s loads of cheap COTS kit ripe for modification.

James

I won’t be able to help much (as I have not done this) but just in case you haven’t come across these already, take a look at the following:

Here is a developer’s guide:
https://docs.espressif.com/projects/esp-zigbee-sdk/en/latest/esp32/developing.html

Here is example code for a Temperature Sensor for ESP-H2, which may (or may not) be close to your application.

If you can make your ADC data look like temperature values, then may not be too bad, otherwise you’ll have to also figure out what ZigBee Cluster(s) is/are going to be appropriate for your application, and make the necessary code changes for it.