PBA1
(Peter)
January 27, 2021, 7:55am
1
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…
Can anyone helps me with that?
Thanks,
Peter
pls excuse typos and other missing things
m0wlheld
(Christoph Dahlen)
January 27, 2021, 8:03am
2
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
PBA1
(Peter)
January 27, 2021, 8:51am
3
Thanks for the quick answer
Unfortunately nothing happend
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
PBA1
(Peter)
January 27, 2021, 8:53am
4
Here the screen at the developer page:
m0wlheld
(Christoph Dahlen)
January 27, 2021, 8:58am
5
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.
PBA1
(Peter)
January 27, 2021, 9:13am
6
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:
m0wlheld
(Christoph Dahlen)
January 27, 2021, 9:29am
7
PBA1:
HASSIO
“Home Assistant OS” is the (current) name
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”).
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
PBA1
(Peter)
January 27, 2021, 10:19am
8
Sorry, it seems that I’m not up to date
Thanks for your help and support.
I’ve tried now the following:
I’ve put the CCU in the same subnet of the Homeassistant (no firewall between)
I used the config above (and tried the first one)
I checked the resolvenames also with xlm (I added xml API on CCU)
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.
m0wlheld
(Christoph Dahlen)
January 27, 2021, 10:23am
9
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
PBA1
(Peter)
January 27, 2021, 10:43am
10
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.
m0wlheld
(Christoph Dahlen)
January 27, 2021, 11:12am
11
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.
PBA1
(Peter)
January 27, 2021, 11:22am
12
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
Many thanks to your help and quick answers, thats great.
Thanks,
Peter
PBA1
(Peter)
January 27, 2021, 11:29am
14
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