Silly Syntax Issue.

It seems that no matter how I slice and dice it, I cannot get the syntax right for this expression. Can someone help?

Condition: (AC_State eq “Cooling”); Now > 1:00 Error: attempt to compare two nil values

Without parentheses I get Error: Invalid Expression Operator

[quote=“Z-Waver, post:1, topic:181546”]It seems that no matter how I slice and dice it, I cannot get the syntax right for this expression. Can someone help?

Condition: (AC_State eq “Cooling”); Now > 1:00 Error: attempt to compare two nil values

Without parentheses I get Error: Invalid Expression Operator[/quote]

create a condition called AC_State_cooling (or whatever you want), and set it to AC_State eq ‘Cooling’

Then create another condition with whatever name you want with the expression:

AC_State_cooling AND (AC_State_cooling;NOW > 1:00)

That is to say that AC_State_cooling is true and ac_state_cooling has been true for 1 minute or longer.

You don’t necessarily need the first part (AC_State_cooling AND), but it just makes sure that the variable is still true in case it’s true then false withing the 1 minute.

Twitch<

Thank you.

The sequence elements of a sequence expression MUST be an Input Name or Condition Name.

The reason is because inputs and conditions have time stamps associated with them.

And sequence expressions operate on the time stamps and not the value of the elements.

An expression does not have a time stamp until it is saved as a condition.

Thanks Richard. My mistake was assuming that a property was equivalent to an input since Device Properties appear on the Inputs tab.

Device properties are inputs and have a timestamp of when they are last updated.

But the expression:
C_State eq “Cooling”
Does not have a timestamp until its saved in a condition.

[quote=“RichardTSchaefer, post:6, topic:181546”]Device properties are inputs and have a timestamp of when they are last updated.

But the expression:
C_State eq “Cooling”
Does not have a timestamp until its saved in a condition.[/quote]
…and the light turned on.(I’m such a punny guy.) Thanks for the explanation Richard.