Add Econet new attributes#33363
Merged
bdraco merged 1 commit intohome-assistant:devfrom Apr 2, 2020
richardpowellus:econet-addl-attr
Merged
Add Econet new attributes#33363bdraco merged 1 commit intohome-assistant:devfrom richardpowellus:econet-addl-attr
bdraco merged 1 commit intohome-assistant:devfrom
richardpowellus:econet-addl-attr
Conversation
… upper_temp, ambient_temp & is_enabled
Member
|
@w1ll1am23 Can you take a look at this? |
Contributor
|
Looks good to me 👍 |
Member
Thanks for taking a look |
bdraco
approved these changes
Apr 2, 2020
Contributor
|
@bdraco what does pyeconet return when those field aren't present do you know? Want to make sure this doesn't break heaters without it. |
Member
Not sure what the api is returning for these values Probably need to check to see if they are |
Member
|
@dprus Would you kindly resubmit this and check that |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed change
My new Rheem heat pump water heater has two temperature sensors in it. This means it no longer reports back using the old "current_temperature" attribute but now has two new attributes called "lower_temp" and "upper_temp" (yes, it has one temperature sensor at the bottom of the tank and another at the top). The reading I am getting from "current_temperature" is null which is obviously quite useless to me.
There are also two other useful pieces of information that I would like access to. Those are "ambient_temp" and "is_enabled". The former allows me to see what the temperature in my garage is and the latter allows me to see if the heat pump is actively heating.
The purpose of my change is simply to expose these 4 attributes to homeassistant. pyeconet, the underlying library that homeassistant uses to call into Rheem's Econet service, already supports, reads and propagates all four of these attributes. So I'm just tying it all neatly together into homeassistant.
Type of change
Additional information
Checklist
black --fast homeassistant tests)-> I don't feel this is necessary. Just passing through some attributes and I have validated this using my own hot water heater and it works. Not likely to be easily broken by future code changes.
If user exposed functionality or configuration variables are added/changed:
-> Again, existing docs don't document attributes like these. It appears as though attributes like these aren't normally documented.
If the code communicates with devices, web services, or third-party tools: N/A (the library that communicates with the third party service (pyeconet) has not been changed)
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: