mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +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:
parent
30730481e7
commit
579af0d285
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user