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

Update Hydrawise maximum watering duration to meet the app limits #136050

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

mattdoran
Copy link
Contributor

Breaking change

Proposed change

The change changes the max watering duration for the start_watering action from 90 minutes to 600 minutes.

I'm using home assistant and hydrawise to try to automate irrigation of a new vineyard. This is a 5 acre vineyard with 5 zones. When I do an irrigation run each zone runs for 2 hours (120 mins). I cannot replicate even a basic irrigation program in homeassistant without allowing longer irrigation duration. I chose 600 mins as a round number and checked that I can start a manual 600 minute irrgation with the hydrawise app.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

Checklist

Sorry, I haven't got a local environment working, however this change does only change a numeric value in 2 places.

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Ruff (ruff format homeassistant tests)
  • Tests have been added to verify that the new code works.

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

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.

To help with the load of incoming pull requests:

Copy link

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

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

Hi @mattdoran

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@home-assistant
Copy link

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@home-assistant home-assistant bot marked this pull request as draft January 20, 2025 06:24
@home-assistant
Copy link

Hey there @dknowles2, @thomaskistler, @ptcryan, mind taking a look at this pull request as it has been labeled with an integration (hydrawise) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of hydrawise can trigger bot actions by commenting:

  • @home-assistant close Closes the pull request.
  • @home-assistant rename Awesome new title Renames the pull request.
  • @home-assistant reopen Reopen the pull request.
  • @home-assistant unassign hydrawise Removes the current integration label and assignees on the pull request, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the pull request.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the pull request.

@mattdoran mattdoran marked this pull request as ready for review January 20, 2025 06:30
@edenhaus
Copy link
Contributor

I chose 600 mins as a round number and checked that I can start a manual 600 minute irrgation with the hydrawise app.

Does the app have a maximum? Otherwise we could remove the maximum in Home Assistant completely

@dknowles2
Copy link
Contributor

I chose 600 mins as a round number and checked that I can start a manual 600 minute irrgation with the hydrawise app.

Does the app have a maximum? Otherwise we could remove the maximum in Home Assistant completely

I don't see any maximums documented, so leaving it unbounded seems fine to me.

@mattdoran
Copy link
Contributor Author

I tried to max out in the app and told me the max was 1440 (a day)

image

@mattdoran
Copy link
Contributor Author

Just read that message more carefully “less than 1440”. Tried in app, allows 1440 but not 1441. :)

Copy link
Contributor

@edenhaus edenhaus left a comment

Choose a reason for hiding this comment

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

@dknowles2 Can you verify that you also have a limit of 1440? If yes, we should set it directly to that value instead of 600.

homeassistant/components/hydrawise/binary_sensor.py Outdated Show resolved Hide resolved
homeassistant/components/hydrawise/services.yaml Outdated Show resolved Hide resolved
@home-assistant home-assistant bot marked this pull request as draft January 21, 2025 07:42
@edenhaus edenhaus changed the title Update Hydrawise maximum watering duration from 90 to 600 minutes Update Hydrawise maximum watering duration to meet the app limits Jan 21, 2025
@edenhaus edenhaus added this to the 2025.1.4 milestone Jan 21, 2025
@dknowles2
Copy link
Contributor

@dknowles2 Can you verify that you also have a limit of 1440? If yes, we should set it directly to that value instead of 600.

Confirmed.

@mattdoran mattdoran marked this pull request as ready for review January 21, 2025 22:32
@home-assistant home-assistant bot requested a review from edenhaus January 21, 2025 22:32
@frenck frenck merged commit b2624e6 into home-assistant:dev Jan 23, 2025
32 checks passed
frenck pushed a commit that referenced this pull request Jan 24, 2025
@frenck frenck mentioned this pull request Jan 24, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 2025
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.

5 participants