Hi,
i had the hope, that i could use home assistant to connect to my new homematic-IP-wired system. Instead of using the cloud solution of homematic i installed a CCU3 with raspberrymatic to get access. But I had no success. I already asked danielperna84 (owner of pyhomematic), but he told me, that it is an issue of home assistant and not pyhomematic.
My configuration.yaml part for homematic (and Daniel told me that it is looking good) is:
homematic:
interfaces:
ip:
host: 192.168.0.61
port: 2010
resolvenames: "json"
username: !secret CCU3_User
password: !secret CCU3_PW
groups:
host: 192.168.0.61
port: 9292
resolvenames: "json"
username: !secret CCU3_User
password: !secret CCU3_PW
path: /groups
hosts:
raspberrymatic:
host: 192.168.0.61
port: 2001
username: !secret CCU3_User
password: !secret CCU3_PW
During the start of home assistant the folling messages appear in the logs:
2021-08-10 07:54:09 WARNING (SyncWorker_3) [pyhomematic._hm] Failed connecting to proxy at http://192.168.0.61:2010
2021-08-10 07:54:09 CRITICAL (SyncWorker_3) [pyhomematic.connection] Failed to create server
2021-08-10 07:54:09 CRITICAL (SyncWorker_3) [pyhomematic.connection] Failed to start server: ‘HMConnection’ object has no attribute ‘_server’
2021-08-10 07:54:09 ERROR (MainThread) [homeassistant.setup] Error during setup of component homematic
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/pyhomematic/connection.py”, line 76, in start
self._server.start()
AttributeError: ‘HMConnection’ object has no attribute ‘_server’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 249, in _async_setup_component
result = await task
File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 52, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/homematic/init.py”, line 253, in setup
homematic.start()
File “/usr/local/lib/python3.9/site-packages/pyhomematic/connection.py”, line 82, in start
self._server.stop()
AttributeError: ‘HMConnection’ object has no attribute ‘_server’
I’m trying to get it running since weeks. I can’t even see the raspberrymatic. The homematic-ip-wired devices connected to the raspberrymatic are supported in pyhomematic. I hope someone could give me a tip what I have to do to get access to the homematic system via home assistant. Thanks in advance.
My actual home assistant is running on a raspberry Pi4b with the following setup:
version | core-2021.8.6
installation_type | Home Assistant OS
dev | false
hassio | true
docker | true
user | root
virtualenv | false
python_version | 3.9.6
os_name | Linux
os_version | 5.10.17-v8
arch | aarch64
timezone | Europe/Amsterdam
host_os | Home Assistant OS 6.2
update_channel | stable
supervisor_version | supervisor-2021.06.8
docker_version | 20.10.6
disk_total | 228.5 GB
disk_used | 10.6 GB
healthy | true
supported | true
board | rpi4-64
supervisor_api | ok
version_api | ok
installed_addons | Samba share (9.5.0), Mosquitto broker (6.0.1), Signal Messenger (0.42.0), Terminal & SSH (9.1.3), File editor (5.3.1), Samba Backup (4.5.0), MariaDB (2.4.0)
Regards Dieter