Homematic(IP) Local - Reduce room temperature when a window or door is opened

Can you check if you can set the device state via a regular service call? 0 is closed, 1 is open

You could also try to check the box “value type” and enter int and see if this makes it work. If not, I believe you have the integration not setup correctly, e.g. did not enter the ports in the configuration.yaml and forwarded the ports in HomeMatic firewall.

I tried it manually as described but unfortunately no change in status.

Firewall in Raspberrymatic is open and i can control the devices integrated in HA with the new Homematic Integration but i did not setup something in configuration.yaml

Did you try with checked “Value type” → integer?

You need to make sure that the ports that you enter during the setup of the integration match the ports that you have entered in Home Matic. The JSON RPC port is usually 80 or 443, but when you run Home Matic on the same machine as Home Assistant, you would need to change that port in the Addon/integration since Home Assistant already uses that port on the same IP adresse.

Yes, i also tried with Value type” → integer but state doesn’t change.
So it looks like the communication does not work.

My Raspberrymatic Instance runs on a separate RPI.

To be honest im am now uncertain if it is necessary to configure something in the configuration.yaml?

Thats a part of the configuration from the Homematic(IP) Local integration.

"data": {
    "config": {
      "entry_id": "b45b345a11a87f6b250c97b0fb45a62f",
      "version": 1,
      "domain": "hahm",
      "title": "RaspberryMatic",
      "data": {
        "instance_name": "RaspberryMatic",
        "host": "192.168.178.15",
        "username": "**REDACTED**",
        "password": "**REDACTED**",
        "callback_host": "0.0.0.0",
        "callback_port": 0,
        "json_port": null,
        "tls": false,
        "verify_tls": false,
        "interface": {
          "BidCos-RF": {
            "port": 2001
          },
          "VirtualDevices": {
            "port": 9292,
            "path": "/groups"
          }

So the json_port must be 80?

The json_port needs to be configured, yes.
And in HomeMatic in the security settings port 80 also needs to be opened:

Regardless how i configure Raspberrymatic i am not able to set the window state for the climate!
My firewall was not restricted and i granted fully access! No i tried to limit the access and added the ports like described but the result is the same as before

Furthermore i am able to control all my Raspberrymatic devices with the Homematic Integration and i assume that this would not be possible if i have an issue with firewall or port settings.

So it must be something other which lead to this behaviour but what?

I might be wrong here, but I think I have heard before, that there are a few thermostats which don’t allow to set the open-state manually. Or at least not via the setValue in the backend, but instead with putParamset. However I don’t know where I have read that. In any case, this topic has been discussed here in the forums before. So a deeper search might provide some answers.

PS: If everything else is working, then your firewall isn’t the issue. It’s only a technical problem of which command you have to send to the device.

@danielperna84 Thank you for your contribution. But then i am wondering if the description of the Blueprint is correct? It says that any sensor can be used to control Homematic thermostat. I am using Homematic HM-CC-RT-DN thermostats.

@ciB So the Blueprint can really used for this type of thermostat?

@danielperna84 is right, I found a thread where it is stated that the HM-CC-RT-DN does not have an editable window_state. I guess you have to simply rely on changing the temperature then.

Hmm, ok, thats a pitty as the temperature does not go down to the configured window open temperature once the window sensor is open.

I can’t import the blueprint, getting “No valid blueprint found in the topic. Blueprint syntax blocks need to be marked as YAML or no syntax.”

I imported it manually to test it, but directly ran into an issue because I use three window sensors and one door sensor in our living room which all should affect the two thermostats. Would it be possible for you to implement this in the blueprint?

I’d really like to use the blueprint because it would declutter my automations, as well as using the native WINDOW_OPEN state instead of setting the heating mode and temperatures each time.

In this case it would probably be helpful if you create a template sensor first that checks for the states of the door and windows and use that one isntead.

Or maybe you could change the blueprint to allow selecting a group entity?

EDIT: Did the change myself and it’s working flawlessly :slight_smile:

I updated the blueprint to accept multiple binary_sensors.

1 Like

The Import Blueprint does not work for me. I’m getting “No valid blueprint found in the topic. Blueprint syntax blocks need to be marked as YAML or no syntax.”

I am observing the same issue.

I honestly do not know why the import is not working. It used to work, the blueprint also works. You can try adding it manually (copy&paste into your own blueprint file)

Thanks, yes I had imported it manually and it worked fine.

In case of any interest:

The HM-CC-RT-DN does indeed have a WINDOW_STATE parameter (CH 3) which i can successfully trigger via Homegear. I recently switched over to Raspberrymatic and now facing the problem you all mention here. It’s not possible anymore. Maybe It a limitation of Raspberrymatic BidCos protocol? It seems Raspberrymatic only allows a direct connection between climate door sensor while Homegear somehow allows a data point input.

https://ref.homegear.eu/device.html?directory=HomeMatic+BidCoS&file=rf_cc_rt_dn.xml&familyLink=homematicbidcos&name=HM-CC-RT-DN#affixSection3