Homeyscript lose varibles after reboot

Sorry, after updating and rebooting homey all my variables is gone…
I run the script above manually then the variables come back.
So it seems like it didnt run it as supposed after reboot

Did you try a delay in the action part!
Maybe it’s take a time after reboot until everything is up.

No I didnt. What can be a normal delay ? 30 seconds ?

Also try adding a notification action card. If that notification is shown, you know that the flow ran but for some reason the script didn’t work. If the notification isn’t shown, it means the flow hasn’t run at all.