Closed vinteo closed 8 months ago
It would be great if we could get this implemented.
The advantage of using a rain delay is that it is temporary. Currently, I use an automation to disable open sprinkler in the event of forecast rain. When that forecast clears, I use a second automation to re-enable open sprinkler.
This isn't ideal, because if HomeAssistant misses the second event, my OpenSprinkler can remain disabled for some time.
If we had the ability to set a rain delay, then I could set a rain delay for 2 days, opensprinkler would automatically re-enable and I wouldn't have to worry about a second automation.
Happy to give it a go, just getting a dev environment set up now.
I have it "working" but ran into a bit of trouble, please see draft pull request for details.
Done in v1.2.6 (#269), thanks @curlydingo
pyopensprinkler has the controller function:
https://github.com/vinteo/py-opensprinkler/blob/master/pyopensprinkler/__init__.py#L372-L380