-
Notifications
You must be signed in to change notification settings - Fork 697
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
Add Bosch Radiator Thermostat 2 (RBSH-TRV0-ZB-EU) quirk #2808
base: dev
Are you sure you want to change the base?
Conversation
Is there some way I can support you in writing the quirk. I started the same some time ago and was to quick with pushing everything to GitHub and creating a Draft PR. I'd like to support you if possible. |
The quirk is more or less ready I think. You just need to write the entities in HA core for the attributes, which is a bit harder unfortunately.Am 23.12.2023 um 00:59 schrieb Adrian Nöthlich ***@***.***>:
Is there some way I can support you in writing the quirk. I started the same some time ago and was to quick with pushing everything to GitHub and creating a Draft PR.
I'd like to support you if possible.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I've seen that you are missing at least one attribute, the remote temperature input, which I'd add, but I think I'll do this using a PR on your fork repository and branch |
I didn’t want to implement it, because it is nothing that you would use with Home Assistant. Do it if you like though!The important part missing would also be the entities in the ZHA code in core!Am 23.12.2023 um 15:17 schrieb Adrian Nöthlich ***@***.***>:
I've seen that you are missing at least one attribute, the remote temperature input, which I'd add, but I think I'll do this using a PR on your fork repository and branch
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Actually I'd use it with some temperature sensors I have across my rooms to get a more accurate heating. I think this should be possible so better adding it then missing it ;) For the ha/core part I just scrolled a bit across the code and I think I should be able to assist you with writing the entities, but I can't test my code until next year, as I'm on CCC Congress. Should we just create a branch for this in a fork of yours or mine and push code when we have time? |
You can set the temperature using the Advanced Heating Control blueprint. Much better to let HA do it! I am on vacation and not back before January. So yeah, just go ahead and make your changes when you find the time! Do I need to add you as a collaborator to the PR or something? |
Yes I know that blueprint but i find it quite charming to have the thermostat regulate the valve using the temperature inside the room :D I don't think that you have to add me anywhere. If I have the time I'll open a draft PR to HA/core and add you there, that should be sufficient |
I seems like I can't create a PR in your fork. Can you give me access to the branch where you are developing or give me somehow permission to create a PR? :D Thanks! |
I added you as collaborator :) |
Hey, is there a way to already use this? |
Is this still being worked on? I wouldn't mind helping out |
@Fxsch The quirk works, but the cluster handlers in ZHA from the HA Core side are harder to implement. I need help there from a HA developer, but it is hard to get a hold of them. |
Hi! Here is one updated quirk that adds system mode (Heat, Off) integration with HA: #2476 (comment) |
Updated based on v2 API - #2476 (comment) |
@mrrstux I invited you as collaborator to my fork. This way you can add commits to this MR! :) |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #2808 +/- ##
==========================================
+ Coverage 89.44% 89.54% +0.09%
==========================================
Files 311 313 +2
Lines 10033 10252 +219
==========================================
+ Hits 8974 9180 +206
- Misses 1059 1072 +13 ☔ View full report in Codecov by Sentry. |
Thanks! I've pushed my changes directly to this branch. If that was not desired, feel free to revert it and then I'll see if I could push a merge request instead (I do not have much experience with github). |
877757e
to
c2eede2
Compare
Feel free to works on this PR! I have no interest in continuing this atm, so you can do your thing and try to get it merged. Maybe ask for help on Discord if you are unsure how to pass the code coverage. First thing you should do is format the code with Black. Click on the details of the failed checks and see what needs to be changed! |
@jclsn The description of this PR needs updating, but I do not seem to have the rights to do it. With your permission, I would like to bring it up-to-date. |
Great job! You really made an effort. Let me test out the quirk for the TRV. I think I cannot give you rights to edit the PR description here. What do you want me to change? |
Unfortunately I can't test it, since I have trouble pairing the device. This has always been troublesome, but now it doesn't work at all anymore. |
@jclsn I had issues pairing my TRV as well, after multiple pair-remove sessions while working on this quirk. The solution on my side was to backup+restore ZHA Network. As for what to add to the PR descriptions:
|
Might be related to this https://discord.com/channels/651488327630979131/651489945172836355/1238474646316384277 Seems like the Bosch Thermostat Integration is also having issues because of some Python versions. |
Hi, thank you for the work on the new quirk, really helpful. I tested the quirk with a Notes for Thermostat II 230V
Not sure about the
Like discussed in #2707 (comment) the mode can be set through the ZCL There is an example quirk that exposes the If this is useful also for Don´t want to highjack this PR, if preferred i can a create a seperate PR for #2707 after this PR was merged. Thanks again. 👍 |
@lgraf Thanks for trying it out! I was not interested in cooling, but, I can merge your change into this PR. As far as I read, boost is called "fast heating" in Bosch App and, for radiator thermostat, it opens the valve to 80% for 5 minutes. Not sure when and why you would want it, but it is there. Also, for my underfloor heating, boost also doesn't make much sense for the room thermostat (230V). I'm not entirely sure about exposing pi_heating_demand for room thermostat (230V). I added it it just because it looked like being exposed by zigbee2mqtt. For complete cooling support, we might need to also expose pi_cooling_demand. |
for more information, see https://pre-commit.ci
62235c5
to
a6a8356
Compare
@mrrstux Tip if it is still work-in-progress then it is usually a good idea if you set it as a draft until it is ready to be reviewed by ZHA Device Handlers developers. You can select "Convert to draft" yourself (to the right) then later also change it back yourself by clicking on "Ready for review": |
@Hedda It is not a draft. Current state is ready for mass consumption. The build failure is caused by old zigpy dependency (0.70 vs 0.71 being needed). |
Perhaps a dumb question and probably the wrong place (but): What would be needed to get the new entitys and functions once the code gets added to HA? |
No actions should be needed once the quirks are in a HA release, but:
|
Ok, cool! i just assumed it was still WIP (work-in-progress) since still keep adding or changing stuff almost daily, (and guessed some zha-quirk devs might think the same and waiting to review until it is no longer a moving target), anyway that is why I suggested to change it to draft and then click the ”ready for review” to signal that it is finally ready to be reviewed. |
@Hedda Unfortunately, I do not have the permissions on this PR to play with its draft state. |
Proposed change
The quirk provides Bosch specific thermostat and interface clusters, which add additional attributes and expose some common attributes on different addresses.
Fixes #2476
Additional information
Not sure how to handle what I called the
operating_mode
attribute and thesystem_mode
attribute.Operating modes:
System modes:
I think those should ideally be combined into one
system_mode
attribute to be accessible in the thermostat entity.Furthermore I would be happy to receive assistance in exposing these attributes as entities in the core.
Checklist
pre-commit
checks pass / the code has been formatted using Black