-
Notifications
You must be signed in to change notification settings - Fork 43
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
Smart watering program fix #101
base: main
Are you sure you want to change the base?
Conversation
@allistermaguire Thanks so much for the info and the PR. Can you share more details about the specific discrepancies in the API which cause this to happen? Any API responses or websocket payloads that demonstrate this behaviour would be valuable to validate the logic. This is particularly important as changing the Thank you! |
Hi @sebr, that is a good point. I did not consider that as it is already broken for me, I already had multiple orphaned entities which I needed to clean up. But considering no one else has reported it is likely most people aren't using Orbit Hyve controllers with multiple zones and therefore not having this issue. See smart_watering_program_messages_json.txt for |
I am going to have to rebase this one. I noticed that it includes my naming changes for zones and sensors. I have submitted PR #102 which is possibly more valuable to users, then can circle back to this one later. |
f8072ea
to
f22e90f
Compare
I have rebased and tidy up the code so it is more readable. I have also limited the change to Smart Watering programs, but it is still breaking. The only way I could find to migrate |
Hi, just curious what are the next steps to get this PR merged in? I think I am in a similar boat as allistermaguire. I'm using Smart watering on multiple zones, and the next watering time only seems to show for certain zones, and the zones that it shows for changes. Seems like it may be due to the "Smart watering program not having a constant ID" issue mentioned here. |
0db696e
to
2e23909
Compare
…entry Smart watering fix config entry
I have updated this PR so that it shouldn't be a breaking change. Now that it is using config entries I can migrate the Unique ID for the Smart Watering program switch. It uses |
This issue still persists - whats up with this pull request? |
I haven't checked the latest version/s, but I haven't seen anyone else raise this issue. Not sure if most people mainly run the smart hose timers vs the irrigation controllers as I do. I am personally running my forked version that I update, but haven't done so since Feb 23. |
I use my irrigation controller with Orbit's Smart Watering function and I see the new entities being added when I change settings in the b-hyve app, it's a little annoying having to remove the old ones |
I also experience this issue occasionally. This PR seems like a good idea - any reason not to merge? |
I'm happy to reopen this and have this PR merged, if I can have some beta testers? |
I can beta test it |
I've done some quick tests, so far the main issue is the assumption that there is only one device. error 1Logger: homeassistant.config_entries Source: config_entries.py:978 First occurred: 5:59:13 PM (1 occurrences) Last logged: 5:59:13 PMError migrating entry [email protected] for bhyve I think I resolved this by using One such error is the following, which seems to be fixed by using error 2Logger: homeassistant.config_entries Source: config_entries.py:978 First occurred: 9:00:04 PM (1 occurrences) Last logged: 9:00:04 PMError migrating entry [email protected] for bhyve So it looks like there's a few updates required for this PR - probably primarily to function with the latest HA version? |
This PR fixes an issue with B-hyve Smart Irrigation Controllers that have multiple zones/stations. The Smart Watering program id is not constant when the program updates. This causes the following issues:
program_id
in the module and theid
on the B-hyve being out of sync.I have resolved this by creating a constant program id for programs that are Smart watering based off the device id. This shouldn't be an issue based on my assumption that you can only have one Smart watering program per device.