-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32H2 + ZigBee Door Sensor ZG-102lL #11169
Comments
@Usama050 Hi, Can you provide the sketch you are using? Thanks |
@P-R-O-C-H-Y Hi, I am using the same code as in example |
@P-R-O-C-H-Y Hi!
|
Hello, this is not the way the Zigbee library works. |
@P-R-O-C-H-Y Hello! I just want to make my esp32h2 a zigbee coordinator and then connect some sensor with this coordinator and then want to read the data of these sensor. |
@P-R-O-C-H-Y As far as I understand it means I can not create zigbee coordinator ? |
@P-R-O-C-H-Y and I think it is possible to make esp32h2 a ZigBee coordinator and then connect ZigBee sensor with this coordinator and read their values. |
@Usama050 You can create a coordinator, but there are examples and classes only for Thermostat and Switches. |
Do you know what clusters does your Door Sensor use? |
@P-R-O-C-H-Y I am not sure I guess IAS cluster or HA cluster |
In that case how I said, you will need to develop an endpoint, which have an IAS client cluster, so its able to receive the data from the door sensor. |
@P-R-O-C-H-Y Hello! Do we have binary Input cluster in ZigBee lib in Arduino? |
@Usama050 Hi! Not yet. I am planning to add Binary Input/output and Multistate Input/output once its fully supported in HomeAssistant ZHA integration. It may be done in few weeks. |
@P-R-O-C-H-Y Hello! so it means I can not read the data from my door sensor because my door sensor only has on and off state. |
+1, aim is to setup the ESP32 as a coordinator and read the state of a contact switch/sensor and toggling a light on or off. I haven't managed to get it working - if anyone has, please share some code. Either for the esp-idf zigbee sdk directly or through the Arduino abstraction |
I am working on it, you can check this example in this example the made esp32h2 as coordinator and receive the temperature data you can change the cluster according to your requirement |
@Usama050 too make it clear, you are posting to the esp-zigbee-sdk example, not Arduino Zigbee Library. |
@P-R-O-C-H-Y is it possible that there will be an Arduino abstraction in the future? It seems valuable. |
@mmackh It is possible and also a doable thing by the community :) I have that in my list of possible features to add. |
Board
ESP32H2
Device Description
I am using ESP32H2 microcontroller as a ZigBee coordinator and I successfully connected my door sensor with ZigBee coordinator using ZIgBee_On_Off_Switch_Example but I can not read my sensor data. Can anyone tell me how can I read my sensor data which are connected with ZigBee coordinator on serial monitor. Thank you!
Hardware Configuration
I am using ZigBee protocol not any pin
Version
latest master (checkout manually)
IDE Name
Arduino IDE
Operating System
Window 11
Flash frequency
64 MHz
PSRAM enabled
yes
Upload speed
921600
Description
I am using ESP32H2 microcontroller as a ZigBee coordinator and I successfully connected my door sensor with ZigBee coordinator using ZIgBee_On_Off_Switch_Example but I can not read my sensor data. Can anyone tell me how can I read my sensor data which are connected with ZigBee coordinator on serial monitor. Thank you!
Sketch
I am not sure about it
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: