fabiobui / node-red-contrib-myhome-bticino

MIT License
3 stars 0 forks source link

Previous nodes remain active as 'ghosts' on deploy #11

Open FredBlo opened 3 years ago

FredBlo commented 3 years ago

When deploying updated nodes, the 'old' ones remain active.

Sample :

Any command received (from the MyHome BUS or sent through Node-RED) will come 3 times. In debug panel, calls point to the 3 node names ('name', 'name v2' and 'name v3').

The current only solution is to restart Node-RED server

Based on what I read, the listeners are not cleaned when nodes are unmounted. But the way listeners are built and connected does not allow such easy cleaning since they are all busy listening to the same 'OWN' emit signal.

FredBlo commented 3 years ago

Fyi, I refactored a new node-red nodes set 'node-red-contrib-myhome-bticino-v2' based on this one. In this v2, this issue is solved, and new functionalities have been added too. See detailed Node-RED info page for more info about improvements, bug fixes & upgrade info/procedure. Feel free to discuss about it directly on GitHub (either issues or discussions)