hobbyquaker / node-red-contrib-lgtv

Node-RED Nodes to control LG webOS Smart TVs :tv:
http://flows.nodered.org/node/node-red-contrib-lgtv
MIT License
59 stars 22 forks source link

Control Events registered multiple times #29

Open Robinfr opened 3 years ago

Robinfr commented 3 years ago

If you have a Control node and use it to register whether the TV was turned on, and you do only deploy the Modified Flows in Node Red, it will keep registering new events.

In my case, I was getting 6 events in one go at some point. I guess, it should deregister all events and reregister itself on deploy?

Problem lies here most likely: https://github.com/hobbyquaker/node-red-contrib-lgtv/blob/master/nodes/lgtv-control.js#L9