2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 23:06:37 +00:00

added updateToJson command

git-svn-id: https://svn.fhem.de/fhem/trunk@5620 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-04-23 21:46:37 +00:00
parent 30730481e7
commit 579af0d285

View File

@ -553,6 +553,13 @@ LightScene_Set($@)
LightScene_updateHelper( $hash, AttrVal($name,"switchingOrder",undef) );
return undef;
} elsif( $cmd eq "updateToJson" && $LightScene_hasDataDumper && $LightScene_hasJSON ) {
$LightScene_hasJSON = 0;
LightScene_Load($hash);
LightScene_updateHelper( $hash, AttrVal($name,"switchingOrder",undef) );
$LightScene_hasJSON = 1;
LightScene_Save();
return undef;
}