Zigbee Thermostat example does not work with commercial temperature sensors #11095
Replies: 14 comments
-
Hi @FrankX0, is the |
Beta Was this translation helpful? Give feedback.
-
I will fix the blocking |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
On my code, which is somehow based on or derived from that example TS0201 is working properly (temperature and humidity). |
Beta Was this translation helpful? Give feedback.
-
@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. |
Beta Was this translation helpful? Give feedback.
-
@FrankX0 1. Can You factory reset Zigbee stack in your Thermostat example (or upload it with Erase flash enabled). |
Beta Was this translation helpful? Give feedback.
-
@lsroka76 thanks for helping out!
Note that the sketch hangs at |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Thanks! The first part is working now:
So Thanks again for your help. |
Beta Was this translation helpful? Give feedback.
-
@FrankX0 Try to comment out these two lines in Zigbee_Thermostat.ino: zbThermostat.getSensorSettings(); zbThermostat.setTemperatureReporting(0, 10, 2); |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
In my setup TS0201 starts to send reporting just after joining network and sends reports after each temp/hum change. |
Beta Was this translation helpful? Give feedback.
-
Try to compile Z2S_Gateway example from my library: |
Beta Was this translation helpful? Give feedback.
-
I had some compilation errors:
Changed it to
I removed the override. Then it compiled. The sensor gets bound and reports temperature and humidity! |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions