Hallo zusammen,
ich versuche seit Tagen zwei CCU2 parallel über HMCCU in FHEM einzubinden. Mein Problem ist, dass bei gleicher Konfiguration die eine CCU und der RPCServer immer im Status "inactive/OK" stehen bleiben. Die zweite CCU geht sauber in den Status "running/OK".
Ich bekomme beim Start von FHM im Log immer Fehlermeldungen, dass Ports bereits belegt sind und vermute, dass sich die beiden CCUs in die Quere kommen.
2021.03.04 00:20:41 1: HMCCU: [CCU1 : 832] Initialized version 4.3.025
2021.03.04 00:20:41 1: HMCCU: [CCU1 : 832] HMCCU: Initializing device
2021.03.04 00:20:44 1: HMCCU: [CCU1 : 832] HMCCU: Read 16 devices with 235 channels from CCU 192.168.1.24
2021.03.04 00:20:44 1: HMCCU: [CCU1 : 832] HMCCU: Read 3 interfaces from CCU 192.168.1.24
2021.03.04 00:20:44 1: HMCCU: [CCU1 : 832] HMCCU: Read 2 programs from CCU 192.168.1.24
2021.03.04 00:20:44 1: HMCCU: [CCU1 : 832] HMCCU: Read 0 virtual groups from CCU 192.168.1.24
2021.03.04 00:20:44 1: HMCCU: [CCU2 : 832] Initialized version 4.3.025
2021.03.04 00:20:44 1: HMCCU: [CCU2 : 832] HMCCU: Initializing device
2021.03.04 00:20:45 1: HMCCU: [CCU2 : 832] HMCCU: Read 3 devices with 107 channels from CCU 192.168.1.25
2021.03.04 00:20:45 1: HMCCU: [CCU2 : 832] HMCCU: Read 3 interfaces from CCU 192.168.1.25
2021.03.04 00:20:45 1: HMCCU: [CCU2 : 832] HMCCU: Read 0 programs from CCU 192.168.1.25
2021.03.04 00:20:45 1: HMCCU: [CCU2 : 832] HMCCU: Read 0 virtual groups from CCU 192.168.1.25
2021.03.04 00:20:47 1: HMCCURPCPROC: [d_rpcBidCos_RF : 832] Initialized version 1.9.001 for interface BidCos-RF with I/O device CCU1
2021.03.04 00:20:47 1: HMCCURPCPROC: [d_rpcHmIP_RF : 832] Initialized version 1.9.001 for interface HmIP-RF with I/O device CCU1
2021.03.04 00:20:58 1: HMCCURPCPROC: [d_rpc001025BidCos_RF : 832] Initialized version 1.9.001 for interface BidCos-RF with I/O device CCU2
2021.03.04 00:20:58 1: HMCCURPCPROC: [d_rpc001025HmIP_RF : 832] Initialized version 1.9.001 for interface HmIP-RF with I/O device CCU2
2021.03.04 00:21:07 0: HMCCU: Start of RPC server after FHEM initialization in 12 seconds
2021.03.04 00:21:07 0: HMCCU: Start of RPC server after FHEM initialization in 12 seconds
2021.03.04 00:21:19 2: HMCCU: [CCU1 : 832] Get RPC device for interface BidCos-RF
2021.03.04 00:21:19 2: HMCCURPCPROC: [d_rpcBidCos_RF : 832] RPC server process started for interface BidCos-RF with PID=1028
2021.03.04 00:21:19 1: HMCCURPCPROC: [d_rpcBidCos_RF : 832] RPC server starting
2021.03.04 00:21:19 2: HMCCURPCPROC: [d_rpcBidCos_RF : 1028] Initializing RPC server CB2001001028001024 for interface BidCos-RF
2021.03.04 00:21:19 2: HMCCU: [CCU1 : 832] Get RPC device for interface BidCos-RF
2021.03.04 00:21:19 2: HMCCURPCPROC: [d_rpcBidCos_RF : 832] RPC server process started for interface BidCos-RF with PID=1029
2021.03.04 00:21:19 2: HMCCURPCPROC: [d_rpcBidCos_RF : 1029] Initializing RPC server CB2001001028001024 for interface BidCos-RF
2021.03.04 00:21:19 2: HMCCU: [CCU1 : 832] Get RPC device for interface BidCos-RF
2021.03.04 00:21:19 2: HMCCURPCPROC: [d_rpcBidCos_RF : 832] RPC server process started for interface BidCos-RF with PID=1030
2021.03.04 00:21:19 2: HMCCURPCPROC: [d_rpcBidCos_RF : 1030] Initializing RPC server CB2001001028001024 for interface BidCos-RF
2021.03.04 00:21:19 2: HMCCU: [CCU2 : 832] Get RPC device for interface BidCos-RF
2021.03.04 00:21:19 2: HMCCURPCPROC: [d_rpc001025BidCos_RF : 832] RPC server process started for interface BidCos-RF with PID=1031
2021.03.04 00:21:19 2: HMCCURPCPROC: [d_rpc001025BidCos_RF : 1031] Initializing RPC server CB2001001028001025 for interface BidCos-RF
2021.03.04 00:21:19 1: HMCCURPCPROC: [d_rpc001025BidCos_RF : 832] RPC server starting
2021.03.04 00:21:19 1: HMCCURPCPROC: [d_rpcBidCos_RF : 1029] Can't create RPC callback server CB2001001028001024 on port 7411. Port in use?
2021.03.04 00:21:19 1: HMCCURPCPROC: [d_rpcBidCos_RF : 1029] Can't initialize RPC server CB2001001028001024 for interface BidCos-RF
2021.03.04 00:21:19 1: HMCCURPCPROC: [d_rpcBidCos_RF : 1030] Can't create RPC callback server CB2001001028001024 on port 7411. Port in use?
2021.03.04 00:21:19 1: HMCCURPCPROC: [d_rpcBidCos_RF : 1030] Can't initialize RPC server CB2001001028001024 for interface BidCos-RF
2021.03.04 00:21:19 2: HMCCURPCPROC: [d_rpcBidCos_RF : 1028] Callback server CB2001001028001024 created. Listening on port 7411
2021.03.04 00:21:19 2: HMCCURPCPROC: [d_rpcBidCos_RF : 1028] CB2001001028001024 accepting connections. PID=1028
2021.03.04 00:21:20 2: HMCCURPCPROC: [d_rpc001025BidCos_RF : 1031] Callback server CB2001001028001025 created. Listening on port 7421
2021.03.04 00:21:20 2: HMCCURPCPROC: [d_rpc001025BidCos_RF : 1031] CB2001001028001025 accepting connections. PID=1031
2021.03.04 00:21:20 2: HMCCURPCPROC: [d_rpc001025BidCos_RF : 832] RPC server CB2001001028001025 enters server loop
2021.03.04 00:21:20 2: HMCCURPCPROC: [d_rpc001025BidCos_RF : 832] Registering callback http://192.168.1.28:7421/fh2001 of type A with ID CB2001001028001025 at http://192.168.1.25:2001
2021.03.04 00:21:20 1: HMCCURPCPROC: [d_rpc001025BidCos_RF : 832] RPC server CB2001001028001025 running
2021.03.04 00:21:20 1: HMCCU: [CCU2 : 832] All RPC servers running
2021.03.04 00:21:20 2: HMCCU: [CCU2 : 832] Updating 3 of 3 client devices matching devexp=.* filter=ccudevstate=active,ccuif=BidCos-RF
2021.03.04 00:21:20 1: HMCCURPCPROC: [d_rpc001025BidCos_RF : 832] Scheduled CCU ping every 300 seconds
2021.03.04 00:21:20 2: HMCCURPCPROC: [d_rpc001025BidCos_RF : 1031] CB2001001028001025 NewDevice received 58 device and channel specifications
2021.03.04 00:21:20 2: HMCCU: [CCU2 : 832] Update success=3 failed=0
List der CCU1:
Internals:
CCUNum 1
Clients :HMCCUDEV:HMCCUCHN:HMCCURPC:HMCCURPCPROC:
DEF 192.168.1.24 1 ccudelay=180
FUUID 5c5ee43e-f33f-799c-d509-367ad2d5081c1def
NAME CCU1
NOTIFYDEV global,TYPE=(HMCCU|HMCCUDEV|HMCCUCHN)
NR 39
NTFY_ORDER 50-CCU1
RPCState inactive
STATE inactive/OK
TYPE HMCCU
ccuaddr BidCoS-RF
ccuchannels 235
ccudevices 16
ccuif BidCos-RF
ccuinterfaces VirtualDevices,HmIP-RF,BidCos-RF
ccuip 192.168.1.24
ccuname HM-RCV-50 BidCoS-RF
ccustate active
ccutype CCU2/3
host 192.168.1.24
prot http
version 4.3.025
READINGS:
2021-03-04 00:20:44 count_channels 235
2021-03-04 00:20:44 count_devices 16
2021-03-04 00:20:44 count_groups 0
2021-03-04 00:20:44 count_interfaces 3
2021-03-04 00:20:44 count_programs 2
2021-03-04 00:20:44 rpcstate inactive
2021-03-04 00:21:19 state OK
[ca. 3000 Zeilen mit Device-Daten gekürzt]
Attributes:
ccudef-readingfilter ^(LOW_?BAT|UNREACH)$
ccuflags procrpc,reconnect
eventMap /rpcserver on:on/rpcserver off:off/
group Gateways
room Server
rpcserver on
stateFormat rpcstate/state
List der CCU2:
Internals:
CCUNum 2
Clients :HMCCUDEV:HMCCUCHN:HMCCURPC:HMCCURPCPROC:
DEF 192.168.1.25 2 ccudelay=180
FUUID 5e6d4049-f33f-799c-0b37-969d7f4d369e5a87
NAME CCU2
NOTIFYDEV global,TYPE=(HMCCU|HMCCUDEV|HMCCUCHN)
NR 42
NTFY_ORDER 50-CCU2
RPCState running
STATE running/OK
TYPE HMCCU
ccuaddr BidCoS-RF
ccuchannels 107
ccudevices 3
ccuif BidCos-RF
ccuinterfaces VirtualDevices,HmIP-RF,BidCos-RF
ccuip 192.168.1.25
ccuname HM-RCV-50 BidCoS-RF
ccustate active
ccutype CCU2/3
host 192.168.1.25
prot http
version 4.3.025
READINGS:
2021-03-04 00:20:45 count_channels 107
2021-03-04 00:20:45 count_devices 3
2021-03-04 00:20:45 count_groups 0
2021-03-04 00:20:45 count_interfaces 3
2021-03-04 00:20:45 count_programs 0
2021-03-04 00:21:20 rpcstate running
2021-03-04 00:21:20 state OK
[ca. 1000 Zeilen mit Device-Daten gekürzt]
Attributes:
ccuflags procrpc,reconnect
eventMap /rpcserver on:on/rpcserver off:off/
group Gateways
room Server
rpcserver on
stateFormat rpcstate/state
Bitte nicht durch die Bezeichnung CCU1 irritieren lassen, ich habe "meine" CCUs einfach nur durchnummeriert. Es handelt sich bei beiden um CCU2-Hardware.
Ich habe auch schon versucht RPC Ports manuell zu konfigurieren, was leider aber auch nicht funktionierte. Außerdem habe ich gelesen, dass durch das Setzen der CCUNum automatisch unterschiedliche Ports verwendet werden. Könnte mir jemand einen Hinweis geben, wo mein Fehler liegt und wie ich die beiden CCUs parallel betreiben kann?
Danke & Gruß
Slanesh
mmm,
Du könntest mal folgendes versuchen:
1. Alle HMCCURPCPROC Devices löschen
2. In beiden HMCCU Devices das Attribut rpcserver auf off setzen
3. FHEM Config speichern
4. FHEM stoppen
5. Alle noch evtl. laufenden fhem.pl Prozesse killen
6. FHEM starten
7. Nacheinander die RPC-Server für CCU1 und CCU2 starten mit "set rpcserver on". Dabei werden die HMCCURPCPROC Devices automatisch neu angelegt.
8. Wenn alles fehlerfrei gestartet wird, die Attribute rpcserver wieder auf on setzen und FHEM-Config speichern
Hallo zap,
vielen Dank für deine Unterstützung. Ich habe die Schritte bis Punkt 7 befolgt.
Beim Starten der CCU1 geht diese gleich wieder in "inactive/OK" und ich habe wieder dieselben Fehler im Log:
2021.03.04 18:04:38 2: HMCCU: [CCU1 : 1055] Get RPC device for interface BidCos-RF
2021.03.04 18:04:38 1: HMCCU: [CCU1 : 1055] No RPC device defined for interface BidCos-RF
2021.03.04 18:04:38 1: HMCCU: [CCU1 : 1055] Creating new RPC device d_rpc001024BidCos_RF
2021.03.04 18:04:38 1: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1055] Initialized version 1.9.001 for interface BidCos-RF with I/O device CCU1
2021.03.04 18:04:38 2: HMCCU: [CCU1 : 1055] Get RPC device for interface BidCos-RF
2021.03.04 18:04:38 2: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1055] RPC server process started for interface BidCos-RF with PID=1081
2021.03.04 18:04:38 2: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1081] Initializing RPC server CB2001001028001024 for interface BidCos-RF
2021.03.04 18:04:38 1: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1055] RPC server starting
2021.03.04 18:04:38 2: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1081] Callback server CB2001001028001024 created. Listening on port 7411
2021.03.04 18:04:38 2: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1081] CB2001001028001024 accepting connections. PID=1081
2021.03.04 18:04:38 1: HMCCU: [CCU1 : 1055] Saving FHEM config
2021.03.04 18:04:38 2: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1055] RPC server process started for interface BidCos-RF with PID=1082
2021.03.04 18:04:38 2: HMCCU: [CCU1 : 1055] Get RPC device for interface BidCos-RF
2021.03.04 18:04:38 2: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1082] Initializing RPC server CB2001001028001024 for interface BidCos-RF
2021.03.04 18:04:38 2: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1055] RPC server process started for interface BidCos-RF with PID=1083
2021.03.04 18:04:38 2: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1083] Initializing RPC server CB2001001028001024 for interface BidCos-RF
2021.03.04 18:04:38 1: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1083] Can't create RPC callback server CB2001001028001024 on port 7411. Port in use?
2021.03.04 18:04:38 1: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1083] Can't initialize RPC server CB2001001028001024 for interface BidCos-RF
2021.03.04 18:04:38 1: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1082] Can't create RPC callback server CB2001001028001024 on port 7411. Port in use?
2021.03.04 18:04:38 1: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1082] Can't initialize RPC server CB2001001028001024 for interface BidCos-RF
2021.03.04 18:05:03 2: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1055] Checking if RPC server process is running
2021.03.04 18:05:03 1: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1055] RPC server process not running. Cleaning up
2021.03.04 18:05:03 1: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1055] Housekeeping called. Cleaning up RPC environment
2021.03.04 18:05:03 1: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1055] RPC server process CB2001001028001024 not runnning
2021.03.04 18:05:03 2: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1055] Stop I/O handling
2021.03.04 18:05:03 2: HMCCURPCPROC: [d_rpc001024BidCos_RF : 1055] RPC server stopped. Cancel delayed shutdown.
Ein netstat -tlpen zeigt mir:
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 13278 548/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 0 12886 903/exim4
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 0 14052 980/smbd
tcp 0 0 0.0.0.0:7072 0.0.0.0:* LISTEN 999 14000 931/perl
tcp 0 0 127.0.0.1:35463 0.0.0.0:* LISTEN 999 14082 931/perl
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 0 14053 980/smbd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 0 10634 354/rpcbind
tcp 0 0 192.168.1.28:80 0.0.0.0:* LISTEN 0 12675 580/mini_httpd
tcp 0 0 0.0.0.0:39729 0.0.0.0:* LISTEN 106 11394 379/rpc.statd
tcp 0 0 0.0.0.0:59090 0.0.0.0:* LISTEN 999 14071 931/perl
tcp 0 0 0.0.0.0:7411 0.0.0.0:* LISTEN 999 16002 1122/perl
tcp 0 0 0.0.0.0:8083 0.0.0.0:* LISTEN 999 14346 931/perl
tcp 0 0 0.0.0.0:8084 0.0.0.0:* LISTEN 999 14347 931/perl
tcp 0 0 0.0.0.0:8085 0.0.0.0:* LISTEN 999 14348 931/perl
tcp6 0 0 :::22 :::* LISTEN 0 13280 548/sshd
tcp6 0 0 :::3000 :::* LISTEN 999 14405 699/alexa
tcp6 0 0 ::1:25 :::* LISTEN 0 12887 903/exim4
tcp6 0 0 :::445 :::* LISTEN 0 14050 980/smbd
tcp6 0 0 :::139 :::* LISTEN 0 14051 980/smbd
tcp6 0 0 :::111 :::* LISTEN 0 10637 354/rpcbind
tcp6 0 0 :::42002 :::* LISTEN 106 11400 379/rpc.statd
tcp6 0 0 :::21 :::* LISTEN 0 13387 549/vsftpd
Habe im Anschluss das HMCCURPCPROC Device wieder gelöscht, Save Config und FHEM stop/start.
Ein netstat -tlpen zeigt mir, dass der Port 7411 wieder frei ist:
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 13278 548/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 0 12886 903/exim4
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 0 14052 980/smbd
tcp 0 0 0.0.0.0:7072 0.0.0.0:* LISTEN 999 14000 931/perl
tcp 0 0 127.0.0.1:35463 0.0.0.0:* LISTEN 999 14082 931/perl
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 0 14053 980/smbd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 0 10634 354/rpcbind
tcp 0 0 192.168.1.28:80 0.0.0.0:* LISTEN 0 12675 580/mini_httpd
tcp 0 0 0.0.0.0:39729 0.0.0.0:* LISTEN 106 11394 379/rpc.statd
tcp 0 0 0.0.0.0:59090 0.0.0.0:* LISTEN 999 14071 931/perl
tcp 0 0 0.0.0.0:8083 0.0.0.0:* LISTEN 999 14346 931/perl
tcp 0 0 0.0.0.0:8084 0.0.0.0:* LISTEN 999 14347 931/perl
tcp 0 0 0.0.0.0:8085 0.0.0.0:* LISTEN 999 14348 931/perl
tcp6 0 0 :::22 :::* LISTEN 0 13280 548/sshd
tcp6 0 0 :::3000 :::* LISTEN 999 14405 699/alexa
tcp6 0 0 ::1:25 :::* LISTEN 0 12887 903/exim4
tcp6 0 0 :::445 :::* LISTEN 0 14050 980/smbd
tcp6 0 0 :::139 :::* LISTEN 0 14051 980/smbd
tcp6 0 0 :::111 :::* LISTEN 0 10637 354/rpcbind
tcp6 0 0 :::42002 :::* LISTEN 106 11400 379/rpc.statd
tcp6 0 0 :::21 :::* LISTEN 0 13387 549/vsftpd
Habe dann zum Vergleich mal den RPC in der CCU2 gestartet. Der kommt ohne Probleme hoch:
2021.03.04 18:46:51 2: HMCCU: [CCU2 : 931] Get RPC device for interface BidCos-RF
2021.03.04 18:46:51 1: HMCCU: [CCU2 : 931] No RPC device defined for interface BidCos-RF
2021.03.04 18:46:51 1: HMCCU: [CCU2 : 931] Creating new RPC device d_rpc001025BidCos_RF
2021.03.04 18:46:51 1: HMCCURPCPROC: [d_rpc001025BidCos_RF : 931] Initialized version 1.9.001 for interface BidCos-RF with I/O device CCU2
2021.03.04 18:46:51 1: HMCCU: [CCU2 : 931] Saving FHEM config
2021.03.04 18:46:51 2: HMCCURPCPROC: [d_rpc001025BidCos_RF : 931] RPC server process started for interface BidCos-RF with PID=1217
2021.03.04 18:46:51 1: HMCCURPCPROC: [d_rpc001025BidCos_RF : 931] RPC server starting
2021.03.04 18:46:51 2: HMCCURPCPROC: [d_rpc001025BidCos_RF : 1217] Initializing RPC server CB2001001028001025 for interface BidCos-RF
2021.03.04 18:46:52 2: HMCCURPCPROC: [d_rpc001025BidCos_RF : 1217] Callback server CB2001001028001025 created. Listening on port 7421
2021.03.04 18:46:52 2: HMCCURPCPROC: [d_rpc001025BidCos_RF : 1217] CB2001001028001025 accepting connections. PID=1217
2021.03.04 18:46:52 2: HMCCURPCPROC: [d_rpc001025BidCos_RF : 931] RPC server CB2001001028001025 enters server loop
2021.03.04 18:46:52 2: HMCCURPCPROC: [d_rpc001025BidCos_RF : 931] Registering callback http://192.168.1.28:7421/fh2001 of type A with ID CB2001001028001025 at http://192.168.1.25:2001
2021.03.04 18:46:52 1: HMCCURPCPROC: [d_rpc001025BidCos_RF : 931] RPC server CB2001001028001025 running
2021.03.04 18:46:52 1: HMCCU: [CCU2 : 931] All RPC servers running
2021.03.04 18:46:52 2: HMCCU: [CCU2 : 931] Updating 3 of 3 client devices matching devexp=.* filter=ccudevstate=active,ccuif=BidCos-RF
2021.03.04 18:46:52 1: HMCCURPCPROC: [d_rpc001025BidCos_RF : 931] Scheduled CCU ping every 300 seconds
2021.03.04 18:46:52 2: HMCCURPCPROC: [d_rpc001025BidCos_RF : 1217] CB2001001028001025 NewDevice received 58 device and channel specifications
2021.03.04 18:46:52 2: HMCCU: [CCU2 : 931] Update success=3 failed=0
Ich hatte mit der CCU1 früher mal den internen RPC Server verwendet, könnte es damit etwas zu tun haben?
Danke & Viele Grüße
Slanesh
Habe mir eben in der CCU mal die /var/log/messages angeschaut.
Dort finde ich nach einem Neustart der CCU folgende Zeilen:
Mar 7 23:19:55 ccu2 user.err rfd: XmlRpc transport error calling system.listMethods({"1009"}) on binary://127.0.0.1:1999/RPC2:
Mar 7 23:19:55 ccu2 user.err rfd: XmlRpc transport error calling listDevices({"1009"}) on binary://127.0.0.1:1999/RPC2:
Hilft das weiter? Hat das etwas mit dem Problem zu tun?
Gruß Slanesh
127.0.0.1 ist ja die CCU selbst. Das hat nichts mit dem anderen Problem zu tun. Ist die Software der CCU aktuell?
Ja, beide CCUs haben einen identischen Softwarestand: 2.55.10
Wenn ich die erste CCU auf intrpc und die zweite auf procrpc stelle bekomme ich beide CCUs in den Status "running/ok". Muss ich für ein Zwei-CCU-Szenario evtl. unterschiedliche RPC-Server verwenden? Die Kombination procrpc und extrpc funktionieren allerdings auch nicht -> CCU1 ebenfalls "inactive/OK". In HMCCU 4.4 soll der intrpc m.W. rausfliegen. Macht es Sinn ihn für solche Szenarien zu behalten?
Gibt es jemanden der ein Zwei-CCU-Szenario über procrpc am Laufen hat und hier vielleicht einen Hinweis geben kann?
Gruß Slanesh
Ich hatte es bei mir definitiv am laufen mit procrpc. Leider habe ich bei Renovierungsarbeiten meine 2. CCU zerstört und kann es daher aktuell nicht testen.
Die 4.4 unterstützt nur noch den externen RPC Server (Typ procrpc).
Zitat von: Slanesh am 10 März 2021, 17:36:17
Gibt es jemanden der ein Zwei-CCU-Szenario über procrpc am Laufen hat und hier vielleicht einen Hinweis geben kann?
Ja, habe ich. (Die zweite CCU ist sogar weiter weg und per VPN angebunden.)
Läuft bestens.
HMCCU ist Version 4.3.018, CCU1 ist Version 2.47.20, CCU2 ist 2.53.34.
LG, Stephan.
Hallo Loescher,
danke für das Feedback. Könntest du mir bitte ein list deiner beiden CCUs und RPCs posten, damit ich sie mit meiner config vergleichen kann?
Gruß Slanesh
Na klar.
Die erste:
Internals:
CCUNum 1
Clients :HMCCUDEV:HMCCUCHN:HMCCURPC:HMCCURPCPROC:
DEF 192.168.178.33
FUUID 5c586976-f33f-a2be-f7c2-5a53ef69261b448e
NAME d_ccu
NOTIFYDEV global,TYPE=(HMCCU|HMCCUDEV|HMCCUCHN)
NR 20
NTFY_ORDER 50-d_ccu
RPCState running
STATE running/OK
TYPE HMCCU
ccuaddr BidCoS-RF
ccuchannels 192
ccudevices 21
ccuif BidCos-RF
ccuinterfaces HmIP-RF,VirtualDevices,BidCos-RF
ccuip 192.168.178.33
ccuname HM-RCV-50 BidCoS-RF
ccustate active
ccutype CCU2/3
host 192.168.178.33
prot http
version 4.3.018
READINGS:
2021-03-12 16:17:20 count_channels 192
2021-03-12 16:17:20 count_devices 21
2021-03-12 16:17:20 count_groups 0
2021-03-12 16:17:20 count_interfaces 3
2021-03-12 16:17:20 count_programs 2
2021-03-12 16:17:38 rpcstate running
2021-03-12 16:17:38 state OK
hmccu:
defInterface BidCos-RF
defPort 2001
evtime 0
evtimeout 0
rpccount 0
rpcports 2001,2010
updatetime 0
...
grp:
ifports:
2001 BidCos-RF
2010 HmIP-RF
9292 VirtualDevices
interfaces:
BidCos-RF:
devcount 13
device d_rpcBidCos_RF
flags forceASCII
host 192.168.178.33
manager HMCCU
port 2001
prot http
state running
type A
url http://192.168.178.33:2001
HmIP-RF:
devcount 8
device d_rpcHmIP_RF
flags forceASCII
host 192.168.178.33
manager HMCCU
port 2010
prot http
state running
type A
url http://192.168.178.33:2010
VirtualDevices:
devcount 0
device d_rpcVirtualDevices
flags _
host 192.168.178.33
manager null
port 9292
prot http
state inactive
type A
url http://192.168.178.33:9292/groups
prg:
prgEnergyCounter_1273_LEQ1345527:2:
active true
internal true
prgEnergyCounter_1369_NEQ1662991:2:
active true
internal true
rpc:
Attributes:
ccudef-readingname ^(.+\.)?LOW_?BAT$:battery;^(.+\.)?UNREACH$:activity
ccudef-substitute LOWBAT,LOW_BAT!(0|false):ok,(1|true):low;UNREACH!(0|false):alive,(1|true):dead
ccuflags procrpc,reconnect
rpcinterfaces BidCos-RF,HmIP-RF
rpcport 2001,2010
rpcserver on
stateFormat rpcstate/state
Und die zweite:
Internals:
CCUNum 2
Clients :HMCCUDEV:HMCCUCHN:HMCCURPC:HMCCURPCPROC:
DEF 192.168.10.24
FUUID 60197ddf-f33f-a2be-630c-3fcad4b33840e321
NAME d_ccu_Z
NOTIFYDEV global,TYPE=(HMCCU|HMCCUDEV|HMCCUCHN)
NR 354
NTFY_ORDER 50-d_ccu_Z
RPCState running
STATE running/OK
TYPE HMCCU
ccuaddr BidCoS-RF
ccuchannels 161
ccudevices 9
ccuif BidCos-RF
ccuinterfaces HmIP-RF,CUxD,VirtualDevices,BidCos-RF
ccuip 192.168.10.24
ccuname HM-RCV-50 BidCoS-RF
ccustate active
ccutype CCU2/3
host 192.168.10.24
prot http
version 4.3.018
READINGS:
2021-03-16 17:49:28 count_channels 161
2021-03-16 17:49:28 count_devices 9
2021-03-16 17:49:28 count_groups 0
2021-03-16 17:49:28 count_interfaces 4
2021-03-16 17:49:28 count_programs 0
2021-03-28 09:14:31 rpcstate running
2021-03-28 09:14:31 state OK
hmccu:
defInterface BidCos-RF
defPort 2001
evtime 0
evtimeout 0
rpccount 0
rpcports 2010
updatetime 1615913368
...
grp:
ifports:
2001 BidCos-RF
2010 HmIP-RF
8701 CUxD
9292 VirtualDevices
interfaces:
BidCos-RF:
devcount 1
flags forceASCII
host 192.168.10.24
manager null
port 2001
prot http
state inactive
type A
url http://192.168.10.24:2001
CUxD:
devcount 0
flags forceInit
host 192.168.10.24
manager null
port 8701
prot xmlrpc_bin
state inactive
type B
url xmlrpc_bin://192.168.10.24:8701
HmIP-RF:
devcount 8
device d_rpc010024HmIP_RF
flags forceASCII
host 192.168.10.24
manager HMCCU
port 2010
prot http
state running
type A
url http://192.168.10.24:2010
VirtualDevices:
devcount 0
flags _
host 192.168.10.24
manager null
port 9292
prot http
state inactive
type A
url http://192.168.10.24:9292/groups
prg:
rpc:
Attributes:
ccuflags procrpc,reconnect
rpcinterfaces HmIP-RF
rpcport 2010
rpcserver on
stateFormat rpcstate/state
verbose 5
LG,
Stephan.