Skip to content

Add irrigation service to rain bird#26404

Closed
peternijssen wants to merge 72 commits into
home-assistant:devfrom
peternijssen:rainbird
Closed

Add irrigation service to rain bird#26404
peternijssen wants to merge 72 commits into
home-assistant:devfrom
peternijssen:rainbird

Conversation

@peternijssen
Copy link
Copy Markdown
Contributor

@peternijssen peternijssen commented Sep 3, 2019

Description:

It's great that you can turn on your irrigation through home assistant. The annoying part I had with Rain Bird is that you have to set the duration up front within the config. This means that if you want to do a different duration, you have to reload home assistant. With this change, a new service is being added, allowing you to send along the duration.

Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#10288

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the [development checklist][dev-checklist]

If user exposed functionality or configuration variables are added/changed:

@peternijssen
Copy link
Copy Markdown
Contributor Author

@konikvranik since you seem to be kinda maintaining rainbird I believe, you might want to check out my MR.

@MartinHjelmare MartinHjelmare changed the title add irrigation service to rain bird, which allows you to set the duration Add irrigation service to rain bird Sep 4, 2019
Copy link
Copy Markdown
Contributor

@konikvranik konikvranik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@peternijssen please, rebase onto #26393 where is upgrade to pyrainbird 0.3.1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uprgade to pyrainbird v0.3.1
method names are now more pythonlike.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid of redundance of code.
Change logic in turn_on to call start_irrigation with duration from config.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this is not true already. In pyrainbird there are returned True or False. REbase on my pullrequest #26393 where changes are made.

@peternijssen
Copy link
Copy Markdown
Contributor Author

Holy shit. I messed something up.

@peternijssen
Copy link
Copy Markdown
Contributor Author

Let me close this and get a proper fix. Sorry once again :(

@lock lock Bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.