-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Zigbee Thermostat example does not work with commercial temperature sensors #10808
Comments
Hi @FrankX0, is the |
I will fix the blocking |
On my code, which is somehow based on or derived from that example TS0201 is working properly (temperature and humidity). |
@lsroka76 If you can help it would be great. I have the Sonoff temp/hum sensor and I have no issues getting the temperature when using the Thermostat example. |
@FrankX0 1. Can You factory reset Zigbee stack in your Thermostat example (or upload it with Erase flash enabled). |
@lsroka76 thanks for helping out!
Note that the sketch hangs at |
I've added endpoints, clusters and cluster attributes discovery to my code and here is result for TS0201:
and in Your logs we can see:
which confirms above discovery - TS0201 doesn't have attribute id 3 (temperature tolerance). So try to change this code first:
to
and this code:
to that
and show Your logs. |
Thanks! The first part is working now:
So Thanks again for your help. |
@FrankX0 Try to comment out these two lines in Zigbee_Thermostat.ino: zbThermostat.getSensorSettings(); zbThermostat.setTemperatureReporting(0, 10, 2); |
Already tried that: nothing changes. Result of following commands:
In both cases the response is 0x84 (unsupported command?). So, after the sensor is bound there are no sensor updates received. |
In my setup TS0201 starts to send reporting just after joining network and sends reports after each temp/hum change. |
Try to compile Z2S_Gateway example from my library: |
I had some compilation errors:
Changed it to
I removed the override. Then it compiled. The sensor gets bound and reports temperature and humidity! |
Board
ESP32-C6
Device Description
None
Hardware Configuration
None
Version
latest master (checkout manually)
IDE Name
Arduino IDE
Operating System
Windows 10
Flash frequency
80 MHz
PSRAM enabled
no
Upload speed
921600
Description
Example sketch hangs when bound to a commercial Zigbee temperature sensor (e.g. TS0201).
Sketch works when bound to example temperature sensor sketch on other ESP32-C6.
Both
getSensorSettings()
(blocks) andsetTemperatureReporting()
(no response) are not working.Functions
readManufacturer()
andreadModel()
work correctly though.Sketch
Default Thermostat example sketch (Zigbee_Thermostat.ino)
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: