-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Comments
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); |
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: |
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 |
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. |
k, wil do |
Were you able to find out what the problem was @Karkas66 or do you have a link to the forum post? |
No existing issues.
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:
Reproduction instruction
No response
JS-controller version
6.0.9
Node version
v18.20.4
The text was updated successfully, but these errors were encountered: