vanstinator / raincloudy

RainCloudy is a library written in Python 3.x that manages the Melnor RainCloud Smart Garden Watering Irrigation Timer.
Apache License 2.0
24 stars 7 forks source link

Support for setting watering timer during switch.turn_on service call #24

Open rockstar2020 opened 6 years ago

rockstar2020 commented 6 years ago

@tchellomello, Thanks for developing this wonderful integration with HA. I noticed that the watering time is only possible to be configured in configuration file which is basically set on startup. I tried to set the watering time via switch.turn_on service call but the service data is not accepted. Is it possible possible to add this parameter in the switch component? Additionally it'll be great if you could consider adding other service calls such as setting rain delays. The thing is that I use voice commands via my google home as well as automation and it'll be great if I could use these services to turn on the watering for certain time frame or add rain delay by just a voice command or based on weather forecast which triggers a rain delay setting via your newly added service call. Once again much appreciate adding this component to HA. Cheers

tchellomello commented 6 years ago

Hello @mehdiheidari, Thanks for your kind words and for your interest in getting this library better. I like your idea of adding the rain delays via service. So, basically, your idea is to keep the watering_time value active for all switches, but have a call via service to override that if needed. Is that what you want?

Thanks @mehdiheidari

rockstar2020 commented 6 years ago

Hi @tchellomello, Yes, that's exactly right. Thanks again.

rockstar2020 commented 6 years ago

Hi @tchellomello, Any luck? Cheers