Page 1 of 1

NetAtmo Battery State causes extreme wide devices display

Posted: Thursday 07 July 2022 22:24
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 551 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.