CCU2 Integration

Hi,
I am currently running an OpenHAB & CCU2 Homematic configuration for my home automation. All runs well for long, but after a friend showed me some of his Homeassistant UIs, I am all in to switch :wink:
I’ve setup a Raspi 4, installed Homeassistant and all went easy so far, and I excited how easy it is to create nice dashboards. Zigbee, Daikin, Sonos, Unify Controller and other setups went all well.
The one thing I am stuck with is integrating my CCU2 that controls Homematic devices. With OpenHAB, I just chose CCU2 integration, told it the IP of the CCU2 and in a glimpse it was integrated, all entities showing up, bidirectionally usable. I am totally confused with the many settings required for Homeassistant, and also didn’t get it up and running in any way. I am also confused whether this integration now rather creates a full CCU2 controller on my Raspi (which I wouldn’t be surprised after doing the same for the Unify Controller), or whether it should just connect to my existing hardware? There are different cookbooks around, some requiring XML-API software on CCU2, some not. I am usually not faint-hearted in just trying things, but for some reason I don’t get a grip on this. Is there some simple current recipe where I maybe just have to exchange the target address of my CCU2 device?

Yup, the first yaml-snippet on the documentation site:

homematic:
  interfaces:
    wireless:
      host: 127.0.0.1

Replace the IP with the one of your CCU, put that in your configuration.yaml file, then restart Home Assistant. If you also have wired or HmIP devices, you’ll have to add those as separate interfaces and specify the ports (like usually 2010 for HmIP).

Ok, so now that was easy :wink:

I was somehow under the impression I need to work with the Homematic CCU AddOn, which obviously actually implements (rather than connects) a CCU2…so that was where I was stuck (including the according documentation, which then of course makes sense…)

So far, so good :wink:

I‘d also need System Variables, so I followed the docs. However, on restart, I only get a one line warning:

2020-07-04 22:06:31 WARNING (SyncWorker_8) [pyhomematic._hm] Skipping init for homeassistant-ccu2

This is my config:

homematic:
  interfaces:
    wireless:
      host: 192.168.1.67
      resolvenames: json
      username: homeassistant
      password: <superSecret>
  hosts:
    ccu2:
      host: 192.168.1.67
      port: 2001
      username: homeassistant
      password: <superSecret>

The homeassistant user on CCU2 has admin rights. The names of devices are correctly resolved, so user/pw are correct.
Didn‘t see anything in the logs. A homematic.ccu2 entity shows up, however it just delivers one value (0), not a set of my system variables. Anything I should do for further forensics?

The message in the log can be ignored. There is no need to init to receive events in case of the CCU-entity because it doesn’t send events for variables. Hence it’s skipped.

This section of the documentation states:

The states of the variables are available through the attributes of your hub entity (e.g., homematic.ccu2 ). Use templates (as mentioned above) to make your variables available to automations or as entities.

When I click on my CCU-entity it has a huge list of attributes (the variables) visible in the card that opens up.

Ok, you are right (of course :wink: )…

I had an entity card, and it just displayed 0 as the single available value. So I already gave up and hadn‘t opened it, because I expected the values to somehow be enrolled to the card already.
When opening it, it shows them, though.

I am learning… :slight_smile:

Did you solve this issue? I run into the same problem.

same here … Homematic seems to work (devices are added and status updated), but still errors in log

Logger: pyhomematic._hm
Source: /usr/local/lib/python3.8/site-packages/pyhomematic/_hm.py:672
First occurred: 13:31:32 (1 occurrences)
Last logged: 13:31:32

Skipping init for homeassistant-ccu2

basically every new protocol i want to add in HA is a lot of work and tinkering :slight_smile:
at least popular things like z-wave and homematic should work directly without question…