Could someone please share the EtherRain Device Driver with me? Thanks!
Or, via HPM:
Thanks!
Hi @csteele - I just posted on GitHub - was wondering if the driver could be updated to expose the rain sensor? Thanks.
I don't have a rain sensor on mine so I think testing will be a problem for me. I will see how easy it is for me to find the API doc, they sent me.
Edit: Found the doc.
Thanks. Keep me posted and I would be happy to test it!
From an API viewpoint, the Rain Sensor doesn't say much.
I've got it's state exposed but it's very obscure:
For no rain:
erTstate will now display Rain Sensor state, and erGstate has the programatic state (0 or 1)
I don't know how you use the Sensor.
I pushed a new version and HPM will update it for you. Reminder: The State Variables are not dynamically refreshed on the web page. Current States, on the other hand, are dynamic:
Thanks, I noticed that there is a trailing space in the value. It tests positive if I check for value contains "0" or equals "0 ". Not a big deal.
Happy to have this exposed. I use it for a number of local rules - for example - turning on the pool cover pump in the winter when it rains, not turning on the irrigation system in our raised vegetable beds when it has rained, etc. Thanks for doing this.
Ahh.. that's an annoying copy/paste error. I've patched the github code and a Repair in HPM should bring in a corrected copy. (No version change.)
Thanks - confirmed working. Now I just have to wait for it to rain!
That's like a 2hr wait for your area this time of year, right?
Ha! I am actually in NY - couldn't put up with that rain in England.
I'm in Southern California because my Parents couldn't stand that rain in Briton
Funny - I first lived in Irvine but ended up in NY.
Thanks for moving, we appreciate it
So first test. Had some rain today. This is what I am getting on the device. Note that the erTstate says Rain Sensor Not Detected. I don't think it said this before I had rain.
I checked the unit and the rain sensor is working - an LED comes on when it detects rain and if I unplug the rain sensor the LED goes out. And in Lawncheck it is saying rain detected. So it seems that the rain sensor is working.
Any thoughts? Thanks.
I sent a message to Sales at Etherrain/LawnCheck ordering a rain sensor. I imagine I'll get one in a week or so. In the mean time, my hypothesis is that your Etherrain controller sends periodic status to LawnCheck (poll) and this Driver doesn't poll.
The Refresh button in the driver does only one thing, query status from the Etherrain controller. The next time you have rain showing in LawnCheck, you may want to click refresh and see if the status updates. If yes, then there are two options, 1) setup a Rule to do a periodic poll (refresh) of the driver. 2) I can add a poll cycle to the driver.
Adding a Poll option will have to wait until a Rain Sensor arrives. The absorbent feature of Etherrain's Rain Sensor means it won't dry out in just a day. Additionally I don't think it reports as "Yes" until it's been wet for 4 mins. Polling therefore shouldn't need to be rapid. For your use case, how responsive does the rain indicator need to be?
Refresh does change the status of rain sensor to 1 and it changes the status to Rain Sensor Detected Rain.
I don't need a fast poll. Even every 5 minutes would be too much. I am not sure what LawnCheck is doing - I know the guy that runs the show is very responsive so will likely get back quickly. And that takes care of my main issue with sprinklers running when it rains.
The rest of the stuff - turning the pool cover pump on in the winter, etc. is not time critical.
I will add a simple rule to refresh at this point.
Yes, Jim has been fully responsive to me over the years (I bought my Etherrain in 2015.) I personally think 5 min polling is excessive, but it's not my hub that would have to run almost 300 polls a day. I make the same argument related to Better Laundry Monitor, where people want to get near instant "dryer is done" messages, yet the people responding to actually go touch the dryer won't get there for 15 mins... unless it's my kids, and reaction/response time is measured in days.