[!IMPORTANT] This implementation is outdated: Use the external zigbee component for easier setup and more functionality.
ESPHome example of a zigbee sensor.
Note that the Zigbee part in this project is currently hardcoded and included as a custom component including a task. (Changing this to an external component with more configuration possibilities would be the next step).
ESPHome Zigbee sensor connected to AHT10 Temperature+Humidity Sensor.
Steps
esphome run ZB_sensor.yaml
command will fail.esphome/build/zb-sensor/src/
.esphome/build/zb-sensor/sdkconfig.zb-sensor
file
CONFIG_ZB_ENABLED=y
CONFIG_ZB_RADIO_NATIVE=y
CONFIG_ZB_ZED=y
ZB_ED_ROLE=y
esphome run ZB_sensor.yaml
command.esphome/build/zb-sensor/src/
again and delete .esphome/build/zb-sensor/.pioenvs
.Note! The official documentation and reference examples for the ESP Zigbee SDK can currently be obtained from Espressif:
If looking to contribute to this project then suggest follow steps in these guides + look at issues in Espressif's ESP Zigbee SDK repoository: