I’m trying to turn on and off a celing fan when my heater goes on and off. I’m using the ModeState property from my Nest Thermostat which has “Idle” and “Heating” states. If my Condition Expression is:
FanOn = State ne “Idle”
the fan will turn on as soon as the heater turns on (ModeState changes from Idle to Heating)
However of I just use
FanOn = State eq “Heating”
I never get the Action and the fan does not turn on.
I noticed that when there’s a syntax error… the error message displays “Heating” as “HEATING”
Could this be the problem?
Chances are those values are actually numbers mapped by the user interface.
To find out what to use:
Set the Thermostat to a Know Operating State.
Reload the Web browser (to make sure it does not have a previously cached value).
Go to the Advanced TAB for the Thermostat.
See what values are set … these are the values that PLEG will see.
String constants are case sensitive!
When you get syntax errors it does not know that “Heating” is a constant at the time … as an arbitrary token it shows it in uppercase. Tokens like AND, NOT, OR, input names (triggers, calendars, device properties) are NOT case sensitive.
Device Property:
State = The Therostats ModeState variable
Conditions:
FanOn = State eq “Heating”
FanOff = State eq “Idle”
Then I’ve got two scenes using the FanOn trigger to turn ON the fan and the FanOff trigger to turn off the fan
I get no trigger when the Furnace cuts on or off.
Please let me know if there is a suspected problem in the Nest plugin. I’ve got ModeState in the UI in v1.0 (submitted today), and it seems to change values when expected (but it can take up to the poll delay number of seconds to be reflected in Vera).
Maybe you can record your Vera Log during a period when you change the Fan state
so I can see what is happening.
To record the log use the following URL: [url=http://YourVeraIP/cgi-bin/cmh/log.sh?Device=LuaUPnP]http://YourVeraIP/cgi-bin/cmh/log.sh?Device=LuaUPnP[/url]
I realize that the actual development of the plugin is not the major inventment in time…it’s the suppport. I know it’s been said before… but I can’t thank you and others like Guesed and Futzle who contribute so much to the fourm. Home Automation is not a cheap proposition and your willingness to support Vera adds value to our investment. I look forward to the point when I can return the favor by contributing to the fourm in a meaningful way.