-
-
Notifications
You must be signed in to change notification settings - Fork 99
Current water_heater
entity missing important attributes, methods
#117
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
Comments
A proposed schema
|
Currently, the water_heater has a piece of code thus: @property
def state(self):
"""Return the current state."""
return self.current_operation ...where
In my opinions, these are not states (they are operating modes). See this excellent point made in the climate review: #22 (comment) |
Don't define state as being something independent. State in Home Assistant is just taking the most important property and exposing that as state. State is always defined as just returning a single property. As discussed in #22, there is operation mode and operating mode. Water heater should have both, even if operation mode is not configurable. |
Yes, but it should be the most important property for the platform (e.g. My thoughts are this. Sit a bunch of people down as tell them you've got a device that is called a 'water heater' that heats stored water (you can warn them that it may/may not actually boil the water). Ask them what's the most important things they'd want to know about that water heater? They will all agree upon: They will not always agree upon other stuff like, where is the heat coming from, how aggressively it is trying to reach target temp, whether the 'stat has kicked in, how many watts are being consumed, etc. To me, these are all edge cases. Regarding
Most water heaters will offer only a subset of the above - this is OK. For example, my |
closed in error |
I would like to add that I also need this added functionality to be able to add in all the functionality in my component. So there are different vendors that would benefit from this change. I also agree with @zxdavb 's proposed schema. |
Maybe we should wait for the re-write of the |
@zxdavb how long will that take? Because if that'll take a long time I won't mind doing the work twice and prefer to just get my component working soon :) |
No idea. The answer to that question may be best asked elsewhere... https://discordapp.com/channels/330944238910963714/330990195199442944 |
Sine the thread is already running for months I would prefer to just implement this already and than hopefully we can use new climate device to make a new water_heater device that will have everything we need :)! |
Just for reference: home-assistant/core#21393 |
This architecture issue is old, stale, and possibly obsolete. Things changed a lot over the years. Additionally, we have been moving to discussions for these architectural discussions. For that reason, I'm going to close this issue. ../Frenck |
The current version of
water_heater
was home-assistant/core#17058, and appears to have been implemented completely independently of the corresponding discussion at #59This caught many of us by surprise, because the PR was started/accepted after #59, with no mention of it in that discussion (I think it was a Hackoberfest thing) - so the first we knew was when home-assistant/core#17058 was accepted, and #59 was closed.
As it stands, the
water_heater
has nocurrent_temperature
, nor does it have one/off/heating as states!Ironically, there is home-assistant/core#19093, which would add some of this functionality, but it was been blocked pending an architectural discussion...
So here it is. Discuss.
The text was updated successfully, but these errors were encountered: