Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iconsistencies in online/offline detection #654

Open
foxriver76 opened this issue Jan 10, 2024 · 1 comment
Open

Iconsistencies in online/offline detection #654

foxriver76 opened this issue Jan 10, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@foxriver76
Copy link
Contributor

foxriver76 commented Jan 10, 2024

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 foxriver76 added the bug Something isn't working label Jan 10, 2024
@foxriver76
Copy link
Contributor Author

From a short look it could be due to

await this.create_state(this.devices[deviceIP].mac + '._info' + '._online', 'Online status', {val: false, ack: true});

and finally stringifying it at
val: typeof value === 'object' ? JSON.stringify(value) : value, // real objects are not allowed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants