Issue with WeatherSnoop plugin and schedule conditional

Posted on
Mon Aug 12, 2013 7:57 pm
whizzosoftware offline
Posts: 19
Joined: May 21, 2012

Issue with WeatherSnoop plugin and schedule conditional

Hi all,

I have a schedule that is used to run my sprinkler system both in the morning and evening. The schedule has a conditional as follows (copied from the event log using "Insert into Event Log Window" button):

"If device" "WeatherSnoop" "Current Rain Millimeters" "is less than" "13"

The conditional always passes despite the current rain mm value being greater than 13 (in today's case it's 22). I suspect perhaps the conditional check is treating 13 as a string rather than a numeric value?

Turning on WeatherSnoop's debug mode shows the following values are being set:

Code: Select all
Updating device: state=rainRateMillimeters fieldName=rain:rate:value%type=mm/hr newValueTup=(u'0', u'2013-08-12 15:07:05 -0600')
  WeatherSnoop Debug                  Updating device: state=rainTodayInches fieldName=rain:day:value%type=in newValueTup=(u'0.85', u'2013-08-12 14:50:08 -0600')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor07F fieldName=temperature:extra%id=7:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor07C fieldName=temperature:extra%id=7:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=solarRadiation fieldName=solarRadiation:value newValueTup=(u'-9999.00', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=rainTotalInches fieldName=rain:total:value%type=in newValueTup=(u'8.21', u'2013-08-12 14:50:08 -0600')
  WeatherSnoop Debug                  Updating device: state=soilMoistureSensor04 fieldName=moistures:soil%id=4:value newValueTup=(u'-9999.00', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor10C fieldName=temperature:extra%id=10:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=soilMoistureSensor01 fieldName=moistures:soil%id=1:value newValueTup=(u'-9999.00', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=soilMoistureSensor03 fieldName=moistures:soil%id=3:value newValueTup=(u'-9999.00', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=soilMoistureSensor02 fieldName=moistures:soil%id=2:value newValueTup=(u'-9999.00', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=humidityIndoor fieldName=humidity:indoor:value newValueTup=(u'36', u'2013-08-12 19:16:29 -0600')
  WeatherSnoop Debug                  Updating device: state=windKnots fieldName=wind:speed:value%type=kn newValueTup=(u'0.0', u'2013-08-12 19:44:20 -0600')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor10F fieldName=temperature:extra%id=10:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=humidity fieldName=humidity:outdoor:value newValueTup=(u'74', u'2013-08-12 19:46:50 -0600')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor06C fieldName=temperature:extra%id=6:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor06F fieldName=temperature:extra%id=6:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=uvIndex fieldName=uvIndex:value newValueTup=(u'-9999.00', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=leafMoistureSensor01 fieldName=moistures:leaf%id=1:value newValueTup=(u'-9999.00', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=soilTemperatureSensor03F fieldName=temperature:soil%id=3:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=pressureTrend fieldName=barometricTrend:value newValueTup=(u'Rising slowly', u'2013-08-12 19:15:29 -0600')
  WeatherSnoop Debug                  Updating device: state=leafMoistureSensor04 fieldName=moistures:leaf%id=4:value newValueTup=(u'0.00', u'2012-12-27 00:05:19 -0700')
  WeatherSnoop Debug                  Updating device: state=soilTemperatureSensor03C fieldName=temperature:soil%id=3:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=windChillF fieldName=windChill:value%type=F newValueTup=(u'63.7', u'2013-08-12 19:49:11 -0600')
  WeatherSnoop Debug                  Updating device: state=windChillC fieldName=windChill:value%type=C newValueTup=(u'17.6', u'2013-08-12 19:49:11 -0600')
  WeatherSnoop Debug                  Updating device: state=humiditySensor10 fieldName=humidity:extra%id=10:value newValueTup=(u'-9999', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=rainMonthMillimeters fieldName=rain:month:value%type=mm newValueTup=(u'46', u'2013-08-12 14:50:08 -0600')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor08C fieldName=temperature:extra%id=8:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=longitude fieldName=station:location:longitude:decimal newValueTup=(u'0', '')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor08F fieldName=temperature:extra%id=8:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=temperatureIndoorC fieldName=temperature:indoor:value%type=C newValueTup=(u'25.1', u'2013-08-12 19:09:29 -0600')
  WeatherSnoop Debug                  Updating device: state=temperatureIndoorF fieldName=temperature:indoor:value%type=F newValueTup=(u'77.2', u'2013-08-12 19:09:29 -0600')
  WeatherSnoop Debug                  Updating device: state=leafTemperatureSensor02C fieldName=temperature:leaf%id=2:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=leafTemperatureSensor02F fieldName=temperature:leaf%id=2:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=forecast fieldName=forecast:value newValueTup=(u'Partly Cloudy', u'2013-08-12 14:00:27 -0600')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor01C fieldName=temperature:extra%id=1:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor01F fieldName=temperature:extra%id=1:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=rainYearMillimeters fieldName=rain:year:value%type=mm newValueTup=(u'209', u'2013-08-12 14:50:08 -0600')
  WeatherSnoop Debug                  Updating device: state=soilTemperatureSensor04C fieldName=temperature:soil%id=4:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=soilTemperatureSensor04F fieldName=temperature:soil%id=4:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=heatIndexF fieldName=heatIndex:outdoor:value%type=F newValueTup=(u'63.7', u'2013-08-12 19:49:11 -0600')
  WeatherSnoop Debug                  Updating device: state=heatIndexC fieldName=heatIndex:outdoor:value%type=C newValueTup=(u'17.6', u'2013-08-12 19:49:11 -0600')
  WeatherSnoop Debug                  Updating device: state=humiditySensor01 fieldName=humidity:extra%id=1:value newValueTup=(u'-9999', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=humiditySensor03 fieldName=humidity:extra%id=3:value newValueTup=(u'-9999', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=humiditySensor02 fieldName=humidity:extra%id=2:value newValueTup=(u'-9999', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=humiditySensor05 fieldName=humidity:extra%id=5:value newValueTup=(u'-9999', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=windGustKPH fieldName=wind:gust:value%type=kph newValueTup=(u'0.0', u'2013-08-12 14:28:29 -0600')
  WeatherSnoop Debug                  Updating device: state=humiditySensor07 fieldName=humidity:extra%id=7:value newValueTup=(u'-9999', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=humiditySensor06 fieldName=humidity:extra%id=6:value newValueTup=(u'-9999', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=humiditySensor09 fieldName=humidity:extra%id=9:value newValueTup=(u'-9999', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=humiditySensor08 fieldName=humidity:extra%id=8:value newValueTup=(u'-9999', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=windMPH fieldName=wind:speed:value%type=mph newValueTup=(u'0.0', u'2013-08-12 19:44:20 -0600')
  WeatherSnoop Debug                  Updating device: state=rainTodayMillimeters fieldName=rain:day:value%type=mm newValueTup=(u'22', u'2013-08-12 14:50:08 -0600')
  WeatherSnoop Debug                  Updating device: state=leafTemperatureSensor01F fieldName=temperature:leaf%id=1:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=leafTemperatureSensor01C fieldName=temperature:leaf%id=1:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=rainTotalMillimeters fieldName=rain:total:value%type=mm newValueTup=(u'209', u'2013-08-12 14:50:08 -0600')
  WeatherSnoop Debug                  Updating device: state=humiditySensor04 fieldName=humidity:extra%id=4:value newValueTup=(u'-9999', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=dewPointIndoorF fieldName=dewPoint:indoor:value%type=F newValueTup=(u'48.2', u'2013-08-12 19:16:29 -0600')
  WeatherSnoop Debug                  Updating device: state=dewPointIndoorC fieldName=dewPoint:indoor:value%type=C newValueTup=(u'9.0', u'2013-08-12 19:16:29 -0600')
  WeatherSnoop Debug                  Updating device: state=leafMoistureSensor02 fieldName=moistures:leaf%id=2:value newValueTup=(u'-9999.00', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=leafMoistureSensor03 fieldName=moistures:leaf%id=3:value newValueTup=(u'-9999.00', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor03C fieldName=temperature:extra%id=3:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor03F fieldName=temperature:extra%id=3:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=soilTemperatureSensor01C fieldName=temperature:soil%id=1:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=leafTemperatureSensor04C fieldName=temperature:leaf%id=4:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=soilTemperatureSensor01F fieldName=temperature:soil%id=1:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=leafTemperatureSensor04F fieldName=temperature:leaf%id=4:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=temperatureF fieldName=temperature:outdoor:value%type=F newValueTup=(u'63.7', u'2013-08-12 19:49:11 -0600')
  WeatherSnoop Debug                  Updating device: state=soilTemperatureSensor02F fieldName=temperature:soil%id=2:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=windGustMPH fieldName=wind:gust:value%type=mph newValueTup=(u'0.0', u'2013-08-12 14:28:29 -0600')
  WeatherSnoop Debug                  Updating device: state=soilTemperatureSensor02C fieldName=temperature:soil%id=2:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=temperatureC fieldName=temperature:outdoor:value%type=C newValueTup=(u'17.6', u'2013-08-12 19:49:11 -0600')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor09C fieldName=temperature:extra%id=9:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor09F fieldName=temperature:extra%id=9:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor02F fieldName=temperature:extra%id=2:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor02C fieldName=temperature:extra%id=2:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=leafTemperatureSensor03F fieldName=temperature:leaf%id=3:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=leafTemperatureSensor03C fieldName=temperature:leaf%id=3:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=windGustKnots fieldName=wind:gust:value%type=kn newValueTup=(u'0.0', u'2013-08-12 14:28:29 -0600')
  WeatherSnoop Debug                  Updating device: state=rainRateInches fieldName=rain:rate:value%type=in/hr newValueTup=(u'0.00', u'2013-08-12 15:07:05 -0600')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor04F fieldName=temperature:extra%id=4:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor05F fieldName=temperature:extra%id=5:value%type=F newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=heatIndexIndoorF fieldName=heatIndex:indoor:value%type=F newValueTup=(u'77.2', u'2013-08-12 19:09:29 -0600')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor05C fieldName=temperature:extra%id=5:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=heatIndexIndoorC fieldName=heatIndex:indoor:value%type=C newValueTup=(u'25.1', u'2013-08-12 19:09:29 -0600')
  WeatherSnoop Debug                  Updating device: state=dewPointC fieldName=dewPoint:outdoor:value%type=C newValueTup=(u'12.9', u'2013-08-12 19:49:11 -0600')
  WeatherSnoop Debug                  Updating device: state=dewPointF fieldName=dewPoint:outdoor:value%type=F newValueTup=(u'55.3', u'2013-08-12 19:49:11 -0600')
  WeatherSnoop Debug                  Updating device: state=pressureInches fieldName=barometricPressure:value%type=inHg newValueTup=(u'29.91', u'2013-08-12 19:49:29 -0600')
  WeatherSnoop Debug                  Updating device: state=rainMonthInches fieldName=rain:month:value%type=in newValueTup=(u'1.81', u'2013-08-12 14:50:08 -0600')
  WeatherSnoop Debug                  Updating device: state=pressureMillibars fieldName=barometricPressure:value%type=mb newValueTup=(u'1013', u'2013-08-12 19:49:29 -0600')
  WeatherSnoop Debug                  Updating device: state=windKPH fieldName=wind:speed:value%type=kph newValueTup=(u'0.0', u'2013-08-12 19:44:20 -0600')
  WeatherSnoop Debug                  Updating device: state=windDegrees fieldName=wind:direction:value newValueTup=(u'93', u'2013-08-12 19:49:20 -0600')
  WeatherSnoop Debug                  Updating device: state=temperatureSensor04C fieldName=temperature:extra%id=4:value%type=C newValueTup=(u'-9999.0', u'2012-12-27 00:05:18 -0700')
  WeatherSnoop Debug                  Updating device: state=rainYearInches fieldName=rain:year:value%type=in newValueTup=(u'8.21', u'2013-08-12 14:50:08 -0600')

Posted on
Mon Aug 12, 2013 9:39 pm
jay (support) offline
Site Admin
User avatar
Posts: 18260
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Issue with WeatherSnoop plugin and schedule conditional

Moved to the correct forum.

I'll take a look at it in the next day or two. This is something new, correct? In other words, it never worked correctly for you.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Aug 12, 2013 11:47 pm
whizzosoftware offline
Posts: 19
Joined: May 21, 2012

Re: Issue with WeatherSnoop plugin and schedule conditional

Thanks for the response, Jay.

Yes, this is something new I hadn't tried before.

Posted on
Thu Aug 15, 2013 12:20 pm
jay (support) offline
Site Admin
User avatar
Posts: 18260
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Issue with WeatherSnoop plugin and schedule conditional

OK - I just tried it by picking a weatherunderground station that had rain today and it worked fine so I'm a bit mystified. The fact that the tuple is showing the value as a unicode string is irrelevant - we convert it appropriately. Are you sure you have the right station selected? Look at the custom states list and make sure that "rainTodayMillimeters" has the correct value.

Also, if you're testing by pressing the "Execute Actions Now" button that won't work because we ignore conditions when that button is pressed (it's in the tooltip for the button).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Aug 16, 2013 2:31 pm
whizzosoftware offline
Posts: 19
Joined: May 21, 2012

Re: Issue with WeatherSnoop plugin and schedule conditional

I didn't realize that the "Execute Actions Now" button ignores conditions -- that was how I confirmed the problem (so I thought). However, the issue that caused me to attempt to confirm was that my sprinkler ran when we had received more than a half inch of rain. When I checked the custom state list, it clearly showed greater than a half inch for the day and everything about the schedule item seemed configured correctly. I then tried switching over to millimeters to see if it was a problem specific to inches.

I tried creating some sample schedules to run based on the current temperature and they seemed to work ok. I'll keep an eye on the sprinkler situation and see if it happens again.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests