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

Docs: Clarifies use of "config" & "monitor" nodes #23

Closed matthiashh closed 2 years ago

matthiashh commented 2 years ago

These were the two things I got wrong first:

  1. "config" does not appear in the palette and is configured inside other nodes: I almost opened an issue for this, because I could not find the "config" node in the palette. I had other modules in the past that required to place a special "config" node without connections anywhere in the flow.

  2. "monitor" provides all updates, not just if a device is added or removed: First I though that this only sends information when devices are newly added (updated) to the network or removed from it. It turned out that it provides all status updates though.

mjwwit commented 2 years ago

Thanks for this!

  1. "config" does not appear in the palette and is configured inside other nodes: I almost opened an issue for this, because I could not find the "config" node in the palette. I had other modules in the past that required to place a special "config" node without connections anywhere in the flow.

This is actually a pattern that is very common for Node-RED plugins and even built-in nodes. So-called configuration nodes are never visible in the palette, because they can not be added separately to your flows. I'll still include the addition you made to the docs however, as it can't hurt.

mjwwit commented 2 years ago

Very nice, thank you! I'll merge this.