Project Home‎ > ‎Documentation‎ > ‎

Attributes

Most devices can be used with an attribute that modifies the behaviour of the device. Some attributes belong to a specific device. Here is a list and description of each attribute and how it is used.

General syntax: You can often have one or more items to an attribute, in that case you must enclose the items in curly brackets.

Single item:

attribute={ rule,rule ,... ,}

More than one:

attribute=( {rule,rule ,... ,},{rule,rule ,... ,}, )



Each rule is made up of a keyword, a “:”, and a value,. All keywords are of the form “Attribute.STATEMENT”. Values can be commands, time in seconds, time of day or devices depending on the STATEMENT part of the keyword.



Rule syntax:

{Attribute.STATEMENT: VALUE}

or

{Attribute.STATEMENT: (VALUE, VALUE, ...)}



Allowed STATEMENTS:

COMMAND

COMMAND is a command associated with a device:

Command.ON, Command.OFF Command.LEVEL

Command.OPEN, Command,.CLOSED

Command.MOTION, Command.STILL

Command.LIGHT, Command.DARK

MAPPED

MAPPED is the command that the above command is mapped to and takes the same values as COMMAND.

SOURCE

SOURCE is the device that the command is coming from and it's syntax is identical to the “device” keyword when you define an object. See DEVICES above.

TARGET

TARGET is a synonym for MAPPED.

TIME

TIME is a value in seconds. It can be an absolute time such as “120” for 120 seconds or it can be a math equation such as “2*60” for 120 seconds.