NetAtmo Battery State causes extreme wide devices display

Moderator: leecollings

Post Reply
User avatar
Louk
Posts: 17
Joined: Sunday 14 July 2019 13:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2 β
Location: Alkmaar, The Netherlands
Contact:

NetAtmo Battery State causes extreme wide devices display

Post by Louk »

Since the last (beta) update (Version: 2022.1 (build 14372)), I noticed a strange layout of the Devices page. This is caused by NetAtmo devices, displaying extreme long green bars for the battery or radio states of the devices:
>
Domoticz-NetAtmo battery level issue.png
Domoticz-NetAtmo battery level issue.png (225.04 KiB) Viewed 549 times

I never noticed those devices and this behavior before, so I expect this came with one of the recent updates.

Does this sounds familiar to someone (or is it just me again ;) )?

Update:

Additional info: I found that the value for the battery level in the database, 4443, is incorrect and out of range (0-100%):

Code: Select all

sqlite> select * from devicestatus where id = 931;
ID          HardwareID  DeviceID    Unit        Name                                    Used        Type        SubType     SwitchType  Favorite    SignalLevel  BatteryLevel  nValue      sValue      LastUpdate           Order       AddjValue   AddjMulti   AddjValue2  AddjMulti2  StrParam1   StrParam2   LastLevel   Protected   CustomImage  Description  Options     Color
----------  ----------  ----------  ----------  --------------------------------------  ----------  ----------  ----------  ----------  ----------  -----------  ------------  ----------  ----------  -------------------  ----------  ----------  ----------  ----------  ----------  ----------  ----------  ----------  ----------  -----------  -----------  ----------  ----------
931         5           87F710F5    1           Bedroom - Sig. + Bat. Lvl               0           243         6           0           0           12           4443          0           86.67       2022-07-06 21:47:15  931         0.0         1.0         0.0         1.0                                 0           0           0
The SignalLevel field is also filled incorrectly: 12 (should between 0 and 12)...

Also note that there is only one value filled (sValue = 86.67.
Have fun,
Louk
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest