Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rockstar2020 opened this issue May 24, 2018 · 3 comments

Comments

@rockstar2020
Copy link

@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
Copy link
Collaborator

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
Copy link
Author

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

@rockstar2020
Copy link
Author

Hi @tchellomello,
Any luck?
Cheers

@tchellomello tchellomello removed their assignment Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants