DrozmotiX / ioBroker.wled

IoBroker integration to WLED project
https://github.com/Aircoookie/WLED
MIT License
28 stars 14 forks source link

Iconsistencies in online/offline detection #654

Open foxriver76 opened 8 months ago

foxriver76 commented 8 months ago

Device Manager and Objects Tab showing devices as online which are not connected to the power chord for more than a week, like "Weihnachtsbaum". grafik

The connected state seems to be e.g.

    "statusStates": {
      "onlineId": "wled.0.80646fc504b4._info._online"
    }

However this state does not contain a boolean. Thus, at least admin objects tab is showing it as online whenever there is content in it.

The content is like {"val":false,"ack":true} which seems to be by accident.

The detection in the config UI works well:

grafik

Version 0.7.2

foxriver76 commented 8 months ago

From a short look it could be due to

https://github.com/DrozmotiX/ioBroker.wled/blob/d46eea7f6b2c03d6faf7b96503b6c63b0bd51fee/main.js#L891 and finally stringifying it at https://github.com/DrozmotiX/ioBroker.wled/blob/d46eea7f6b2c03d6faf7b96503b6c63b0bd51fee/main.js#L1089