This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Zigbee gateway integration
Hi.

I’ve bought some SONOFF SNZB-02WD temperature and humidity sensors.
They work fine, but I can't read the battery status; is there a way to fix that?
Manufacturer: SONOFF
Model: SNZB-02WD
Firmware version: 1.1.0

Device type: End device
Power source: Battery
Receive when idle: No

Endpoint 1
Profile: 260
Input clusters
- Basic (0)
- PowerCfg (1)
- Identify (3)
- MsTemperatureMeasurement (1026)
- MsRelativeHumidity (1029)
- PollCtrl (32)
- 64599
- 64529
Output clusters
- Ota (25)

Reported attributes
- humidity: 46.6
- temperature: 24.20
Reply
Hi, 

also problem with status of battery. I see % of battery device, but in settings only available Low Battery Detected status (1bit) Is it possible to add % status of battery also to settings (1 byte)? Look like that at 1% status not changed to Battery not OK - bad and communication now already lost. Device - SMARTis water leakage sensor E4, ZigBee, TUYA / Smart Life, NOUS

Also is possible to add Heartbeat status to know device is alive? In Zigbee app is seen that periodically is information exchange but such info not seen at KNX side.

% status of battery is seen at device status (pix in attach) 

Manufacturer: _TZ3000_0s9gukzt
Model: TS0207

Device type: End device
Power source: Battery
Receive when idle: No

Endpoint 1
Profile: 260
Input clusters
- PowerCfg (1)
- Identify (3)
- SsIasZone (1280)
- Basic (0)
Output clusters
- Ota (25)
- Time (10)

Reported attributes

BR, 

Alex

- detection: false

Attached Files Thumbnail(s)
   
Reply
@stianj, @stonecroft, @AlexLV
New app version with updated profiles has been published. As usual, reset your device and pair it again.
Reply
Hi, thank you Admin!

I added battery status with %, will test it. I hope it helps a bit to protect rooms from the leakage with my cheap leakage OEM sensors..

BR,

Alex
Reply
Thanks! I can confirm that all the buttons on my Styrbar now works as expected. Very good! But I don't have any battery status, neither as an icon under the status column in the Zigbee app, nor is the group address assigned updated.

Not a big deal for me, my use-case is taken care of now, but there is still some room for improvements Smile
Reply
It might take some time for the battery status to be sent by the device.
Reply
We'll see... 15 hours so far... Altough, more Googling revealed this statement from https://github.com/zigpy/zha-device-hand...ssues/2988 where people claim that a battery voltage above 1.35 would send 255 (invalid/unknown), which I can confirm:

[2026-08-05 11:36:11] ZB: packet from bc8d7efffede049f:
{ FrameControl = [ "FrameTypeGlobal", "DirectionFromServer" ], TransactionSequenceNumber = 61, GeneralCommandFrame = { CommandIdentifier = "ReportAttributes", ReportAttributes = { AttributeReports = [ { AttributeIdentifier = 33, Attribute = { Type = "uint8", Value = 255 } } ] } } }

Probably a change they implemented after IKEA stopped selling non-rechargable batteries some years ago. I will change to rechargable batteries later today, that will probably fix it Smile

Sorry about the noise!
Reply
With rechargable batteries, it did indeed start to send battery status. Very good charge on those batteries!

   
Reply
This is IKEA "feature" Smile

ZigBee standard states that the battery status is reported in the 0..200 range which is then divided by 2 to get the real percentage. Older IKEA devices report the status directly in the 0..100 range so the division by 2 is disabled in the profile. This is why you get 180% instead of 90%.
Reply


Forum Jump: