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

[bug]: multiple Events for single state Changes #2861

Closed
1 task done
Karkas66 opened this issue Aug 5, 2024 · 6 comments
Closed
1 task done

[bug]: multiple Events for single state Changes #2861

Karkas66 opened this issue Aug 5, 2024 · 6 comments

Comments

@Karkas66
Copy link

Karkas66 commented Aug 5, 2024

No existing issues.

  • There is no existing issue for my problem.

Description

Seit dem Update auf 6.0.9 hab ich für jede auf State Änderung basierende Logzeile gleich diverse Einträge... Konnte zu dem Problem nichts finden. Sieht so aus:

image

Reproduction instruction

No response

JS-controller version

6.0.9

Node version

v18.20.4

@foxriver76
Copy link
Collaborator

foxriver76 commented Aug 5, 2024

First time this being reported please provide a valid example how you tested this and came to this conclusion. I cannot reproduce this at my installation. This javascript produces exactly one log entry for me.

const TEST_ID = '0_userdata.0.test';

on({ id: TEST_ID, change: 'any' }, () => {
    log('changed once', 'warn');
})

await createStateAsync(TEST_ID, true, true);

@Karkas66
Copy link
Author

Karkas66 commented Aug 5, 2024

Did a Node.js Update to v20.16.0 - Problem still remains.

I can not give you a guide on how to reproduce. As you can see in the screenshot there are several Adapters reporting the same thing over and over again in a short timeframe and with only ms between each Log line. But there are other adapters that do not log multiple times. I dont have a clue what is going on. Here is another screenshot showing normal behaviour of shelly and Tankerkonig instances. But Hue, zwave2 and Javascript do log multiple times:

image

@Karkas66
Copy link
Author

Karkas66 commented Aug 5, 2024

Here are some log lines befor the update:

`2024-07-31 21:48:50.295 - info: javascript.0 (2266) script.js.Hausautomation.Buero-Licht: === Debug: Flur Motion Sensor aktualisierung: true

2024-07-31 21:50:18.821 - warn: zwave2.0 (2880) State value to set for "zwave2.0.Node_026.Basic.currentValue" has value "255" greater than max "99"

2024-07-31 21:50:19.524 - info: hue.0 (2399) Started scene: Scene Büro Nacht Licht

2024-07-31 21:51:53.811 - info: javascript.0 (2266) script.js.Alarm.Alarmanlage_Hauptfunktion: ==== DEBUG Haustür wurde geöffnet

2024-07-31 21:51:57.387 - info: javascript.0 (2266) script.js.Alarm.Alarmanlage_Hauptfunktion: ==== DEBUG Haustür wurde geschlossen
`

@foxriver76
Copy link
Collaborator

Better try to trace the problem down in the forum first. As it is the only report it is currently likely that it is not a general js-c problem and with these information alone it is hard to find anything reliable.

@Karkas66
Copy link
Author

Karkas66 commented Aug 5, 2024

k, wil do

@foxriver76
Copy link
Collaborator

Were you able to find out what the problem was @Karkas66 or do you have a link to the forum post?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants