FHEM Forum

FHEM => English Corner => Thema gestartet von: frank.j@me.com am 29 September 2022, 22:10:52

Titel: Restore Lightscenes possible?
Beitrag von: frank.j@me.com am 29 September 2022, 22:10:52
Dear all,

I had to reinstall FHEM, and I am n ow looking for a way to restore the light scenes I have created in the old install. I have a backup of them and all its folders, is this possible?
Titel: Antw:Restore Lightscenes possible?
Beitrag von: rudolfkoenig am 30 September 2022, 09:54:00
As far as I see from the code, the LightScene data is writte to a file, wich is written in the same directory as the statefile, with the name LightScenes.save. The default should be log/LightScenes.save in the /opt/fhem directory. If you are using configDB, then this file is written to the database, see the configDB help on how to extract it.

I might be wrong, as I never used LightScene.
Titel: Antw:Restore Lightscenes possible?
Beitrag von: Beta-User am 30 September 2022, 10:17:34
Zitat von: rudolfkoenig am 30 September 2022, 09:54:00
I might be wrong, as I never used LightScene.
No, you're absolutely right.

It might be necessary to stop fhem prior to replace the file from a backup.
Titel: Antw:Restore Lightscenes possible?
Beitrag von: frank.j@me.com am 30 September 2022, 21:42:46
Thanks !