User Tools

Site Tools


dictionary:unitinformation:valueof

Table of Contents

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.txt · Last modified: 2023/02/13 14:52 by 127.0.0.1