Mqtt monitoring / syncing states, need bit of help

Just a thought, in order that it works immediately on node-red restart the two stat topics should be Retained topics in MQTT.