[SOLVED] Node-Red and previous.state

So when you start NodeRed, each openhab node will push the output (last state) on the second pin? Or it will wait for a new value first.

I got tired when migrating OH 1 to 2 and settled for MQTT backend, node-red as brain, and openhab with habpanel just for the interface. What bothers me is when restarting node-red not all mqtt inputs re-fire and it takes some time while items stay as undefined in node-red.

That is the nature of MQTT. You could use retain and the broker will resend the last message on reconnection

They are retained. But I feel that no all of them refire. Hard to track, have over 40 large nodered tabs