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
203 stars 68 forks source link

Instable delay of reaction either on the HUEMagic Nodes or within the HUE Android app #394

Open adb336 opened 2 years ago

adb336 commented 2 years ago

Describe the bug During my tests with HomeMatic CCU3, RedMatic, HUE Bridge, HUE App on Android I noticed that the response time when I changed either a white lamp from on to off and vv. is not stable enough.

Sometimes the flow immediatly shows on/off, sometimes it takes more then 10 seconds, I have noticed also no change at all.

In order to reproduce define the connection to the bridge with autodetection and generate the API key with the automated procedure of HUE Magic.

Then connect a dashboard node switch with one of the detected white lamps nodes of the HUE bridge.

Now switch the lamp on/off using the flow. You will notice

Now use the HUE Android app to switch the lamp.

The flow will be

This is not what this bundle of nodes urged to do.

Flow to Reproduce

[{"id":"8888888.eeeeee","type":"tab","label":"Example Flow"...}]

Expected behavior My expactation is:

Screenshots Will be uploaded if the above cannot be reproduced.

Please complete the following information:

Additional context Add any other context about the problem here.

FredBlo commented 2 years ago

Fyi, I published a pull request #409 which improves the way the bridge overload is handled (following +/- recent changes made to the HUE bridge at this level, aka Error 429)... I think this could solve your issue as well because some calls could be 'dropped' before, but not sure about it... Do not forget to limit your config to 1 worker anyway... So if you want to give a try, you can using this one too (installable form FredBlo fork npm install git+https://github.com/fredblo/node-red-contrib-huemagic.git :-) )