fhem.pl: Replace-Magic replaces now attributes and internals too, just like
devspec (Forum #38276) git-svn-id: https://svn.fhem.de/fhem/trunk@13893 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1083,10 +1083,11 @@ The following local attributes are used by a wider range of devices:
|
||||
<br><br>
|
||||
From featurelevel 5.7 on the set and setreading command replaces:
|
||||
<ul>
|
||||
<li>[device:reading] with the corresponding reading of device, if both device
|
||||
and reading exists.</li>
|
||||
<li>[device:reading:d] same as above, but only the number is retrieved, see
|
||||
ReadingsNum </li>
|
||||
<li>[device:name] with the reading, internal or attribute of the device, if
|
||||
both device and the reading, internal or attribute exists. You can use the
|
||||
r:, i: or a: prefix to restrict the search to one type, analogue to the
|
||||
devspec filtering.</li>
|
||||
<li>[device:name:d] same as above, but only the number is retrieved</li>
|
||||
<li>{(perlExpression)} with the result of perlExpression.
|
||||
The $DEV variable is additionally available, designating the set device
|
||||
name.
|
||||
@@ -1650,6 +1651,14 @@ The following local attributes are used by a wider range of devices:
|
||||
ReadingsNum(<devicename>,<reading>,<defaultvalue>)<br>
|
||||
Return the reading as a number, i.e. delete non-numerical values.
|
||||
</li><br>
|
||||
<li>ReadingsTimestamp(<devicename>,<reading>,<
|
||||
defaultvalue>)<br>
|
||||
returns the timestamp of the reading.
|
||||
</li><br>
|
||||
<li>ReadingsAge(<devicename>,<reading>,<defaultvalue>)
|
||||
<br>
|
||||
returns the age of the reading in seconds.
|
||||
</li><br>
|
||||
<li>
|
||||
AttrVal(<devicename>,<attribute>,<defaultvalue>)<br>
|
||||
Return the attribute of the device
|
||||
|
||||
Reference in New Issue
Block a user