diff --git a/FHEM/31_LightScene.pm b/FHEM/31_LightScene.pm index facf8a2ea..297949bfb 100644 --- a/FHEM/31_LightScene.pm +++ b/FHEM/31_LightScene.pm @@ -720,23 +720,23 @@ LightScene_Get($@) Attributes
abc -> xyz
- or get cba -> set uvw
to map reading abc to set xyz or get cba to set uvw. the list can be given as a
- string or as a perl expression enclosed in {} that returns this string.attr myReceiver lightSceneParamsToSave volume,channel
- attr myHueDevice lightSceneParamsToSave {(Value($DEVICE) eq "off")?"state":"bri : xy"}
attr myDimmer lightSceneParamsToSave state@{if($value=~m/(\d+)/){$1}else{$value}}
+ this attribute can be set on the devices to be included in a scene. it is set to a comma separated list of readings
+ that will be saved. multiple readings separated by : are collated in to a single set command (this has to be supported
+ by the device). each reading can have a perl expression appended with '@' that will be used to alter the $value used for
+ the set command. this can for example be used to strip a trailing % from a dimmer state. this perl expression must not contain
+ spaces,colons or commas.abc -> xyz
+ or get cba -> set uvw
to map reading abc to set xyz or get cba to set uvw. the list can be given as a
+ string or as a perl expression enclosed in {} that returns this string.attr myReceiver lightSceneParamsToSave volume,channel
+ attr myHueDevice lightSceneParamsToSave {(Value($DEVICE) eq "off")?"state":"bri : xy"}
+ attr myDimmer lightSceneParamsToSave state@{if($value=~m/(\d+)/){$1}else{$value}}
+