Closed cvocvo closed 11 months ago
Perhaps the device started to sleep during the pairing process, thus missing the setup of the attribute reporting for the temperature value.
If the device has a button, you can you try to "reconfigure the device" (shown on the HA device page for that sensor). Whilst clicking "start reconfiguration", you can try to press the button (likely a reset button) once. Depending on the sensors firmware, that might cause the sensor to wake up (thus receiving the attribute reporting setup requests).
Otherwise, you'll likely have to allow joins again (click "Add Device") and then reset the sensor, so it can join the network again and hopefully finish configuration correctly that time. If it still doesn't finish, logs would be helpful. You can paste the section from the time when you joined the device (it will show something like "Device ... joined the network".
Also, you could try to reposition your coordinator. Maybe there's some interference. Make sure it's on a USB extension cable, away form metal, WiFi access points, bluetooth devices, ... Regarding this, can you also attach the diagnostic information from the ZHA integration itself? It can be downloaded on the integrations page.
(The data below is not from the same device in my shed, but has the same problem and is the same model (SNZB-02) of device. Also of note, I do have 3 of these that are completely fine. It's sort of weird two of them won't send temperature data but send humidity data fine.)
Reconfiguration on my 2nd SNZB-02 fails; I don't think the button wakes it up and I tried to insert the battery and then hit reconfigure but no luck.
However, I grabbed the logs from re-adding the device and this seems to be the problem:
[0xB4F1:1:0x0003]: Configuring cluster attribute reporting Error handling '_save_attribute' event with (00:12:4b:00:25:16:50:3a, 1, 0, 5, 'TH01', datetime.datetime(2023, 9, 17, 0, 46, 8, 994195, tzinfo=datetime.timezone.utc)) params: FOREIGN KEY constraint failed [0xB4F1:1:0x0402]: Failed to bind 'temperature' cluster: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102> Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4F1), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.Broadcast: 15>, address=<BroadcastAddress.ALL_ROUTERS_AND_COORDINATOR: 65532>), dst_ep=0, source_route=None, extended_timeout=False, tsn=5, profile_id=0, cluster_id=0, data=Serialized[b'\x01\xdf_=\x0b\x00o\r\x00\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-32) [0xb4f1:zdo] ZDO request ZDOCmd.NWK_addr_req: [00:0d:6f:00:0b:3d:5f:df, <AddrRequestType.Single: 0>, 0] [0xB4F1:1:0x0001]: Failed to bind 'power' cluster: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102> Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4F1), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=6, profile_id=260, cluster_id=1026, data=Serialized[b'\x185\x07\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-32)
Full logs:
That looks like the sensor is asleep. Can you try to re-pair it? (maybe even try multiple times and/or with fresh batteries)
If its going deep sleep and not being configured OK it can being needed removing the battery and putting it in and doing the reconfigure for it receiving it (Some IKEA controller with latest firmware is one normal problem).
Thank you for your replies; I've been doing a bit of testing. I tried re-pairing a few times and most of them failed and got stuck on "Starting Interview". I wonder if this issue is related to this: https://github.com/home-assistant/core/issues/99497 I've tried repairing with new batteries, reloading the integration, and rebooting home assistant.
In any case, when I repair either of these SNZB-02 devices the temperature doesn't update beyond the initial update. Humidity updates just fine.
Or perhaps it's an issue with the coordinator I have? SONOFF ZBDongle-E
It seems the only way I can get new devices to pair reliably is via "Add Devices Via This Device" on the Coordinator.
Zigbee Shed Temp
Regarding this, can you also attach the diagnostic information from the ZHA integration itself? It can be downloaded on the integrations page.
^
and is that stick a Z-Wave and Zigbee stick?
Also, grabbing the logs from home-assistant.log
is a bit more helpful, as it includes time/logger and so on. The logs from the pairing dialog strip all that information.
Can you toss me a screenshot for where to grab the logs you're looking for?
Edit: found it -- working on cutting down the logs to something useful / postable. Also not a Z-Wave + Zigbee stick, just Zigbee on this one. I used to have one that does both and swapped over to newer ones for each a month or so ago.
Edit2: Log is attached now; I removed everything that didn't have "zig" or "zha" (my owlet integration is noisy, among others). home-assistant_2023-09-23T22-04-05.186Z.txt
I was also thinking it makes sense as to why you were wondering if this was the dual-zigbee + z-wave (HUSBZB-1). I migrated my radio/network to the SONOFF ZBDongle-E so I assume it's probably still partially identified as the HUSBZB-1 or something.
Edit3: OOPS I got my wires crossed. I actually moved to a SONOFF ZBDongle-E for Zigbee.
Today I updated the firmware on my SONOFF ZBDongle-E from 6.10.3 to 7.3.1 and at first this didn't do much, however, after several pairing attempts I was able to re-pair the shed temp SNZB-02 with Home Assistant. I still don't think the temperature is regularly updating and humidity still is. home-assistant_zha_2023-09-24T19-42-19.274Z_RepairingWorked_zhaonly.log
Edit: In case anyone is wondering, I used this to update the firmware from the web easily; it only took me a few minutes to do. https://darkxst.github.io/silabs-firmware-builder/
Update: it seems that the temp is updating. I put the sensor under my leg and let it be for a few minutes and it is updating now! It seems updating the firmware and repairing a few times did the trick!
I'm re-testing https://github.com/zigpy/zha-device-handlers/issues/2587 as well and it seems that at least one of those is also fixed now.
Bedroom temp also fixed:
Bug description
I have two SNZB-02 sensors and both of them regularly report humidity values, however, both of them seem to be 'stuck' with the same temperature value. They never update the value; one is indoors and one is in my shed as an experiment. At minimum the shed temperature should be regularly fluctuating, so I'll post data about that below.
Steps to reproduce
Expected behavior
Both temperature and humidity values to be regularly reported.
Screenshots/Video
Screenshots/Video
![image](https://github.com/zigpy/zha-device-handlers/assets/355711/24812be1-2507-4ffb-b211-ae365e5791ca) ![image](https://github.com/zigpy/zha-device-handlers/assets/355711/32a57d81-f3a8-45ed-aeaa-e128acf4b48b)Device signature
Device signature
```json { "node_descriptor": "NodeDescriptor(logical_type=Diagnostic information
Diagnostic information
```json { "home_assistant": { "installation_type": "Home Assistant OS", "version": "2023.9.2", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.11.5", "docker": true, "arch": "x86_64", "timezone": "America/Chicago", "os_name": "Linux", "os_version": "6.1.45", "supervisor": "2023.09.2", "host_os": "Home Assistant OS 10.5", "docker_version": "23.0.6", "chassis": "vm", "run_as_root": true }, "custom_components": { "dyson_cloud": { "version": "0.15.0", "requirements": [ "libdyson==0.8.7" ] }, "owlet": { "version": "1.0.0", "requirements": [ "PyJWT", "gcloud", "sseclient", "requests_toolbelt" ] }, "deepstack_face": { "version": "0.9.0", "requirements": [ "pillow", "deepstack-python==0.8" ] }, "weatheralerts": { "version": "0.1.5", "requirements": [] }, "dlink_hnap": { "version": "1.0.0", "requirements": [] }, "hacs": { "version": "1.32.1", "requirements": [ "aiogithubapi>=22.10.1" ] }, "dyson_local": { "version": "0.16.4-4", "requirements": [ "libdyson==0.8.11" ] }, "babybuddy": { "version": "v0.0.0", "requirements": [] }, "zha_toolkit": { "version": "v0.9.9", "requirements": [ "pytz" ] }, "simple_wyze_vac": { "version": "1.8.8", "requirements": [ "https://github.com/romedtino/wyze-sdk/archive/refs/tags/10.4.1.zip#wyze-sdk==10.4.1" ] }, "icloud3": { "version": "2.4.6", "requirements": [] }, "frigate": { "version": "4.0.0", "requirements": [ "pytz==2022.7" ] } }, "integration_manifest": { "domain": "zha", "name": "Zigbee Home Automation", "after_dependencies": [ "onboarding", "usb" ], "codeowners": [ "@dmulcahey", "@adminiuga", "@puddly" ], "config_flow": true, "dependencies": [ "file_upload" ], "documentation": "https://www.home-assistant.io/integrations/zha", "iot_class": "local_polling", "loggers": [ "aiosqlite", "bellows", "crccheck", "pure_pcapy3", "zhaquirks", "zigpy", "zigpy_deconz", "zigpy_xbee", "zigpy_zigate", "zigpy_znp", "universal_silabs_flasher" ], "requirements": [ "bellows==0.36.3", "pyserial==3.5", "pyserial-asyncio==0.6", "zha-quirks==0.0.103", "zigpy-deconz==0.21.1", "zigpy==0.57.1", "zigpy-xbee==0.18.2", "zigpy-zigate==0.11.0", "zigpy-znp==0.11.4", "universal-silabs-flasher==0.0.13" ], "usb": [ { "vid": "10C4", "pid": "EA60", "description": "*2652*", "known_devices": [ "slae.sh cc2652rb stick" ] }, { "vid": "1A86", "pid": "55D4", "description": "*sonoff*plus*", "known_devices": [ "sonoff zigbee dongle plus v2" ] }, { "vid": "10C4", "pid": "EA60", "description": "*sonoff*plus*", "known_devices": [ "sonoff zigbee dongle plus" ] }, { "vid": "10C4", "pid": "EA60", "description": "*tubeszb*", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "*tubeszb*", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "*zigstar*", "known_devices": [ "ZigStar Coordinators" ] }, { "vid": "1CF1", "pid": "0030", "description": "*conbee*", "known_devices": [ "Conbee II" ] }, { "vid": "10C4", "pid": "8A2A", "description": "*zigbee*", "known_devices": [ "Nortek HUSBZB-1" ] }, { "vid": "0403", "pid": "6015", "description": "*zigate*", "known_devices": [ "ZiGate+" ] }, { "vid": "10C4", "pid": "EA60", "description": "*zigate*", "known_devices": [ "ZiGate" ] }, { "vid": "10C4", "pid": "8B34", "description": "*bv 2010/10*", "known_devices": [ "Bitron Video AV2010/10" ] } ], "zeroconf": [ { "type": "_esphomelib._tcp.local.", "name": "tube*" }, { "type": "_zigate-zigbee-gateway._tcp.local.", "name": "*zigate*" }, { "type": "_zigstar_gw._tcp.local.", "name": "*zigstar*" }, { "type": "_uzg-01._tcp.local.", "name": "uzg-01*" }, { "type": "_slzb-06._tcp.local.", "name": "slzb-06*" } ], "is_built_in": true }, "data": { "ieee": "**REDACTED**", "nwk": 29821, "manufacturer": "eWeLink", "model": "TH01", "name": "eWeLink TH01", "quirk_applied": false, "quirk_class": "zigpy.device.Device", "manufacturer_code": 0, "power_source": "Battery or Unknown", "lqi": 148, "rssi": -63, "last_seen": "2023-09-16T11:46:10", "available": true, "device_type": "EndDevice", "signature": { "node_descriptor": "NodeDescriptor(logical_type=Logs
Logs
```python [Paste the logs here] ```My logs are 200MB so can't paste them here easily; not sure how to shrink them.
Additional information
No response