Autor Thema: Restore Lightscenes possible?  (Gelesen 994 mal)

Offline frank.j@me.com

  • New Member
  • *
  • Beiträge: 6
Restore Lightscenes possible?
« 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?

Offline rudolfkoenig

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 26041
Antw:Restore Lightscenes possible?
« Antwort #1 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.

Offline Beta-User

  • Developer
  • Hero Member
  • ****
  • Beiträge: 19675
Antw:Restore Lightscenes possible?
« Antwort #2 am: 30 September 2022, 10:17:34 »
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-T620@Debian 11, 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

Offline frank.j@me.com

  • New Member
  • *
  • Beiträge: 6
Antw:Restore Lightscenes possible?
« Antwort #3 am: 30 September 2022, 21:42:46 »
Thanks !

 

decade-submarginal