How to recall the latest parameter values after restarting the computer?

I have a flow with many setting inside. (i.e. scroll bar, data from MQTT...) Right now, I wrote a button to save all these parameter in my json file and once the computer is restarted, the function in the flow reads back the parameter from the json file.
Is there a better way to do it?

As you are using mqtt, you could have them stored by retained subscription. When a payload is retained mqtt will republish to the device, when a device reconnect to the mqtt server., i.e. at restart/reboot.

Oh yes, MQTT has retain option. :>
Thx E1cid

If it is essential to save context data, you could save important data to context variables and have NR persist it to disk for you. On the restart, it will be available.

Should be a pretty simple implementation

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.