-
-
Notifications
You must be signed in to change notification settings - Fork 36.2k
Update plugwise to async and config_flow #33691
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
Conversation
|
Hey there @laetificat, @bouwew, mind taking a look at this pull request as its been labeled with a integration ( |
|
OK from my side, as co-creator :) |
Kane610
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are adding too much with this PR, you can definitely remove the new platforms to separate PRs
|
@Kane610 would you suggest to just remove the other 3 components besides |
|
As for CI: py37 seems to fail with codecov argument issues on most PRs now? |
|
Just small updates on main PR comment wrt doclink and previous commits referencing Looking forward to help on how we can best move forward and/or on separating PRs. |
This comment has been minimized.
This comment has been minimized.
|
@CoMPaTech yes that sounds about right, you have two weeks to get everything in :) |
|
@Kane610 Done ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For hvac_action, if only climate.py is part of the PR, return to the old code:
if self._heating_state or self._boiler_state or self._dhw_state:
return CURRENT_HVAC_HEAT
if self._cooling_state:
return CURRENT_HVAC_COOL
return CURRENT_HVAC_IDLE
|
Reviewers will come automatically when they have time |
c90e064 to
a0572ea
Compare
Dear reviewer(s): Please note that we still would prefer to have both As requested the PR currently only holds |
95cfeb3 to
2ee2476
Compare
|
Catching up with #34591 |
|
Dear reviewer(s): Please note that we still would prefer to have both climate and sensor (at minimum) on release to ensure existing functionality for 'Anna' (thermostat-only) users - if feasible all platforms should be included on (breaking) release. As requested the PR currently only holds climate and we would need additional PRs on binary_sensor, sensor, switch. |
Co-authored-by: J. Nick Koston <[email protected]>
Co-authored-by: J. Nick Koston <[email protected]>
|
Everything still working as expected? |
I still have to try my dev-HA tonight at home near the bridge, but changing the But I'd still like to try it on the actual devcontainer on 0.111 |
|
|
Created #36219 as the indicated sensor-part for this 'parent'-PR. |
|
@CoMPaTech. Would you prefer this gets merged now or wait until the start of 0.112 dev? |
@bdraco we’ll have to improve the base class slightly as per your review of the child PR. I think we can iron things out before beta Wednesday - but depends on reviewer and merger availability too. Should we iterate this PR once more for base class improvement first, I can work on that later tonight? |
|
This one is already large enough so lets not add anything else. It should like you have the bandwidth to get things ready by Wed. I should be able to find the time to do the reviews. I'll merge this now. |
|
Tnx, we'll start working on the other one (we have to now anyway :)) |
MartinHjelmare
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Some comments to address in a future PR.
| @@ -0,0 +1,22 @@ | |||
| { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other translations than the default autogenerated English are pointless to add. This is handled by Lokalise.
|
@MartinHjelmare pushed in a7c0748 |
Submitter has a followup PR to add
sensorthat should go out in the same release. This PR should be merged on or after May 14th to ensure the both PRs end up in the same release.Breaking change
To improve user friendly configuration and support Adam and P1 devices in addition to Anna's, starting today Plugwise is configured through Configuration -> Integrations instead of updating the configuration file. Please remove the applicable lines from your configuration file (
configuration.yaml) before upgrading. After upgrading add each Smile as an integration as described in the documentation. Note that this update also makes slight changes with regard to entity names to handle more than Anna.Proposed change
As suggested we (@bouwew and @CoMPaTech) submit this as a draft PR to get our bearings right and are open to feedback on how to improve and get this new and async version of the plugwise component to HA-core. Any recommendations and improvements are welcome! One on our radar is the functionality from #32724.
With our previous PRs it was clear that more components were required to ensure our climate component wasn't full of (other) sensors and data. We decided to do this and make sure there were improvements for users as well. We rewrote the pypi module almost from scratch, async from the start, and added config_flow as suggested on discord#devs to ensure multiple Smiles (i.e. hubs/bridges, Plugwise call them Smiles) can be added for users that have a climate controller and a power meter device (or any combination). As suggested by reviewers from ealier PRs we moved the applicable things to
sensorandbinary_sensorcomponents.As this is a draft PR we have not yet modified the documentation.
During testing with some HA-community members we ran into an Anna upgrading to v4, the current plugwise component doesn't support v4. The current plugwise component only handles Anna v3 and v1.
This PR supports both 'Anna' and 'Adam' as climate controllers and 'P1' for power metering (DSMR):
climate/sensor/binary_sensor/switch)climate/sensor/binary_sensor)sensor)Thanks in advance for your time, comments and reviews, Bouwe & Tom
Type of change
Additional information
We are expecting issues coming in for Anna's with firmware v4 - depending on your thoughts this draft PR we have to check if we can adjust the current component.
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following [Integration Quality Scale][quality-scale]: