freahs / node-red-contrib-node-tradfri

Node-RED node to utilize IKEA Trådfri devices. Fully implemented in Node.js.
GNU General Public License v3.0
7 stars 13 forks source link

controlling the lights stops working after power cycle gateway #14

Open jtonk opened 5 years ago

jtonk commented 5 years ago

Once the gateway is rebooted, nodered has to be restarted as well in order to control the lights again. log is giving me:

[info] [Tradfri: ed96e04.e40ed2] LightOp '{"id":65537,"color":"warm","onOff":true,"dimmer":76,"transitionTime":0.2}' unsuccessful, 'Error: Retransmit counter exceeded'

any ideas?

jtonk commented 5 years ago

After doing some reading node-tradfri-client, This project is missing the tradfri.reset([preserveObservers: boolean]); and await tradfri.restoreObservers(); would be nice to implement because this is the only node-red node with observer/subscribe functionality, which beats polling every second.

challeballe commented 5 years ago

I got similar problem I think:

[info] [Tradfri: b82c40c0.10d3f] LightOp '{"onOff":true,"transitionTime":0}' unsuccessful, 'Error: Retransmit counter exceeded'

I have to redeploy node-red to get my lighting schedule to work... Or maybe I've got other problems? Any guidence would be appreciated, I'm new to Node-Red...

Thank you!

sttts commented 3 years ago

+1