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

Node name cannot be overridden in flow #13

Open tbowmo opened 6 years ago

tbowmo commented 6 years ago

If I enter a name for a tradfri node in nodered, then the name is not reflected, when viewing the flow UI.

The problem is that this.name is not used to name the node in the html UI file, so it should probably be changed to something like

return this.name || this.deviceName || "tradfri";

https://github.com/freahs/node-red-contrib-node-tradfri/blob/c0c97aed8787a0cb08e407f4704ca4d319400e12/src/node-tradfri.html#L88