Save/restore variables

Hello,

Is there any means of backuping or saving the logical variables with their values ?
I am trying an SHS migration and have 100+ variables to export. Any help on how to export/import them greatly appreciated

In this page:

Here you can run a script:

Homey.logic.getVariables();

This way you can export everything. You can create a variable in the other Homey like this:

Homey.logic.createVariable({
variable: {
name: "Test variable",
type: "boolean",
value: false
}
});

You can import them more easily this way.

1 Like

already tried. the import in SHS runs but nothing is created. I even rebooted everything to no avail.

edit : after failing to “update” SHS, I reinstalled the container which reverted to 12.10.0 and the creation worked.