Hallo zusammen,
ich weiß nach einer Woche suchen und lesen nicht mehr weiter. Wiki, Referenz und diverse Fäden hier haben mich leider nicht erleuchtet.
FHEM ist neu in stalliert, die d_ccu eingerichtet, der RCP-Server läuft.
Ein physikalisches Device HM-Sec-RHS ist in RaspberryMatic ordentlich eingebunden und lässt sich konfigurieren/auslesen.
Hier meine Config:
attr global userattr cmdIcon devStateIcon:textField-long devStateStyle genericDeviceType:security,ignore,switch,outlet,light,blind,thermometer,thermostat,contact,garage,window,lock homebridgeMapping:textField-long icon sortby webCmd webCmdLabel:textField-long widgetOverride
attr global autoload_undefined_devices 1
attr global logfile ./log/fhem-%Y-%m.log
attr global modpath .
attr global statefile ./log/fhem.save
attr global verbose 3
define WEB FHEMWEB 8083 global
setuuid WEB 606c2db5-f33f-8415-83ee-8269500f16023da9
# Fake FileLog entry, to access the fhem log from FHEMWEB
define Logfile FileLog ./log/fhem-%Y-%m.log fakelog
setuuid Logfile 606c2db6-f33f-8415-4e4b-7e89a1b09f02be24
define autocreate autocreate
setuuid autocreate 606c2db6-f33f-8415-6edf-51f758a2734d8fcf
attr autocreate filelog ./log/%NAME-%Y.log
define eventTypes eventTypes ./log/eventTypes.txt
setuuid eventTypes 606c2db6-f33f-8415-c49c-cfc6bbce76fae66d
# Disable this to avoid looking for new USB devices on startup
#define initialUsbCheck notify global:INITIALIZED usb create
define allowed_WEB allowed
setuuid allowed_WEB 606c2ddd-f33f-8415-6016-48f27d4f1924eda7
attr allowed_WEB basicAuth { "$user:$password" eq "willy:dehnf152" }
attr allowed_WEB validFor WEB
define d_ccu HMCCU 192.168.178.30
setuuid d_ccu 606c2e6b-f33f-8415-2e05-24b6b690e89ffaf7
attr d_ccu ccudef-readingfilter ^(LOW_?BAT|UNREACH)$
attr d_ccu ccudef-readingname ^(.+\.)?LOW_?BAT$:battery;;^(.+\.)?UNREACH$:activity
attr d_ccu ccudef-substitute AES_KEY!(0|false):off,(1|true):on;;LOWBAT,LOW_BAT!(0|false):ok,(1|true):low;;UNREACH!(0|false):alive,(1|true):dead;;MOTION!(0|false):noMotion,(1|true):motion;;DIRECTION!0:stop,1:up,2:down,3:undefined;;WORKING!0:false,1:true;;INHIBIT!(0|false):unlocked,(1|true):locked
attr d_ccu ccuflags procrpc
attr d_ccu cmdIcon on:general_an off:general_aus
attr d_ccu eventMap /rpcserver on:on/rpcserver off:off/
attr d_ccu rpcserver on
attr d_ccu stateFormat rpcstate/state
define d_rpc178030BidCos_RF HMCCURPCPROC http://192.168.178.30 BidCos-RF
setuuid d_rpc178030BidCos_RF 606c37bb-f33f-8415-83cb-11538c10cf891785
attr d_rpc178030BidCos_RF alias CCU RPC BidCos-RF
attr d_rpc178030BidCos_RF eventMap /rpcserver on:on/rpcserver off:off/
attr d_rpc178030BidCos_RF stateFormat rpcstate/state
attr d_rpc178030BidCos_RF verbose 2
und der Auszug aus dem Log:
2021.04.06 17:53:32 1: HMCCU: [d_ccu : 30519] Graceful shutdown
2021.04.06 17:53:33 1: Including fhem.cfg
2021.04.06 17:53:33 3: WEB: port 8083 opened
2021.04.06 17:53:33 2: eventTypes: loaded 38 lines from ./log/eventTypes.txt
2021.04.06 17:53:34 1: HMCCU: [d_ccu : 2965] Initialized version 4.3.025
2021.04.06 17:53:34 1: HMCCU: [d_ccu : 2965] HMCCU: Initializing device
2021.04.06 17:53:34 1: HMCCU: [d_ccu : 2965] HMCCU: Read 4 devices with 105 channels from CCU 192.168.178.30
2021.04.06 17:53:34 1: HMCCU: [d_ccu : 2965] HMCCU: Read 3 interfaces from CCU 192.168.178.30
2021.04.06 17:53:34 1: HMCCU: [d_ccu : 2965] HMCCU: Read 0 programs from CCU 192.168.178.30
2021.04.06 17:53:34 1: HMCCU: [d_ccu : 2965] HMCCU: Read 0 virtual groups from CCU 192.168.178.30
2021.04.06 17:53:34 1: HMCCURPCPROC: [d_rpc178030BidCos_RF : 2965] Initialized version 1.9.001 for interface BidCos-RF with I/O device d_ccu
2021.04.06 17:53:34 1: Including ./log/fhem.save
2021.04.06 17:53:34 0: HMCCU: Start of RPC server after FHEM initialization in 12 seconds
2021.04.06 17:53:34 0: Featurelevel: 6
2021.04.06 17:53:34 0: Server started with 8 defined entities (fhem.pl:23904/2021-03-07 perl:5.028001 os:linux user:fhem pid:2965)
2021.04.06 17:53:46 2: HMCCU: [d_ccu : 2965] Get RPC device for interface BidCos-RF
2021.04.06 17:53:46 2: HMCCURPCPROC: [d_rpc178030BidCos_RF : 2965] RPC server process started for interface BidCos-RF with PID=2970
2021.04.06 17:53:46 2: HMCCURPCPROC: [d_rpc178030BidCos_RF : 2970] Initializing RPC server CB2001178054178030 for interface BidCos-RF
2021.04.06 17:53:46 1: HMCCURPCPROC: [d_rpc178030BidCos_RF : 2965] RPC server starting
2021.04.06 17:53:47 2: HMCCURPCPROC: [d_rpc178030BidCos_RF : 2970] Callback server CB2001178054178030 created. Listening on port 7411
2021.04.06 17:53:47 2: HMCCURPCPROC: [d_rpc178030BidCos_RF : 2965] RPC server CB2001178054178030 enters server loop
2021.04.06 17:53:47 2: HMCCURPCPROC: [d_rpc178030BidCos_RF : 2965] Registering callback http://192.168.178.54:7411/fh2001 of type A with ID CB2001178054178030 at http://192.168.178.30:2001
2021.04.06 17:53:47 2: HMCCURPCPROC: [d_rpc178030BidCos_RF : 2970] CB2001178054178030 accepting connections. PID=2970
2021.04.06 17:53:47 1: HMCCURPCPROC: [d_rpc178030BidCos_RF : 2965] RPC server CB2001178054178030 running
2021.04.06 17:53:47 1: HMCCU: [d_ccu : 2965] All RPC servers running
2021.04.06 17:53:47 2: HMCCU: [d_ccu : 2965] HMCCU: Found no devices to update
2021.04.06 17:53:47 1: HMCCURPCPROC: [d_rpc178030BidCos_RF : 2965] Scheduled CCU ping every 300 seconds
2021.04.06 17:53:47 2: HMCCURPCPROC: [d_rpc178030BidCos_RF : 2970] CB2001178054178030 NewDevice received 55 device and channel specifications
Mehr Informationen zu dem Device bekomme ich nicht von FHEM. Daher habe ich keine Ahnung wie ich das Device definieren soll.
Ach ja - Version ist aktuell, "shutdown restart" nach dem Definieren der ccu und nach einem erneuten "get ccu devicelist" gemacht.
Hat bitte jemand einen Tipp für mich?
Danke und viele Grüße
Willy
Gelesen?
https://wiki.fhem.de/wiki/HMCCU#Autocreate_von_Client_Devices (https://wiki.fhem.de/wiki/HMCCU#Autocreate_von_Client_Devices)
Vorsicht: Mit 4.4 hat sich da was verändert
Versuch mal:
get d_ccu H[M|m].* p= <gewünschter Präfix> save room=CCU_HM
Ich hab auch die Erfahrung gemacht, dass einige Geräte trotzdem nicht erkannt werden und manuell konfiguriert werden müssen.
Hallo 1.fhemtester,
vielen Dank für Deine Antwort. Hat leider nicht zum Erfolg geführt. Ich versuche weiter.
@Wernieman: Ja!
Viele Grüße
Willy
Ich hoffe die Konfiguration ist nicht von außen sichtbar. Der IP-Range sieht nach Fritzbox aus und das Passwort in fhem.cfg könnte unerwünschte Besucher anziehen ....
Hallo 1.fhemtester,
danke für den Hinweis. Nein - sie ist a) nicht erreichbar b) habe ich das gestern noch gesehen und die Daten geändert.
Gruß Willy
Ich kann das Problem nachvollziehen.
Ich haben HmIP-SMI55 in der Homematic WebUI angelegt und danach in FHEM ein get create, alles ok.
Danach hab ich ein HmIP-FSM16 angelegt und wieder ein get create.
Alle bestehenden Geräte werden korrekt als already exist angezeigt, aber HmIP-FSM16 fehlt.
Eine Wiederholung von get create hat nichts gebracht.
Der letzte Eintrag im FHEM Log ist
2021.04.07 16:39:09 3: HMCCUDEV [LSEHmIP_SMI55_xxx] get LSEHmIP_SMI55_xxx ?
Ich verwende die letzte GIT-Version RC1.