mjwwit / node-red-contrib-ikea-tradfri

Node-RED nodes to get updates from and control devices connected to an IKEA TRADFRI gateway
3 stars 3 forks source link

tradfri-light-control: repeated devices listing in "Light(s)" and random light on/off #30

Closed drublin closed 1 year ago

drublin commented 1 year ago

For some reason, devices listed in "Light(s)" list are repeated three times. "None" item is also repeated.

Though not sure if it's a Node or Node-Red issue.

I attach a screenshot. Here for demonstration i Selected all the lights in the node. I have only 92 lights.

92x3+3(none's) = 279

image

Thank you for this Tradfri contribution!

UPD: wanted to add a new issue, but they seem related. A timer is used to trigger TRADFRI night lights ON and OFF. But they get randomly ON/OFF during the day, although the Big Timer always sends "onOff:false" to the tradfri-light-control node.

After some debugging, it seems that due to the above triple listing issue, the tradfri node also sends the update message to Gateway three times. But they sometimes differ.

Here the node has a static config for only one light named "C9.1". Timer sends OFF command every minute. The node sends three messages to gateway, but the second message sometimes differ, and this defines the light behavior.

1st message is input from the Timer node. 2-4 are outputs (repeaded) to gateway image

any ideas?

mjwwit commented 1 year ago

I don't have the time to support a project that I'm no longer using. I am therefore closing this issue.