How to write a trigger for when there is local precipitation

Posted on
Sun Oct 03, 2021 12:16 pm
dduff617 offline
Posts: 660
Joined: Jul 05, 2006
Location: Massachusetts, USA

How to write a trigger for when there is local precipitation

I have some motorized z-wave skylights (Fakro brand) and would like to either provide a Pushover alert and/or automatically close them when there is precipitation (I'm thinking mainly of rain or snow, but anything like sleet or drizzle or hail or graupel, etc would also qualify).

Is there some simple test I can do using my local weather object to alert when there is precipitation of any kind? Or do I have to parse the "current conditions" variable and match against states that have precipitation? Are the possible values for this state documented? Any other tips/tricks? Plugins?

Posted on
Mon Oct 04, 2021 4:23 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: How to write a trigger for when there is local precipita

Unfortunately, the NOAA API that we use doesn't return precipitation. You could attempt to parse the currentCondition state. Alternatively, you can try one of the 3rd party Weather plugins to see if any of those work for you.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests