Page 1 of 1

How to write a trigger for when there is local precipitation

PostPosted: Sun Oct 03, 2021 12:16 pm
by dduff617
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?

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

PostPosted: Mon Oct 04, 2021 4:23 pm
by jay (support)
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.