Skip to content

Fix vendor, state and add cooling mode to Bosch room thermostat II 230V (BTH-RM230Z) - #8084

Merged
manup merged 3 commits into
dresden-elektronik:masterfrom
aSauerwein:master
Apr 2, 2025
Merged

Fix vendor, state and add cooling mode to Bosch room thermostat II 230V (BTH-RM230Z)#8084
manup merged 3 commits into
dresden-elektronik:masterfrom
aSauerwein:master

Conversation

@aSauerwein

Copy link
Copy Markdown
Contributor

Hi!

I've added the state/on and fixed the changed the Vendor to Bosch.

with the state/on the devices correctly shows heating in Homeassistant when it's actually heating.

also I realized that my thermostat were running in draft mode, because the vendor was wrong in the ddf file.

@github-actions

github-actions Bot commented Jan 10, 2025

Copy link
Copy Markdown
Contributor

Hey @aSauerwein, thanks for your pull request!

Tip

Modified bundles can be downloaded here.
Relative expire date

DDB changes

Modified

  • bosch/room_thermostat2_230V.json : Room thermostat II 230V (BTH-RM230Z) ✔️

Validation

Tip

Everything is fine !

🕛 Updated for commit 60130f3

@mattreim

Copy link
Copy Markdown
Collaborator

Hello @aSauerwein, the manufacturer name is really written in lower case but according to your description the device does not have an on/off cluster (0006). Maybe @SwoopX knows another way.

@aSauerwein

Copy link
Copy Markdown
Contributor Author

I don't know how, but somehow it works.

I think this 0x0029 in cluster 0201 is responsible for the heating state.
heating "on" :
image
phoscon rest api output - http://192.168.200.6/api/{{token}}/devices/00:1e:5e:09:02:9d:ba:cd

...
            "state": {
                "errorcode": {
                    "lastupdated": "2024-12-08T22:17:12Z",
                    "value": "0"
                },
                "on": {
                    "lastupdated": "2025-01-11T08:47:02Z",
                    "value": true
                },
...

not heating "off":
image
phoscon rest api output - http://192.168.200.6/api/{{token}}/devices/00:1e:5e:09:02:9d:ba:cd

...
            "state": {
                "errorcode": {
                    "lastupdated": "2024-12-08T22:17:12Z",
                    "value": "0"
                },
                "on": {
                    "lastupdated": "2025-01-11T08:48:10Z",
                    "value": false
                },
...

I know you are right. I cannot see any 0x0006 cluster. cannot explain why it still works 🤷
image

@SwoopX

SwoopX commented Jan 25, 2025

Copy link
Copy Markdown
Collaborator

Hi together,

that this works, is more or less a coincidence due to the fact that we've bent a lot back in the days to make things appear to work. So this is legacy heritage which will cease to function once the older code gets more and more removed over time.

To have it sustainable, the parser function for the attribute needs to be properly defined to fit the attribute at hand. So, it would be probably like this (also considering we might want to read the value to not solely rely on reporting):

{
  "name": "state/on",
  "refresh.interval": 3660,
  "parse": {
    "at": "0x0029",
    "cl": "0x0201",
    "ep": 1,
    "eval": "Item.val = Attr.val;",
    "fn": "zcl:attr"
  },
  "read": {
    "at": "0x0029",
    "cl": "0x0201",
    "ep": 1,
    "fn": "zcl:attr"
  }
},

@SwoopX SwoopX added the Fix label Jan 25, 2025
@manup manup changed the title fix vendor and state for Bosch Thermostat II 230V Fix vendor and state for Bosch Thermostat II 230V Feb 5, 2025
@mattreim

mattreim commented Mar 4, 2025

Copy link
Copy Markdown
Collaborator

Hello @aSauerwein, here is the adapted DDF for the BTH-RM230Z.

Changes:

  • Add config/coolsetpoint
  • Add config/preset
  • Add state/on
  • Change vendor
  • Change config/mode

room_thermostat2_230V.json

@aSauerwein

Copy link
Copy Markdown
Contributor Author

thanks @mattreim !
I implemented your changes and updated the branch

@mattreim

Copy link
Copy Markdown
Collaborator

I think the title needs to be adjusted.

@manup

manup commented Mar 28, 2025

Copy link
Copy Markdown
Member

Hi are the changes ok now so this PR can be merged?

@mattreim

mattreim commented Mar 28, 2025

Copy link
Copy Markdown
Collaborator

@manup Both devices are now the same again (BTH-RM/BTH-RM230Z) and it should work.

And it could be an enhancement with the title: Add cooling mode to Bosch room thermostat II 230V (BTH-RM230Z)

@manup manup added this to the v2.29.3-beta milestone Apr 2, 2025
@manup manup changed the title Fix vendor and state for Bosch Thermostat II 230V Fix vendor, state and add cooling mode to Bosch room thermostat II 230V (BTH-RM230Z) Apr 2, 2025
@manup
manup merged commit 59a764d into dresden-elektronik:master Apr 2, 2025
@github-actions

github-actions Bot commented Apr 2, 2025

Copy link
Copy Markdown
Contributor

This pull request is now merged. The new DDB files have been uploaded to the store.

DDB Files

Modified

  • bosch/room_thermostat2_230V.json : Room thermostat II 230V (BTH-RM230Z) : with hash (3dcc7f6f66)

🕚 Updated for commit 59a764d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants