dictionary:unitinformation:valueof
This is an old revision of the document!
Value Of
Returns the analog value of a unit. If the unit is “dimmable” and a pseudo the value can return any real number, not just integers and can be positive or negative. If the unit is a real device and is dimmable then the value will be between 0 and 100. If not dimmable the value will be 0 or non 0 to indicate on or off.
Usage:
value of (name of a unit)
Examples:
if value of "Temperature" is greater than 70 then turnoff "heating" end if
set value of "Daily Rainfall" to ((value of "Daily Rainfall") + (value of "Hourly Rainfall"))
dictionary/unitinformation/valueof.1508083685.txt.gz · Last modified: 2023/02/13 14:51 (external edit)