RaspberryMatic HMIPServer: Error Timeout but rfd: OK

Hi everyone!

I have a fresh install of Home Assistant Supervised, but RaspberryMatic HMIPServer keeps getting an error and I don’t know why.

Hardware:
Raspberry PI 3 B+
HMIP-RFUSB

Configuration:

Linux homesrv 6.1.0-rpi6-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.58-1+rpt2 (2023-10-27) aarch64 GNU/Linux

/boot/commandline.txt includes systemd.unified_cgroup_hierarchy=false apparmor=1 security=apparmor

Other installed addons:
Duck DNS: 1.15.0
File Editor: 5.7.0
Mosquitto broker: 6.4.0
Zigbee2mqtt: 1.18.1-1

configuration.yaml
I tried different options:

  • No homematic config
  • homematic config
#homematic:
#  interfaces:
#    rf:
#      host: 192.168.0.50
#      port: 2001
#      resolvenames: json
#      username: !secret homematicccuuser
#      password: !secret homematicccupw
#    hmip:
#      host: 192.168.0.50
#      port: 2010
#      resolvenames: json
#      username: !secret homematicccuuser
#      password: !secret homematicccupw
#    groups:
#      host: 192.168.0.50
#      port: 9292
#      resolvenames: json
#      username: !secret homematicccuuser
#      password: !secret homematicccupw
#      path: /groups
#  hosts:
#    raspberrymatic:
#      host: 192.168.0.50
#      username: !secret homematicccuuser
#      password: !secret homematicccupw

Logs:

RaspberryMatic Log:

Mounting /data as /usr/local (Home Assistant Add-On): OK
Starting watchdog...
Identifying host system: oci, OK
Initializing RTC Clock: no hardware found
Running sysctl: OK
Checking for Factory Reset: not required
Checking for Backup Restore: not required
Initializing System: OK
Setup ca-certificates: OK
Starting logging: OK
Init onboard LEDs: init, OK
Starting irqbalance: OK
Starting iptables: OK
Starting network: eth0: link up, fixed, firewall, inet up, 172.30.33.1, OK
Identifying Homematic RF-Hardware: ....HmRF: HMIP-RFUSB/eQ-3 [email protected], HmIP: HMIP-RFUSB/eQ-3 [email protected], OK
Updating Homematic RF-Hardware: HMIP-RFUSB: 4.4.18, not necessary, OK
Starting hs485dLoader: disabled
Starting xinetd: OK
Starting eq3configd: Starting lighttpd: OK
Starting ser2net: disabled
Starting ssdpd: OK
Starting ha-proxy: OK
Starting NUT services: disabled
Initializing Third-Party Addons: OK
Starting LGWFirmwareUpdate: ...OK
Setting LAN Gateway keys: OK
Starting hs485d: disabled
Starting multimacd: ...OK
Starting rfd: ..OK
Starting HMIPServer: .......................................................................................................................................................ERROR
Starting ReGaHss: .OK
Starting CloudMatic: OK
Starting NeoServer: disabled
Starting Third-Party Addons: OK
Starting crond: OK
Setup onboard LEDs: booted, OK
Finished Boot: 3.71.12.20231020 (raspmatic_oci_arm)

Home Assistant Core Log:

 Logger: pyhomematic._hm
Source: components/homematic/entity.py:262
First occurred: 4:28:59 PM (36 occurrences)
Last logged: 4:37:29 PM

    RPCFunctions.jsonRpcPost: Exception: <urlopen error [Errno 111] Connection refused>
    ServerThread.jsonRpcLogin: Unable to open session.

Supervisor logs:

23-11-25 16:26:25 INFO (MainThread) [supervisor.hardware.monitor] Detecting add hardware /dev/mmd_hmip - None
23-11-25 16:26:25 INFO (MainThread) [supervisor.hardware.monitor] Detecting add hardware /dev/mmd_bidcos - None
23-11-25 16:26:25 INFO (MainThread) [supervisor.docker.addon] Added cgroup permissions 'c 240:1 rwm' for device /dev/mmd_hmip to addon_de838cd8_raspberrymatic
23-11-25 16:26:25 INFO (MainThread) [supervisor.docker.addon] Added cgroup permissions 'c 240:2 rwm' for device /dev/mmd_bidcos to addon_de838cd8_raspberrymatic
23-11-25 16:26:31 INFO (MainThread) [supervisor.services.modules.mqtt] Set core_mosquitto as service provider for mqtt
23-11-25 16:26:36 INFO (MainThread) [supervisor.auth] Auth request from 'core_mosquitto' for 'mqttasset'
23-11-25 16:26:36 INFO (MainThread) [supervisor.auth] Home Assistant not running, checking cache
23-11-25 16:28:11 WARNING (MainThread) [supervisor.addons.addon] Timeout while waiting for addon RaspberryMatic CCU to start, took more than 120 seconds
23-11-25 16:28:12 INFO (MainThread) [supervisor.core] Start Home Assistant Core
23-11-25 16:28:12 INFO (SyncWorker_1) [supervisor.docker.manager] Starting homeassistant

docker container ls

docker container ls                                                                                                                                                                       homesrv: Sat Nov 25 16:35:55 2023

CONTAINER ID   IMAGE                                                         COMMAND               CREATED          STATUS                     PORTS
                                                                                                                                              NAMES
07f42e167e0c   zigbee2mqtt/zigbee2mqtt-armv7:1.18.1-1                        "/init"               6 minutes ago    Up 6 minutes               0.0.0.0:8485->8485/tcp, :::8485->8485/tcp
                                                                                                                                              addon_7ad98f9c_zigbee2mqtt
b4158f37f320   homeassistant/armv7-addon-configurator:5.7.0                  "/init"               6 minutes ago    Up 6 minutes (healthy)
                                                                                                                                              addon_core_configurator
6506721e2194   homeassistant/armv7-addon-duckdns:1.15.0                      "/init /run.sh"       9 minutes ago    Up 9 minutes
                                                                                                                                              addon_core_duckdns
587bfdc7e8db   ghcr.io/jens-maus/raspberrymatic:3.71.12.20231020             "/sbin/init"          9 minutes ago    Up 9 minutes (unhealthy)   22/tcp, 80/tcp, 161/tcp, 443/tcp, 1900-1902/tcp, 1999-2001/tcp, 2010/tcp, 5987/tcp, 8088
/tcp, 8181/tcp, 9099/tcp, 9292-9293/tcp, 10000/tcp, 41999-42001/tcp, 42010/tcp, 43438-43439/tcp, 48181/tcp, 48899/tcp, 49292/tcp, 49880/tcp   addon_de838cd8_raspberrymatic
fbbea12654e1   homeassistant/armv7-addon-mosquitto:6.4.0                     "/init"               9 minutes ago    Up 9 minutes               0.0.0.0:1883-1884->1883-1884/tcp, :::1883-1884->1883-1884/tcp, 0.0.0.0:8883-8884->8883-8
884/tcp, :::8883-8884->8883-8884/tcp                                                                                                          addon_core_mosquitto
de150e629fa1   ghcr.io/home-assistant/aarch64-hassio-multicast:2023.06.2     "/init"               10 minutes ago   Up 10 minutes
                                                                                                                                              hassio_multicast
b73de77c3771   ghcr.io/home-assistant/aarch64-hassio-audio:2023.10.0         "/init"               10 minutes ago   Up 10 minutes
                                                                                                                                              hassio_audio
ef76ee14ca0f   ghcr.io/home-assistant/aarch64-hassio-dns:2023.06.2           "/init"               10 minutes ago   Up 10 minutes
                                                                                                                                              hassio_dns
58d0ea6c659b   ghcr.io/home-assistant/aarch64-hassio-cli:2023.10.0           "/init"               10 minutes ago   Up 10 minutes
                                                                                                                                              hassio_cli
7dfdeb568286   ghcr.io/home-assistant/raspberrypi3-homeassistant:2023.11.3   "/init"               14 hours ago     Up 7 minutes
                                                                                                                                              homeassistant
7768f8a1bb72   ghcr.io/home-assistant/aarch64-hassio-observer:2023.06.0      "/usr/bin/observer"   14 hours ago     Up 10 minutes              0.0.0.0:4357->80/tcp, :::4357->80/tcp
                                                                                                                                              hassio_observer
51fdedf02eb4   ghcr.io/home-assistant/aarch64-hassio-supervisor:latest       "/init"               14 hours ago     Up 10 minutes
                                                                                                                                              hassio_supervisor

lsusb

 lsusb
Bus 001 Device 004: ID 1b1f:c020 eQ-3 Entwicklung GmbH HmIP-RFUSB
Bus 001 Device 005: ID 0451:16a8 Texas Instruments, Inc. CC2531 ZigBee
Bus 001 Device 006: ID 0424:7800 Microchip Technology, Inc. (formerly SMSC)
Bus 001 Device 003: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I tried also without apparmor, I also tried with and without ModemManager

No luck. Any ideas?

@jens-maus maybe?

Well, that will be the first complication / issue. Home Assistant Supervised installation are always challenging, especially when it comes to hardware dependencies, which the RaspberryMatic HA Add-on requires since you are trying to use an external HomeMatic RF module. Thus, the warning in the documentation, see:

The second complication / problem you have is, that you still try to use the old and obsolete HomeMatic integration of HomeAssistant yourself rather than using HACS-based “homematicIP (Local)” integration which actully is state-of-the-art. See here:

@jens-maus thank you for the answer. As mentioned in the post, I also tried it without the config in configuration.yaml, as this is only later to get the devices in HA. However already the blank addon doesn’t start. It seems to detect the HMRF-USB, so I’m wondering what it could possibly be.

I’ve read the warning, but had raspberrymatic running on a supervisory installation from 2021 with raspberry pi os buster running, with no issues.