Foddy / node-red-contrib-huemagic

Philips Hue node to control bridges, lights, groups, motion sensors, temperature sensors and Lux sensors using Node-RED.
https://flows.nodered.org/node/node-red-contrib-huemagic
Apache License 2.0
201 stars 67 forks source link

Hue dimmer firing multiple events on single press. #301

Open ScottBevin opened 2 years ago

ScottBevin commented 2 years ago

Describe the bug

Version 4.1.0 a hue dimmer switch is firing multiple events on a single button press, this can be reproduced with a single two-node setup, debug output from this setup shown in output.

Flow to Reproduce

[{"id":"d7059609f40d7e10","type":"debug","z":"4086d55f5bf4afc5","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":710,"y":140,"wires":[]},{"id":"626eea5987e02f38","type":"hue-buttons","z":"4086d55f5bf4afc5","name":"Living Room Dimmer","bridge":"0ba329f25796dbcc","sensorid":"79096d2f-1b03-4173-b8e2-fbb39c8bd9e1","skipevents":false,"initevents":false,"x":480,"y":140,"wires":[["d7059609f40d7e10"]]},{"id":"0ba329f25796dbcc","type":"hue-bridge","name":"Philips hue","bridge":"[Redacted]","key":"[Redacted]","worker":"10","autoupdates":true,"disableupdates":false}]

Expected behavior

Each action should only fire once.

Screenshots

Screenshot 2022-01-25 211118

Please complete the following information:

Additional context

I verified the issue remains after a reboot and also after deleting and recreating the node.

Foddy commented 2 years ago

Can you please output the whole message object and especially take a look at the msg.updated property?

This should give us more information on what updated exactly since the last event.