HomeMatic IP cant be activated in config (HM-MOD-RPI-PCB)

Hey Guys,

I have a Problem with my Homematic Addon for Home Assistant.
I’m using the HM-MOD-RPI-PCB Hardware and want to controll both Homeatic-RF and Homeatic-Ip devices.
It took a while but after a few days I was able to connect my Homeatic RF radiator controller.
Next step are my HM-IP window sensors, but when I try to set the “hmip_enable” setting in my addon config to true, try to start the addon afterwards and switch to the Homeatic CCU Web UI I just get the message: “502: Bad Gateway”.
When I put “hmip_enable” to false and just set “rf_enable” to true the Web UI starts like normal.
I already tried to reinstall the Addon but it did’nt help.

I try to find a solution for about 2 two weeks now, can somebody please help me?

I’m using Home Assistant OS 6.5 so this is hassio, right?

You can answer in German as well

Thanks for your help!
DudeMaster

My Homematic CCU config:

rf_enable: false
wired_enable: false
hmip_enable: true
rf:
  - type: CCU2
    device: /dev/ttyAMA0
wired: []
hmip:
  - type: HMIP_CCU2
    device: /dev/ttyAMA0

*********************************
My Homeassistant config: 

homematic:
  interfaces:
    rf:
      host: 192.167.178.2        #(Here I put the IP Adress of my Home assistant Server right?)
      port: 2001
    ip:
      host: 192.167.178.2
      port: 2010

***********************************
The Homeatic Addon Log when I start it with `"hm_ip_enable" = true and "hm_rf_enable" = false`

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] certs.sh: executing... 
[cont-init.d] certs.sh: exited 0.
[cont-init.d] env.sh: executing... 
[cont-init.d] env.sh: exited 0.
[cont-init.d] hm_ip.sh: executing... 
[21:44:14] INFO: Setup HmIP-RF
[cont-init.d] hm_ip.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] hmip.sh: executing... 
[cont-finish.d] hmip.sh: exited 0.
[cont-finish.d] regahss.sh: executing... 
[cont-finish.d] regahss.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.

i think people need to know what kind of installation you are running on your home assistant, like if its docker, hassio, supervised and so on.

I can probably not help you more though, since I run debmatic instead of the addon, since debmatic is CCU3.

thanks :slight_smile:
I added the information

Update:
Because I couldn’t get this to work I switched to the “RaspberryMatic” Addon
and I was able to add both HomematicRF and Homeatic IP devices to this Addon.

Problem is, that I still need the HomeMatic Addon to controll the added devices with Home Assistant.
When I try to install this addon the same problem occurs and wasn’t able to solve it yet.
Does anyone have an idea?
As I read on the RaspberryMatic Github page there is no way to controll the RaspberryMatic devices in Home Assistant without the HomeMatic addon. Is that right?

Have good one,
Dudemaster

There is, but its ALOT harder. I only use it for breaking the boost function.

You would have to install an addon on the HomeMatic CCU called xmlapi and then call the commands with a restful command line.

The xmlapi is not that secure though, so make sure to thighen your security on the network with xmlapi.

Thanks,
I had a look at it and unfortunatly this is probably way to complicated for me…

Does someone have an experience with the raspberrymatic addon?
As I said the installation of the RaspberryMatic itself works just fine.
To add the devices is easy as well.

The problem is the damn HomeMatic Addon…
Now I cant even make it to start at all.
What do I need to put in the configuration of the HomeMatic Addon?
I get the “502 Bad Gateway” even when I leave the config of HomeMatic with standard values:

rf_enable: true
wired_enable: false
hmip_enable: false
rf: []
wired: []
hmip: []

Somebody a clue?
so frustrating…

I have this in my configuration.yaml

homematic:
  interfaces:
    ip:
      host: 127.0.0.1
      port: 2010
      resolvenames: json
      username: !secret HomeMaticUser
      password: !secret HomeMaticPass
    groups:
      host: 127.0.0.1
      port: 9292
      username: !secret HomeMaticUser
      password: !secret HomeMaticPass
      path: /groups
  hosts:
    ccu3:
      host: 127.0.0.1
      port: 2001
      username: !secret HomeMaticUser
      password: !secret HomeMaticPass

I only use ip devices.

I don’t know much about the different addons that are available. But I would assume that you only need a single addon which provides the virtual CCU. The raspberrymatic addon will do this, so there wouldn’t be the need for anything else besides adding the configuration like explained here. So to pair your devices you’ll use the UI of raspberrymatic, and in the configuration.yaml you’re telling Home Assistant how to connect to raspberrymatic.

Again, I don’t know much about the addons available. But I don’t think there’s a reason to have multiple addons.

I can’t really say how, but the problem has solved itself anyhow.
After restating the Addon and HomeAssistant a couple of times the devices are listed as they should be.

As a tip for other users, make sure to have the “Homematic XML-RPC API” option in The Firewall settings of the RaspberryMatic addon activated. Otherwise the devices can’t be added to HomeAssistant.

Thanks for the Help guys, and Daniel thanks for your awesome work!