Umzug der RaspberryMatic &HMCCU

Begonnen von coolice, 27 April 2024, 07:52:31

Vorheriges Thema - Nächstes Thema

coolice

Guten Morgen zusammen, ich hatte seit einigen Jahren RaspberryMatic auf einem Raspi am laufen und in Verbindung mit einer HMCCU lief das auch 1a.
Nun habe ich den Raspi aussortiert und auf meiner Synology Homeassistant und in dieser RaspberryMatic installiert. Beides läuft, doch ich bekomme die HMCCU nicht ans laufen. Ich habe die IP natürlich angepasst un im Log steht 2024.04.27 07:42:55 2: HMCCU [HMCCU] RPC server start: 0 started, 0 already running, 0 failed to start
2024.04.27 07:42:55 1: HMCCU [HMCCU] HMCCU: HMCCU Start of RPC server failed
Habe im Wiki nochmal nachgelesen und keinen Anhaltspunkt gesehen.Im www habe ich irgendwo gelesen, das man virtuellen Maschinen die Port eintragen muss. Also habe ich attr rpcserverport
2001+2001+(10*1) = 7010
gesetzt. Leider auch ohne Erfolg. Kann mir einer auf die Sprünge helfen?

alexmetz

#1
Habe eine ähnliche Konstellation wie Du (HA supervised, fhem daneben im docker) und hänge auch, bin aber evtl. schon ein bisschen weiter:

1. Hast Du die Firewall in RaspberryMatic richtig konfiguriert? --> https://wiki.fhem.de/wiki/HMCCU#CCU_Firewall_Einstellungen

2. Hast Du in der Addon-Konfiguration von RaspberryMatic in Home Assistant die notwendigen Ports freigegeben?
(in HA: Einstellungen -> Addons -> RaspberryMatic CCU -> Konfiguration)
--> jdf. 8181 und dann je nach Protokoll, z.B. BidCos: 2001

Aber wie gesagt, bei mir hängts dann da ewig:
2024.04.28 01:20:59 1: HMCCU [RaspberryMatic] CCU port 8181 is reachable
2024.04.28 01:20:59 1: HMCCU [RaspberryMatic] Initialized version 5.0 222930908
2024.04.28 01:20:59 1: HMCCU [RaspberryMatic] Initializing device
2024.04.28 01:20:59 2: HMCCU [RaspberryMatic] Deleting old CCU configuration data
2024.04.28 01:20:59 2: HMCCU [RaspberryMatic] Updating device table
2024.04.28 01:20:59 1: HMCCU [RaspberryMatic] Can't read virtual groups from CCU. Response:
2024.04.28 01:20:59 1: HMCCU [RaspberryMatic] Read 5 devices with 108 channels from CCU 192.168.180.4
2024.04.28 01:20:59 1: HMCCU [RaspberryMatic] Read 0 programs from CCU 192.168.180.4
2024.04.28 01:20:59 1: HMCCU [RaspberryMatic] Read 0 virtual groups from CCU 192.168.180.4
2024.04.28 01:20:59 1: HMCCU [RaspberryMatic] Reading device config from CCU. This may take a couple of seconds ...
2024.04.28 01:20:59 2: HMCCU [RaspberryMatic] Reading Device Descriptions for interface BidCos-RF
2024.04.28 01:20:59 2: HMCCU [RaspberryMatic] Read 59 Device Descriptions for interface BidCos-RF
2024.04.28 01:20:59 2: HMCCU [RaspberryMatic] Reading Paramset Descriptions for interface BidCos-RF
2024.04.28 01:20:59 2: HMCCU [RaspberryMatic] Read 1 Paramset Descriptions for interface BidCos-RF
2024.04.28 01:20:59 2: HMCCU [RaspberryMatic] Reading Peer Descriptions for interface BidCos-RF
2024.04.28 01:20:59 2: HMCCU [RaspberryMatic] Read 3 Peer Descriptions for interface BidCos-RF
2024.04.28 01:20:59 2: HMCCU [RaspberryMatic] Read RPC device configuration: devices/channels=59 parametersets=1 links=3
2024.04.28 01:21:55 2: HMCCU [RaspberryMatic] RPC device for interface BidCos-RF: d_rpc180004BidCos_RF
2024.04.28 01:21:55 2: HMCCURPCPROC [d_rpc180004BidCos_RF] RPC server process started for interface BidCos-RF with PID=29793
2024.04.28 01:21:55 2: HMCCURPCPROC [d_rpc180004BidCos_RF] Initializing RPC server CB2001000002180004 for interface BidCos-RF
2024.04.28 01:21:55 1: HMCCURPCPROC [d_rpc180004BidCos_RF] RPC server starting
2024.04.28 01:21:55 2: HMCCU [RaspberryMatic] RPC server start: 1 started, 0 already running, 0 failed to start
2024.04.28 01:21:56 2: HMCCURPCPROC [d_rpc180004BidCos_RF] Callback server CB2001000002180004 created. Listening on port 7411
2024.04.28 01:21:56 2: HMCCURPCPROC [d_rpc180004BidCos_RF] CB2001000002180004 accepting connections. PID=29793
2024.04.28 01:21:56 2: HMCCURPCPROC [d_rpc180004BidCos_RF] RPC server CB2001000002180004 enters server loop
2024.04.28 01:21:56 2: HMCCURPCPROC [d_rpc180004BidCos_RF] Registering callback http://172.27.0.2:7411/fh2001 of type A with ID CB2001000002180004 at http://192.168.180.4:2001

Nach ca. 3 Min kommt dann ein Fehler und dann hängts wieder ewig:
2024.04.28 01:24:56 2: HMCCURPCPROC [d_rpc180004BidCos_RF] RPC request init failed: RPC::XML::Client::simple_request: RPC::XML::Client::send_request: HTTP server error: read timeout
2024.04.28 01:24:56 2: HMCCURPCPROC [d_rpc180004BidCos_RF] Retrying request init

Dann scheiterts endgültig:
2024.04.28 01:27:56 2: HMCCURPCPROC [d_rpc180004BidCos_RF] RPC request init failed: RPC::XML::Client::simple_request: RPC::XML::Client::send_request: HTTP server error: read timeout
2024.04.28 01:27:56 2: HMCCURPCPROC [d_rpc180004BidCos_RF] Retrying request init
2024.04.28 01:27:56 1: HMCCURPCPROC [d_rpc180004BidCos_RF] Failed to register callback for ID CB2001000002180004: RPC request init failed: RPC::XML::Client::simple_request: RPC::XML::Client::send_request: HTTP server error: read timeout
2024.04.28 01:27:56 1: HMCCU [RaspberryMatic] All RPC servers error
2024.04.28 01:27:56 2: HMCCURPCPROC [d_rpc180004BidCos_RF] Checking if RPC server process is running
2024.04.28 01:27:56 1: HMCCURPCPROC [d_rpc180004BidCos_RF] RPC server process not running. Cleaning up
2024.04.28 01:27:56 1: HMCCURPCPROC [d_rpc180004BidCos_RF] Housekeeping called. Cleaning up RPC environment
2024.04.28 01:27:56 2: HMCCURPCPROC [d_rpc180004BidCos_RF] Sending signal INT to RPC server process CB2001000002180004 with PID=29793
2024.04.28 01:27:56 2: HMCCURPCPROC [d_rpc180004BidCos_RF] CB2001000002180004 received signal INT
2024.04.28 01:27:56 1: HMCCURPCPROC [d_rpc180004BidCos_RF] RPC server CB2001000002180004 stopped handling connections. PID=29793
2024.04.28 01:27:56 2: HMCCURPCPROC [d_rpc180004BidCos_RF] Number of I/O errors = 0
2024.04.28 01:27:58 2: HMCCURPCPROC [d_rpc180004BidCos_RF] RPC server process CB2001000002180004 deleted
2024.04.28 01:27:58 1: HMCCU [RaspberryMatic] All RPC servers inactive
2024.04.28 01:27:58 2: HMCCURPCPROC [d_rpc180004BidCos_RF] Stop I/O handling
2024.04.28 01:27:58 2: HMCCURPCPROC [d_rpc180004BidCos_RF] RPC server stopped. Cancel delayed shutdown.

Viele Grüße,
Alex
FHEM auf RaspberryPi 4
Homematic

alexmetz

OK. Ob das normal ist, dass das solange hängt, bezweifle ich, aber ich kann jedenfalls die Geräte anlegen und schalten.
FHEM auf RaspberryPi 4
Homematic