[Resolved] Problem with «expression evaluation error»

Hello

I am getting an «expression evaluation error» with a fairly simple expression but the logs don’t give me much info unfortunately, the expression is

Set variable $PoolHeaterEnergyFull value using expression:

$PoolHeaterEnergyFull + ($context.event.variable - $PoolHeaterEnergyPrevious)

All variables have values so I am guessing I have a syntax error of some sort?

Any help would be appreciated!

Thanks

Found answer, had “variable” instead of “value”!

Thanks for the update and glad to hear you got it sorted out.

For future reference, the Expression editor has an autocomplete feature. When you start typing $ it will automatically prompt with a list of variables.

$

Expression Functions $. side-note (tap to expand)

Not necessarily directly related to your post, but the first item in the list is $. which is a special placeholder to pull up the list of common expression functions.

$context.

For the $context variable, once you select it from the list or type the trailing period as $context. it will bring up the next tier of Context Variable groupings:

$context.event.

And if you select $context.event. it will bring up the valid options available under that tier where you can select value :

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.