Homematic wired integration

Hi there,

I just installed home assistant on synology. I am using Homematic wired and i am training to integrate it, but it doesn’t work.

Homematic runs on a separate raspberry pi3 with rasberrymatic (latest version).

Could you check my config and help me.

my configuration yaml:

homematic:
  interfaces:
    Funk:
      host: 192.168.136.91
      port: 2001
      resolvenames: json
      username: Admin
      password: ***
    Wired:
      host: 192.168.136.91
      port: 2000
      resolvenames: json
      username: Admin
      password: ***
    groups:
      host: 192.168.136.91
      port: 9292
      resolvenames: json
      username: Admin
      password: ***
      path: /groups
  hosts:
    ccu3:
      host: 192.168.136.91
      username: Admin
      password: ***

Without any logs nobody will be able to help you. There are no obvious errors in your configuration. But if you only use wired, have you added the section for wireless? And do you use the old wired components, or Homematic IP wired? If it’s Homeatic IP, then 2010 is the correct port.

I am using the old Homematic wired. I did a test with one wireless device and it was add to hass.

Here you will find my log:

2022-01-09 10:55:13 WARNING (SyncWorker_5) [pyhomematic._hm] Failed to initialize proxy for homeassistant-wired
2022-01-09 11:13:47 WARNING (MainThread) [zigpy_deconz.api] No response to 'Command.device_state' command with seq id '0x02'
2022-01-09 11:13:47 ERROR (MainThread) [zigpy_zigate.common] Unable to set PiZiGate GPIO, please check configuration
2022-01-09 11:13:47 ERROR (MainThread) [zigpy_zigate.common] No module named 'RPi'
2022-01-09 11:13:48 WARNING (MainThread) [zigpy_zigate.api] No response to command 0x0002
2022-01-09 11:13:48 WARNING (MainThread) [zigpy_zigate.api] Retry command 0x0002
2022-01-09 11:13:51 WARNING (MainThread) [zigpy_xbee.api] at: No response to AP command
2022-01-09 11:26:11 ERROR (MainThread) [homeassistant.components.synology_dsm.config_flow] {'api': 'SYNO.Core.System.Utilization', 'code': 105, 'reason': 'Insufficient user privilege', 'details': None}
2022-01-09 11:26:16 ERROR (MainThread) [homeassistant.components.synology_dsm.config_flow] {'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'SSLError = [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'}
2022-01-09 11:26:18 ERROR (MainThread) [homeassistant.components.synology_dsm.config_flow] {'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'SSLError = [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'}
2022-01-09 11:26:19 ERROR (MainThread) [homeassistant.components.synology_dsm.config_flow] {'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'SSLError = [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'}
2022-01-09 11:26:26 ERROR (MainThread) [homeassistant.components.synology_dsm.config_flow] {'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'SSLError = [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'}
2022-01-09 11:26:27 ERROR (MainThread) [homeassistant.components.synology_dsm.config_flow] {'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'SSLError = [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'}
2022-01-09 11:26:28 ERROR (MainThread) [homeassistant.components.synology_dsm.config_flow] {'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'SSLError = [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'}
2022-01-09 11:26:28 ERROR (MainThread) [homeassistant.components.synology_dsm.config_flow] {'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'SSLError = [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'}
2022-01-09 11:26:28 ERROR (MainThread) [homeassistant.components.synology_dsm.config_flow] {'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'SSLError = [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'}
2022-01-09 11:26:29 ERROR (MainThread) [homeassistant.components.synology_dsm.config_flow] {'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'SSLError = [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'}
2022-01-09 11:26:41 ERROR (MainThread) [homeassistant.components.synology_dsm.config_flow] {'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'RequestException = Bad Request'}
2022-01-09 11:26:42 ERROR (MainThread) [homeassistant.components.synology_dsm.config_flow] {'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'RequestException = Bad Request'}
2022-01-09 11:26:43 ERROR (MainThread) [homeassistant.components.synology_dsm.config_flow] {'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'RequestException = Bad Request'}
2022-01-09 11:26:43 ERROR (MainThread) [homeassistant.components.synology_dsm.config_flow] {'api': None, 'code': -1, 'reason': 'Unknown', 'details': 'RequestException = Bad Request'}
2022-01-09 13:08:48 ERROR (MainThread) [homeassistant.components.mobile_app.webhook] Refusing to update waldemar non-registered sensor: f1e257b4f55b90948f0876fcdb6942aa28f825441d52625a15f608f12ff89ef4_audio_output_in_use
2022-01-09 13:08:48 ERROR (MainThread) [homeassistant.components.mobile_app.webhook] Refusing to update waldemar non-registered sensor: f1e257b4f55b90948f0876fcdb6942aa28f825441d52625a15f608f12ff89ef4_active_audio_output
2022-01-09 13:08:58 ERROR (MainThread) [homeassistant.components.mobile_app.webhook] Refusing to update waldemar non-registered sensor: f1e257b4f55b90948f0876fcdb6942aa28f825441d52625a15f608f12ff89ef4_focus
2022-01-09 13:08:58 ERROR (MainThread) [homeassistant.components.mobile_app.webhook] Refusing to update waldemar non-registered sensor: f1e257b4f55b90948f0876fcdb6942aa28f825441d52625a15f608f12ff89ef4_focus
2022-01-16 13:58:08 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.macbookpro fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 487, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 691, in async_device_update
    raise exc
  File "/usr/src/homeassistant/homeassistant/components/squeezebox/media_player.py", line 314, in async_update
    await self._player.async_update()
  File "/usr/local/lib/python3.9/site-packages/pysqueezebox/player.py", line 357, in async_update
    response = await self.async_query("status", "-", "1", f"tags:{tags}")
  File "/usr/local/lib/python3.9/site-packages/pysqueezebox/player.py", line 341, in async_query
    return await self._lms.async_query(*parameters, player=self._id)
  File "/usr/local/lib/python3.9/site-packages/pysqueezebox/server.py", line 172, in async_query
    data = await response.json()
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1119, in json
    return loads(stripped.decode(encoding))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 286: invalid continuation byte
2022-01-17 21:52:11 WARNING (SyncWorker_4) [pyhomematic._hm] ServerThread.proxyDeInit: Not performing de-init for homeassistant-wired
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
2022-01-17 21:52:12 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /homeassistant/restart request Server disconnected
[finish] process exit code 0
s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2022-01-17 21:52:36 WARNING (SyncWorker_0) [pyhomematic._hm] Failed to initialize proxy for homeassistant-wired

Please add the following in your configuration.yaml and then restart Home Assistant. This should produce more output which could help identify the issue.

logger:
  default: warning
  logs:
    pyhomematic: debug

ok, here is the feedback after your instruction:

2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic.connection] HMConnection: Creating server object
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] ServerThread.__init__
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] createProxies: Creating proxies
2022-01-18 08:14:36 INFO (SyncWorker_3) [pyhomematic._hm] Creating proxy Funk. Connecting to 192.168.136.91:2001
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] LockingServerProxy.__init__: Getting local ip
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] LockingServerProxy.__init__: Got local ip 192.168.136.105
2022-01-18 08:14:36 INFO (SyncWorker_3) [pyhomematic._hm] Creating proxy Wired. Connecting to 192.168.136.91:2000
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] LockingServerProxy.__init__: Getting local ip
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] LockingServerProxy.__init__: Got local ip 192.168.136.105
2022-01-18 08:14:36 INFO (SyncWorker_3) [pyhomematic._hm] Creating proxy groups. Connecting to 192.168.136.91:9292/groups
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] LockingServerProxy.__init__: Getting local ip
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] LockingServerProxy.__init__: Got local ip 192.168.136.105
2022-01-18 08:14:36 INFO (SyncWorker_3) [pyhomematic._hm] Creating proxy ccu3. Connecting to 192.168.136.91:2001
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] LockingServerProxy.__init__: Getting local ip
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] LockingServerProxy.__init__: Got local ip 192.168.136.105
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] RPCFunctions.__init__
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] RPCFunctions.__init__: iterating proxy = homeassistant-Funk
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] RPCFunctions.__init__: iterating proxy = homeassistant-Wired
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] RPCFunctions.__init__: iterating proxy = homeassistant-groups
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] RPCFunctions.__init__: iterating proxy = homeassistant-ccu3
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] ServerThread.__init__: Setting up server
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] ServerThread.__init__: Registering RPC functions
2022-01-18 08:14:36 INFO (Thread-3) [pyhomematic._hm] Starting server at http://0.0.0.0:36557
2022-01-18 08:14:36 DEBUG (SyncWorker_3) [pyhomematic._hm] ServerThread.proxyInit: init('http://192.168.136.105:36557', 'homeassistant-Funk')
2022-01-18 08:14:39 DEBUG (SyncWorker_3) [pyhomematic._hm] proxyInit: Exception: [Errno 113] Host is unreachable
2022-01-18 08:14:39 WARNING (SyncWorker_3) [pyhomematic._hm] Failed to initialize proxy for homeassistant-Funk
2022-01-18 08:14:39 DEBUG (SyncWorker_3) [pyhomematic._hm] ServerThread.proxyInit: init('http://192.168.136.105:36557', 'homeassistant-Wired')
2022-01-18 08:14:42 DEBUG (SyncWorker_3) [pyhomematic._hm] proxyInit: Exception: [Errno 113] Host is unreachable
2022-01-18 08:14:42 WARNING (SyncWorker_3) [pyhomematic._hm] Failed to initialize proxy for homeassistant-Wired
2022-01-18 08:14:42 DEBUG (SyncWorker_3) [pyhomematic._hm] ServerThread.proxyInit: init('http://192.168.136.105:36557', 'homeassistant-groups')
2022-01-18 08:14:45 DEBUG (SyncWorker_3) [pyhomematic._hm] proxyInit: Exception: [Errno 113] Host is unreachable
2022-01-18 08:14:45 WARNING (SyncWorker_3) [pyhomematic._hm] Failed to initialize proxy for homeassistant-groups
2022-01-18 08:14:45 INFO (SyncWorker_3) [pyhomematic._hm] Skipping init for homeassistant-ccu3
2022-01-18 08:14:45 DEBUG (SyncWorker_5) [pyhomematic._hm] ServerThread.getAllSystemVariables: Getting all System variables via JSON-RPC
2022-01-18 08:14:45 DEBUG (SyncWorker_5) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.login
2022-01-18 08:14:45 DEBUG (SyncWorker_5) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: http://192.168.136.91:80/api/homematic.cgi
2022-01-18 08:14:48 ERROR (SyncWorker_5) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Exception: <urlopen error [Errno 113] Host is unreachable>
2022-01-18 08:14:48 WARNING (SyncWorker_5) [pyhomematic._hm] ServerThread.jsonRpcLogin: Unable to open session.
2022-01-18 08:14:48 DEBUG (SyncWorker_7) [pyhomematic._hm] ServerThread.getServiceMessages: Exception: [Errno 113] Host is unreachable
2022-01-18 08:15:15 DEBUG (SyncWorker_0) [pyhomematic._hm] ServerThread.getAllSystemVariables: Getting all System variables via JSON-RPC
2022-01-18 08:15:15 DEBUG (SyncWorker_0) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.login
2022-01-18 08:15:15 DEBUG (SyncWorker_0) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: http://192.168.136.91:80/api/homematic.cgi
2022-01-18 08:15:18 ERROR (SyncWorker_0) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Exception: <urlopen error [Errno 113] Host is unreachable>
2022-01-18 08:15:18 WARNING (SyncWorker_0) [pyhomematic._hm] ServerThread.jsonRpcLogin: Unable to open session.
2022-01-18 08:15:45 DEBUG (SyncWorker_2) [pyhomematic._hm] ServerThread.getAllSystemVariables: Getting all System variables via JSON-RPC
2022-01-18 08:15:45 DEBUG (SyncWorker_2) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.login
2022-01-18 08:15:45 DEBUG (SyncWorker_2) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: http://192.168.136.91:80/api/homematic.cgi
2022-01-18 08:15:48 ERROR (SyncWorker_2) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Exception: <urlopen error [Errno 113] Host is unreachable>
2022-01-18 08:15:48 WARNING (SyncWorker_2) [pyhomematic._hm] ServerThread.jsonRpcLogin: Unable to open session.
2022-01-18 08:16:15 DEBUG (SyncWorker_6) [pyhomematic._hm] ServerThread.getAllSystemVariables: Getting all System variables via JSON-RPC
2022-01-18 08:16:15 DEBUG (SyncWorker_6) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.login
2022-01-18 08:16:15 DEBUG (SyncWorker_6) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: http://192.168.136.91:80/api/homematic.cgi
2022-01-18 08:16:18 ERROR (SyncWorker_6) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Exception: <urlopen error [Errno 113] Host is unreachable>
2022-01-18 08:16:18 WARNING (SyncWorker_6) [pyhomematic._hm] ServerThread.jsonRpcLogin: Unable to open session.
2022-01-18 08:16:45 DEBUG (SyncWorker_7) [pyhomematic._hm] ServerThread.getAllSystemVariables: Getting all System variables via JSON-RPC
2022-01-18 08:16:45 DEBUG (SyncWorker_7) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.login
2022-01-18 08:16:45 DEBUG (SyncWorker_7) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: http://192.168.136.91:80/api/homematic.cgi
2022-01-18 08:16:48 ERROR (SyncWorker_7) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Exception: <urlopen error [Errno 113] Host is unreachable>
2022-01-18 08:16:48 WARNING (SyncWorker_7) [pyhomematic._hm] ServerThread.jsonRpcLogin: Unable to open session.
2022-01-18 08:17:15 DEBUG (SyncWorker_5) [pyhomematic._hm] ServerThread.getAllSystemVariables: Getting all System variables via JSON-RPC
2022-01-18 08:17:15 DEBUG (SyncWorker_5) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.login
2022-01-18 08:17:15 DEBUG (SyncWorker_5) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: http://192.168.136.91:80/api/homematic.cgi
2022-01-18 08:17:18 ERROR (SyncWorker_5) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Exception: <urlopen error [Errno 113] Host is unreachable>
2022-01-18 08:17:18 WARNING (SyncWorker_5) [pyhomematic._hm] ServerThread.jsonRpcLogin: Unable to open session.
2022-01-18 08:17:45 DEBUG (SyncWorker_1) [pyhomematic._hm] ServerThread.getAllSystemVariables: Getting all System variables via JSON-RPC
2022-01-18 08:17:45 DEBUG (SyncWorker_1) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.login
2022-01-18 08:17:45 DEBUG (SyncWorker_1) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: http://192.168.136.91:80/api/homematic.cgi
2022-01-18 08:17:48 ERROR (SyncWorker_1) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Exception: <urlopen error [Errno 113] Host is unreachable>
2022-01-18 08:17:48 WARNING (SyncWorker_1) [pyhomematic._hm] ServerThread.jsonRpcLogin: Unable to open session.

The logs is showing [Errno 113] Host is unreachable messages for every attempt to connect to your RaspberryMatic device. So you either have a problem with your network, or you didn’t open the firewall in RaspberryMatic.

Here ist my konfiguration of my firewall. I think it is ok?

Yes, generally that’s looking ok. That being said, you only need the 4th line (with the /24 at the end), as that covers your whole network. And I’m pretty sure that you also don’t need the last line (fc00…).

Anyways, this will probably not solve your issue. And I don’t know what’s going on on your network. So I can’t really help anymore. All I know is, that for some reason the Home Assistant machine can’t talk to the other one. There could be 1000 different reasons why this is happening.

Hello Daniel,

my Hass is working on my Synology. The firewall was working. I put it off. The log looks like different now. Could you check it?

Your current problem is that you get this message in your log:

2022-01-23 10:50:24 DEBUG (SyncWorker_4) [pyhomematic._hm] proxyInit: Exception: <ProtocolError for [email protected]:2000/RPC2: 503 Service Unavailable>

I don’t know why your CCU responds that way. Perhaps the related service has crashed. Please try a restart of your CCU and then restart Home Assistant.