-
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: device is stopping send values after some time #10693
Comments
additional for ESP32H2:
|
@michapr Do you know if there is any error log or any other before the 1st |
Just have checked again,... there are no more debug messages in log files between these events. |
In the HomeAssistant you still see the device as connected? |
it was at Z2M, here I have seen that "last seen" was long time ago. Then have tried same sketch with different modules with same result. Can test later with Homeassistant |
Maybe the
If temperature will not be changed for a longer time (or reporting delta is to high) then device will not send any information to router and router can forget about the device. That's why may work if reporting every 10s... Only an idea,... not sure of course... |
Have placed the sensor at other place where temperature is changing more - and here it is reporting values since 20 hours about without problems. |
The keep alive should be sent every 3s by default. Should not be an issue if it's actually sent. I can test it using the sniffer. |
Maybe good point there would be setting the reporting to repent on small delta + also every 1 minute for example. To have both options enabled for reporting. |
I think I encountered the same thing on ESP32C6 (DFRobot Beetle C6 w/3.1.0 core) using various values for Serial output showed that As a workaround, I've just been using my own intervals and calling e.g.:
An aside, when I tried to completely remove the use of |
I think I have figured out why the reporting intervals seem not to match up. In Home Assistant (HA) using the ZHA integration, the zigpy library has hard-coded reporting intervals that it uses: https://github.com/zigpy/zha/blob/a9c9f8b5d28561782b9cdfccee132abc7dac3282/zha/zigbee/cluster_handlers/const.py#L6-L8 When initially adding the device or clicking "RECONFIGURE" in HA, it tells the ESP32C6 to use its own reporting interval, overriding what is set via Since this is set every time in my code at boot, just restarting the device is enough to have it start honoring what I specified in the code. Unsure if the ESP32C6 stack actually stores the reporting interval/delta values in NVRAM or just RAM. So, it's not actually necessary to call e.g. I guess a workaround would be to somehow add a callback some seconds after "Configure Reporting" is issued to the device by HA to call |
Board
ESP32C6, ESP32H2
Device Description
DevModule C6, SuperMini C6, SuperMini H2 (same issue at all devices)
Hardware Configuration
nothing else connected
Version
latest development Release Candidate (RC-X)
IDE Name
Arduino IDE
Operating System
Windows11
Flash frequency
80MHz
PSRAM enabled
no
Upload speed
921600
Description
Device is sending values for a wile, but after some time (20 minutes about?) is stopping sending values until restart of device.
Sketch
Sample sketch Zigbee_Temperature_Sensor.ino with libraries from PR #10676
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: