HomeMatic CCU2 Integration

Hello everyone,

I’m new here, so I’m not quite sure, if I got the right section with my problem.

I bought a Homematic CCU2 and wanted to add it to my HomeAssistant Installation. Unfortunatley it doesn’t work.

I used this manaul first: https://www.home-assistant.io/integrations/homematic/
nothing happend in my homeassistant
Then I used this: https://www.smarthome-tricks.de/home-assistant/home-assistant-integration-von-homematic/
Nothing happend.

In my configuration file I added this:
‘’’
homematic:
interfaces:
wireless:
host: 192.168.XX.XX
resolvenames: xml
‘’’
–> nothing appears.

If I use this one:

‘’’
hosts:
ccu2:
host: 127.0.0.1
port: 2001
username: Admin
password: secret
‘’’
(that is now in my configuration file)

Then I just got a ccu2 entry with 0, nohting more.

In the CCU2 I added a account, I granted the LAN and I installed the XML API thing.

It costs me hours for the last days but I’m not quite sure, what I’m doing wrong… :frowning:

Can anyone helps me with that?
Thanks,
Peter

pls excuse typos and other missing things :wink:

You need both sections.

homematic:
  interfaces:
    wireless:
      host: 192.168.XX.XX
  hosts:
    homegear:
      host: 192.168.XX.XX

PS: Use the code formatter when posting code

Thanks for the quick answer :smiley:
Unfortunately nothing happend

image

I got always this message in my Supervise Log
2021-01-27 09:20:01 WARNING (SyncWorker_0) [pyhomematic._hm] Skipping init for homeassistant-homegear

Is it the same config, with my Homematic CCU2, because you wrote “homegear”.

Thanks,
Peter

Here the screen at the developer page:

Yeah, it’s just a symbolic name. I use Homegear, a middleware that mimics a remote BidCos server (the Homematic protocol) with custom hardware. So only a “virtual” CCU.

What type of Home Assistant are your running? Home Assitant Core (venv), Home Assistant Container (Docker), Home Assistant Supervised (Docker containers on Debian) or Home Assistant OS (Docker constainers on dedicated OS)? Do you have a firewall installed?

AFAIK the CCU must be able to connect back to Home Assistant.

Ah ok, I see.

Sry … I use Homeassistant on Raspberry pi as it is runnig as HASSIO.

versions:
core-2021.1.5
supervisor-2021.01.7

The CCU is a physical device.
CCU2:
2.55.10

between the two devices, there’s a sophos firewall which has rules, that both of the systems have full access to each other.

Here’s the screen I wanted to show before:
image

“Home Assistant OS” is the (current) name :roll_eyes:

I have an entity named “homematic.homegear” (that’s the symbolic name from configuration.yaml), and the state of that entity is the count of system messages (“Systemmeldungen”).

grafik

I have no other configuration with respect to Homematic than what I have shown you. Here’s a working example of somebody using a CCU2 to control Homematic (“wireless”), Homematic IP (“ip”) devices and Homematic groups. Password is in secrets.yaml file.

I can see no significant difference to my setup (except that I don’t use HmIP or groups), so I suspect firewall/network settings preventing the CCU2 to register back to Home Assistant.

interfaces:
  wireless:
    host: 192.168.2.31
    resolvenames: json
    username: Admin
    password: !secret ccu2_password
  ip:
    host: 192.168.2.31
    port: 2010
    username: Admin
    password: !secret ccu2_password
  groups:
    host: 192.168.2.31
    port: 9292
    resolvenames: json
    username: Admin
    password: !secret ccu2_password
    path: /groups
hosts:
  ccu2:
    host: 192.168.2.31
    username: Admin
    password: !secret ccu2_password

Sorry, it seems that I’m not up to date :face_with_hand_over_mouth:

Thanks for your help and support.

I’ve tried now the following:

  1. I’ve put the CCU in the same subnet of the Homeassistant (no firewall between)
  2. I used the config above (and tried the first one)
  3. I checked the resolvenames also with xlm (I added xml API on CCU)
  4. I tried it via WIFI with my phone via an app (the WIFI has a firewall between)

Nothing worked except point (1) & 4.

For me the problem is not at homematic ccu, more that some settings in HomeAssistant OS or the connection to it is the problem.

Guess this. Might provide some information, if you enable debug logging for the Homematic integration in your configuration.yaml:

# logger
logger:
  default: warn
  logs:
    homeassistant.components.homematic: debug

Thanks.

Unfortunately I got no extra log or information.
just this one:

2021-01-27 11:29:16 WARNING (SyncWorker_3) [pyhomematic._hm] Skipping init for homeassistant-ccu2
2021-01-27 11:29:17 WARNING (SyncWorker_9) [pyhomematic._hm] ServerThread.getAllSystemVariables: Exception: invalid literal for int() with base 10: ‘true’

This second message is about every 30 seconds in the core log for a few minutes.

Is that a indication of the problem?

Thanks for your help.

It indicates a problem, which might cause the lack of connectivity. Obviously the output of ServerThread.getAllSystemVariables() is expected to be numeric, but is boolean.

Pinging @danielperna84, who is a/the developer of pyhomatic, the underlying frameworks. He might have a solution or tracing hints.

I think I have it…

log is here:
2021-01-27 12:16:56 DEBUG (SyncWorker_1) [homeassistant.components.homematic]

I tried another config for the homematic.

thats now mine, which seems to work:
homematic:
interfaces:
Funk:
host: 192.XXX.XXX.XXX
port: 2001
resolvenames: json
username: XXXX
password: XXXX
hmip:
host: 192.XXX.XXX.XXX
port: 2010
resolvenames: json
username: XXXX
password: XXXX
groups:
host: 192.XXX.XXX.XXX
port: 9292
resolvenames: json
username: XXXX
password: XXXX
path: /groups
hosts:
ccu2:
host: 192.XXX.XXX.XXX
username: XXXX
password: XXXX

So I think the port config is necessary and the resolvename in every section.
If not, I’ve just luck :wink:

Many thanks to your help and quick answers, thats great.

Thanks,
Peter

grafik ← this button

homematic:
  interfaces:
    Funk:
      host: XXX.XXX.XXX.XXX
      port: 2001
      resolvenames: json
      username: XXXX
      password: XXXX
    hmip:
      host: XXX.XXX.XXX.XXX
      port: 2010
      resolvenames: json
      username: XXXX
      password: XXXX
    groups:
      host: XXX.XXX.XXX.XXX
      port: 9292
      resolvenames: json
      username: XXXX
      password: XXXX
      path: /groups
  hosts:
    ccu2:
      host: XXX.XXX.XXX.XXX
      username: XXXX
      password: XXXX