[ANSWERED]Weather VAR

Posted on
Mon Apr 21, 2014 12:35 pm
mindshare offline
Posts: 9
Joined: Apr 01, 2014

[ANSWERED]Weather VAR

I would like to setup a weather variable, it would = true or false based on weather - current condition containing certain text.

My question is do I need 2 triggers one to set it true if contains and a second to set it false if does not contain? Is this the best way to accomplish the desired action?

Thanks

Posted on
Mon Apr 21, 2014 3:32 pm
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: Weather VAR

Which weather plugin do you want to use?

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Tue Apr 22, 2014 11:20 am
mindshare offline
Posts: 9
Joined: Apr 01, 2014

Re: Weather VAR

I am using the NOAA built in one in version 6

Posted on
Tue Apr 22, 2014 11:29 am
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: Weather VAR

I would be inclined to set up triggers like this and create as many as you need. You could instead use a fairly simple Python script, but personally, I find it much easier to know what's going on if I use Indigo's functionality.

Code: Select all
Trigger:

Type:  Device State Changed
Device:  NOAA Weather / Current Condition / Has Any Change

Condition:

If conditions match rules: (checked)
if device / NOAA Weather / Current Condition / Contains "Cloudy"

Actions:

Type: Modify Variable (Variable Actions)
Variable: <NOAA Variable you want to change>
Set to true (checked)

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Thu Apr 24, 2014 7:15 am
mindshare offline
Posts: 9
Joined: Apr 01, 2014

Re: Weather VAR

so I do not need a separate trigger to turn it to false? It is automatically turned to false if the conditions are not meet?

Thanks

Posted on
Thu Apr 24, 2014 7:57 am
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: Weather VAR

You would need a separate trigger to turn it false. Just make sure that if you have multiple triggers that you don't have conflicting results (triggers setting true / false at the same time).

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Thu Apr 24, 2014 1:31 pm
mindshare offline
Posts: 9
Joined: Apr 01, 2014

Re: Weather VAR

so I set up a 4 true condition that says
weather current condition contains Rain
weather current condition contains Showers
weather current condition contains Thunderstorm
weather current condition contains Fog

I setup a false one where
weather current condition does not contain Rain
weather current condition does not contain Showers
weather current condition does not contain Thunderstorm
weather current condition does not contain Fog

I get this in the log
Apr 24, 2014 3:31:36 PM
Trigger Set isPrecipitationFog Var - True
Trigger Set isPrecipitationFog Var - False

What gives it sets it to true than sets it to false????

Posted on
Thu Apr 24, 2014 1:35 pm
mindshare offline
Posts: 9
Joined: Apr 01, 2014

Re: Weather VAR

So I figured it out I had it set to any on the false statment so I was getting false all the time. I have not setup my false trigger to none and set the condition to contains my 4 trigger words Rain, Fog, Thunderstorm, Showers. That should do it right or am I still missing something?

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests