Page 1 of 1

Sample ZigBee sensor project

Posted: Tue Jul 04, 2023 2:28 am
by mobuik
Hi all, I recently bought a ESP32-H2 Devkit board and am happy so far - pairing it to my Home Assistant server as a light bulb with the sample light-on-off project in the SDK. However, has anyone done with a ZED sensor? Ultimately I want to do a LED pulse counter - like what ESPHome does but with ZigBee instead. I know the v5.1 of IDF does not have the smart energy cluster yet, but I want to try with other sensors like temperature/humidity so I can get familiar with.

Re: Sample ZigBee sensor project

Posted: Tue Jul 04, 2023 7:18 am
by bidrohini
https://community.home-assistant.io/t/z ... n/512864/3 This link says "There is no zigbee code in esphome...."

Re: Sample ZigBee sensor project

Posted: Tue Jul 04, 2023 8:02 am
by mobuik
bidrohini wrote:
Tue Jul 04, 2023 7:18 am
https://community.home-assistant.io/t/z ... n/512864/3 This link says "There is no zigbee code in esphome...."
Sorry if my last post was not clear - I meant I want to create a sensor ZED in ESP32-IDF. I want to take reference to some sample code.

Re: Sample ZigBee sensor project

Posted: Sat Dec 30, 2023 7:23 am
by corelema
mobuik wrote:
Tue Jul 04, 2023 2:28 am
Hi all, I recently bought a ESP32-H2 Devkit board and am happy so far - pairing it to my Home Assistant server as a light bulb with the sample light-on-off project in the SDK. However, has anyone done with a ZED sensor? Ultimately I want to do a LED pulse counter - like what ESPHome does but with ZigBee instead. I know the v5.1 of IDF does not have the smart energy cluster yet, but I want to try with other sensors like temperature/humidity so I can get familiar with.
How did you pair your it with Home Assistant? Did you just run the "HA_ON_OFF_LIGHT" project and started including it in Home Assistant?

Re: Sample ZigBee sensor project

Posted: Mon Mar 18, 2024 10:42 pm
by Drippin101
did you ever find a solution?

Re: Sample ZigBee sensor project

Posted: Sun Jul 14, 2024 6:46 pm
by exkoria
A bit late here and my first post but I just managed to get the ESP32-C6 to work with Home Assistant using a Sonoff Zigbee dongle and ZHA in Home Assistant. What I did was that I clicked on "Add Device" in the Zigbee Home Automation integration. Then it entered search mode. When I flashed the sample code HA_ON_OFF_LIGHT on my ESP32-C6 it was discovered by Home Assistant and it was possible to control the LED on the ESP32 from Home Assistant.

ZHA is running on channel 25 in my setup.