Put Homematic IP CCU2 into Home assistant

Hi,
I have just installed Home Assistant on a raspberry 3.
It has recognized my Home router and my HUE bridge, but not my Homematic IP CCU2.
When I try to add it as Homematic Cloud I will be asked for a SGTIN.
I can’t see anything like this for CCU2. I have some entries here for adding a CCU2 but they say I have to add Homematic. But there is only an entriy for Homematic Cloud.
How can I add the CCU2 with the XML extension?
Regards
Florian

1 Like

Hi Florian,

There are two integrations for HomeMatic, one for cloud installatins and one for CCU, so you just have used the wrong one :slight_smile:
Here is the link for the correct one: https://www.home-assistant.io/integrations/homematic/

To set this one up, you need to make an entry in your configuration.yaml file:

homematic:
  interfaces:
    bidcos:
      host: 192.168.16.7
      port: 2001
      resolvenames: json
      username: !secret homematic_user
      password: !secret homematic_password
    hmip:
      host: 192.168.16.7
      port: 2010
      resolvenames: json
      username: !secret homematic_user
      password: !secret homematic_password
  #  wired:
  #    host: 192.168.16.7
  #    port: 2000
  #    resolvenames: json
  #    username: !secret homematic_user
  #    password: !secret homematic_password
    groups:
      host: 192.168.16.7
      port: 9292
      resolvenames: json
      username: !secret homematic_user
      password: !secret homematic_password
      path: /groups
  hosts:
    ccu2:
      host: 192.168.16.7
      username: !secret homematic_user
      password: !secret homematic_password

Put in the ip address of your CCU and then restart Home Assistant, and you shold see your devices appear. If you want to get the name resolution working, you must have a user name and password setup on your CCU. Then put the username and password in your secrets.yaml.
Good luck!

Hi Pat,
I have seen similar entries in the forum, but I can’t add it the integration, because there is no entry for homematic, only for homematic cloud:
image

So how can I add the integration?

Hi Florian,
As Pat said, you only need to modify your configuration.yaml. There is no Homematic integration in the integrations menu. It’s done manually by editing the configuration. Check Pat’s link!

OK, figured it out now.
And it’s working.
Thanks for your help

OK, that’s great to hear :slight_smile: Also be aware that if you reboot your CCU, you may loose the connection to Home Assistant and need to call the homematic.reconnect service to resore it. There is more information about this here https://www.home-assistant.io/integrations/homematic/#detecting-lost-connections

Finally, there is a RaspberryMatic add-on in testing at the moment that will integrate the CCU into Home Assistant if you have the right RF hardware: https://homematic-forum.de/forum/viewtopic.php?f=65&t=65535&sid=d4bfb0181a650f50749da0baefd5fe14

Pat