Restore Lightscenes possible?

Begonnen von frank.j@me.com, 29 September 2022, 22:10:52

Vorheriges Thema - Nächstes Thema

frank.j@me.com

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?

rudolfkoenig

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.

Beta-User

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.
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

frank.j@me.com