-
Notifications
You must be signed in to change notification settings - Fork 68
Eval Syntax
henfri edited this page Jan 1, 2015
·
3 revisions
The Syntax of eval is a conditional expression
Example:
eval=value if value>0 else 0
A common error is, to use the full python-path to a smarthome.py item in the Eval trigger. Correct is to use the Item-Name only, i.e. without the leading sh.:
Correct:
eval=sh.my.value**()**
- eval_trigger= my.value|my.other.value
(incorrect:
eval=sh.my.value
eval_trigger= **sh.**my.value|**sh.**my.other.value)