Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
sonoff [08.12.2018 09:54]
Pascal Suter [retention and QoS]
sonoff [08.12.2018 09:57] (current)
Pascal Suter [Rules Engine - node-red]
Line 160: Line 160:
 and here is what it looks like:  and here is what it looks like: 
 {{ :​node-red:​flow.png |}} {{ :​node-red:​flow.png |}}
 +==== a word about retention ====
 +it seems node-red sets the retention flag of mqtt by default. I learned this when i used it together with the mqtt-dss-connector:​ i created a rule that turned the light in the bathroom on. if i turned it off later (not via node-red) and then restarted the mqtt-dss-bridge the light in my bathroom went on again "for no reason"​ .. this was because that on command was published with the retention flag set to on (or actually not set to anything in node-red). so i set it to "​false"​ and the problem was resolved. ​
 +
 ===== Making the installation permanent ===== ===== Making the installation permanent =====
 this might be different in your setup, but I would like to install the npm modules globally and then run them as non-root users through a systemd script to make sure they are auto-startet as soon as my system boots. this might be different in your setup, but I would like to install the npm modules globally and then run them as non-root users through a systemd script to make sure they are auto-startet as soon as my system boots.