I'm new to Node-Red so I do apologise.
node-red-contrib-simple-gate and have used the 'status' node to see if the gate is open or closed which then updates a Dashboard text field.
This works fine under normal usage and I have enabled the 'Restore from saved state' option along with file persistence and the state is preserved between deploys.
However, if I do a full restart of Node-Red or reboot the server the text field does not populate after a reboot until I interact with the gate (I have a button to toggle its status). Is there any way to force the status node to periodically refresh the status node or make it run on startup so the status is displayed without needing to interact with the gate?
Alternatively, can the 'get status of node' be replicated in a 'function'? That way I could use the inject node to trigger it just after start?
Any advice would be appreciated.