Add tado water heater#27266
Conversation
michaelarnauts
left a comment
There was a problem hiding this comment.
You also probably want to filter out the zones with type == HOT_WATER in the climate.py to avoid creating duplicate entities for the same object.
| CONST_MODE_OFF = "OFF" | ||
| CONST_OVERLAY_TADO_MODE = "TADO_MODE" | ||
|
|
||
| SUPPORT_FLAGS_HEATER = SUPPORT_OPERATION_MODE |
There was a problem hiding this comment.
I've tried these changes, but the water_heater.water_heater entity that is created doesn't allow to change the temperature. I do have a climate.hot_water that does allow this. I guess this is because the SUPPORT_TARGET_TEMPERATURE flag is missing here.
There was a problem hiding this comment.
I correct myself, the interface allows this for the climate.hot_water, but the API replies with a 422 error.
There was a problem hiding this comment.
Ahh, that's interesting... My hot water zone does not do temperature control, so I don't have a climate zone for it and didn't add in temp control to this component.
Does the tado app let you control temperature for your hot water zone then? I may need some extra details in order to add support for that here.
There was a problem hiding this comment.
Indeed. I have temperature control, but can't see the current temperature. I've send you an email with more details.
There was a problem hiding this comment.
Added temperature control -- I think! Unable to test myself, so would appreciate if you can check the latest version out and provide feedback since yours has temp control.
Will update description to mention this is a breaking change for those with temp control on hot water zones.
|
I've tried your PR, but I get a 422 Error when I change the temperature. The configured value is returned fine. |
|
@andersonshatch there is still quote some stuff missing when comparing with the climate platform (unit, step, operation mode). I've merged PR #29191 since it fixed it when you have temperature control. In the end, I would like to move the water heater to the |
michaelarnauts
left a comment
There was a problem hiding this comment.
I've looked at it a bit further. It seems that water_heater doesn't support step yet, something that should be added to make it match climate in my opinion, but out of scope for this PR.
This PR also doesn't support the operation modes like the climate counterpart (auto = SMART_SCHEDULE, heating = TADO_MODE, off = MANUAL). This should be adressed.
I'll try to find out why the api is responding with a 422 on the requests.
|
I'm working something out for tado to use the dispatcher for updates, since the current way is quite messy. I will be modifying your water_heater to work with this. Please hold for a few days. :) |
|
Now that my tado rework branch has been merged, I've created #30095 with code that works fine for my temperature controllable Could you check this out if it also works for you? |
|
It does! 👍 |
|
Yes work for me also, one step closer to full automation. Only need to be able to set the home and away modus through HA and i am a happy man :) Thanks! edit |
Breaking Change:
Tado hot water zones with temperature control previously created an climate entity, e.g.
climate.hot_water, these will be replaced by awater_heater.hot_waterentity instead.Hot water zones without temperature control did not have a climate zone, so change is not breaking for them.
Description:
Support for tado water heater zones.
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#10642
Example entry for
configuration.yaml(if applicable):Checklist:
tox. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
python3 -m script.hassfest.requirements_all.txtby runningpython3 -m script.gen_requirements_all..coveragerc.