Eval Syntax - mknx/smarthome GitHub Wiki
Eval Syntax
Eval
The Syntax of eval is a conditional expression
Example:
eval=value if value>0 else 0
Eval Trigger
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)