Can not controll my Raspimatic/CCU3 with HA

I can not see my homematic devices in HA, and need help…

I have a Raspimatic in operation on a RasbPi3b+ and Homeassistant on a RasbPi4 (4GB).
I just set up HA today, which means I haven’t installed or adjusted anything on any file yet except for File Explorer… except for the changes at the bottom of configuration.yaml.

In my homematic system I have 3 door contacts and a thermostat.

Raspimatic:
Firewall: Ports open
Homematic XML-RPC API: Full access
Remote Homematic Script API: Full access
Portfreigabe: 22;80;443;2000;2001;2010;9292;42000;42001;42010;49292;
Additional software: XML API
Security => Authentication not active (I know that is not secure, but I want to test, where is the error.)

In Configuration.yaml

homematic:
  interfaces:
    rf:
      host: 192.168.178.40
      port: 2001
      resolvenames: json
      username: Admin
      password: xxx
    IP:
      host: 192.168.178.40
      port: 2010
      resolvenames: json
      username: Admin
      password: xxx
    groups:
      host: 192.168.178.40
      port: 9292
      resolvenames: json
      username: Admin
      password: xxx
      path: /groups
  hosts:
    ccu3:
      host: 192.168.178.40
      port: 2001
      username: Admin
      password: xxx

But I got a error Message:

Error during setup of component homematic
21:38:59 – components/homematic/init.py (ERROR)
Failed to start server: ‘HMConnection’ object has no attribute ‘_server’
21:38:59 – /usr/local/lib/python3.8/site-packages/pyhomematic/connection.py (CRITICAL)
Failed to create server
21:38:59 – /usr/local/lib/python3.8/site-packages/pyhomematic/connection.py (CRITICAL)
No proxies available. Aborting.
21:38:59 – /usr/local/lib/python3.8/site-packages/pyhomematic/_hm.py (WARNING)
Skipping proxy: [Errno -3] Try again
21:38:59 – /usr/local/lib/python3.8/site-packages/pyhomematic/_hm.py (WARNING) - Die Nachricht ist zum ersten Mal um 21:38:44 aufgetreten und erscheint 4 mal
Setup of homematic is taking over 10 seconds.
21:38:49 – /usr/local/lib/python3.8/asyncio/events.py (WARNING)

In documentation I found this sentence:
“When using SSL on a CCU3, by default the same ports as usual with a prepended 4 are available. So 2001 becomes 42001, 2010 becomes 42010 etc…”

SSL = https ?

Do I need to prefix the ports with a 4?
…or…what is to do?

Do I have to create each homematic sensor additionally in the configuration.yaml?

If all systems are so hard to integrate in HA, but then I will not be a friend of this system :frowning:

Start with the minimum, then extend.

homematic:
  interfaces:
    rf:
      host: 192.168.178.40
  hosts:
    ccu3:
      host: 192.168.178.40

No.

Solche Sätze steigern kaum die Hilfsbereitschaft …

Thanks Christoph for the tip, but it was not!

But before I get to the solution…

The last sentence followed, if you really read forums and internet blogs for weeks as preparation, read through the HA documentation, then configured 3 hours… and even with the know-how of an IT education and IT engineer study does not come further. There one is very fast frustrated.
A system should be “simple”.

Sorry if I somehow attacked a developer or you by the comment…

Since I had yesterday while editing the configuration.yaml again and again a buildup of the page (every 2-3Min.), I first suspected a too long LAN cable (but was not the reason).

Then I read the notification “Can not log in http://192.168.178.40:2001”.
So I turned off the redirection in the CCU to https… but this was not the solution either.

So I created a second administrator account on the Raspimatic (ha-admin) and gave him a simple password “test”… restarts the server administration (homeassistant)… and it worked immediately.

My previous password consisted beside upper and lower case and numbers also of the special characters ! # (16 character at all)

Of course you don’t read that in any doc, blog or other things.

But it would be very good if this would be included in the HA documentation… but maybe I have read it over.

I guess this is the downside of working in IT and using strong passwords ;-)…

This is in the Raspimatic the allowed characters:
., !, $, (, ), :, ;, #, ß, Ä, ä, Ö, ö, Ü, ü, -

Does HA need admin rights on the CCU or is it enough to have normal rights?

! and # are indeed reserved characters, but they will be ignored as such, if you put your password in single quotes.