SonoffLAN icon indicating copy to clipboard operation
SonoffLAN copied to clipboard

In new release 2.4.1 lost in temperature sensors zigbee attribute "battery_level"

Open enigmaspb opened this issue 5 years ago • 16 comments

I update to new release Change my config in lovelace from "battery" to "battery_level" and in all temperature sensors (SNZB-02 zigbee device) not show atribute "battery_level" (only cloud - online) Zigbee button (SNZB-01) is show only battery level and not show "cloud"

image image

enigmaspb avatar Mar 24 '21 06:03 enigmaspb

Same issue.

dtalens avatar Mar 24 '21 15:03 dtalens

Same here.

TheSilentOn3 avatar Mar 24 '21 19:03 TheSilentOn3

Простите. Я в этом форуме новенький. Не могу понять - исправили-ли проблему с исчезновением атрибута battery из датчиков температуры ZigBee SonOff?

i81 avatar Mar 29 '21 07:03 i81

Same here. I will need to stay on 2.4.0 until this is resolved. Screenshot_20210330-143028_Home Assistant Screenshot_20210330-142936_Home Assistant

Siggy101 avatar Mar 30 '21 12:03 Siggy101

Fix was posted for this. Worked for me.

TheSilentOn3 avatar Mar 30 '21 12:03 TheSilentOn3

Fix was posted for this. Worked for me.

I missed that. Can you share the link?

Siggy101 avatar Mar 30 '21 12:03 Siggy101

https://github.com/AlexxIT/SonoffLAN/commit/2653908b47ebb996de753d56feecc4cc2268af44

TheSilentOn3 avatar Mar 30 '21 12:03 TheSilentOn3

Thanks. I am not sure how it works though. Do we need to edit the config ourselves now to add that? I would have expected 2.4.2 to be released with that fix. Is that what we should wait for or edit something manually?
Sorry if it's a dumb question but I prefer to update the package using HACS rather than go fishing under the hood myself.

Siggy101 avatar Mar 30 '21 12:03 Siggy101

I see now. Maybe we need to manually edit custom_components/sonoff/sensor.py

Siggy101 avatar Mar 30 '21 12:03 Siggy101

2653908

OK, I took a brave pill and edited sensor.py in nano. All is working perfectly and the battery readings are visible once again. Thanks for the gentle encouragement @TheSilentOn3

Siggy101 avatar Mar 30 '21 13:03 Siggy101

You can install master version via HACS reinstall option

AlexxIT avatar Mar 30 '21 15:03 AlexxIT

You can install master version via HACS reinstall option

I did try installing 2.4.1 again today but it did not show the battery percentages. The Screenshots I posted above are from today using 2.4.0 and 2.4.1

Siggy101 avatar Mar 30 '21 18:03 Siggy101

Some temperature sensors in 2.4.2 work good , i see battery level , and some temperature not show battery . In zigbee button show only battery and not show cloud status

enigmaspb avatar Apr 06 '21 02:04 enigmaspb

I confirm that 2.4.2 is showing the battery level again normally for my temp/humidity and door open/closed sensors. I cannot comment on button because I do not have one.

Siggy101 avatar Apr 06 '21 14:04 Siggy101

I confirm battery level is showing in button device.

dtalens avatar Apr 06 '21 14:04 dtalens

Fixed https://github.com/AlexxIT/SonoffLAN/releases/tag/v2.4.2

AlexxIT avatar Apr 07 '21 07:04 AlexxIT