[GELÖST] Probleme mit HomematicIP

Begonnen von thinman, 13 Oktober 2019, 20:34:00

Vorheriges Thema - Nächstes Thema

thinman

Servus Allerseits, ich habe einige Homematic Bewegungsmelder und Fenster Sensoren an eine CCU2 welche ich mit FHEM benutze.
Diese funktionieren einwandfrei. Ich brauchte eine neue Außentemperatursensor und das HomeMatic IP Sensor hatte gute Bewertungen also habe ich es gekauft.
Angeschlossen und an der CCU2 angemeldet, funktioniert es da einwandfrei. Hab auch ein Dummy Programm geschrieben wie bei der anderen normalen HM Sensoren.

Im Gegensatz zu den bisherigen Sensoren kriege ich es aber in FHEM nicht richtig zum laufen. Die Readings tauchen zwar auf aber diese werden nicht aktualisiert und auf den meisten GET Befehle kriege ich nur folgende Fehlermeldung: HMCCUDEV: HM_AussenTemperatur Cannot detect or create external RPC device.

Ich kann allerdings mit ein GET Update die Aktualisierung forcieren. (Ich könnte zwar ein AT alle Minute losschicken zum updaten aber das ist ja nicht sinn der Sache.)
Ich hab schon alle Devices (auch in CCU2) gelöscht und neu angelegt aber es bleibt dabei.

Was mache ich fasch?

Vielen Dank für Ratschläge.

Hier die Daten für die HMCCU (die mittlerer lange Liste habe ich weggelassen):
Internals:
   CCUNum     1
   Clients    :HMCCUDEV:HMCCUCHN:HMCCURPC:HMCCURPCPROC:
   DEF        192.168.10.40
   FUUID      5cb05790-f33f-0963-3284-3487cf13c8fb0f06
   NAME       d_ccu
   NOTIFYDEV  global,TYPE=(HMCCU|HMCCUDEV|HMCCUCHN)
   NR         443
   NTFY_ORDER 50-d_ccu
   RPCState   running
   STATE      running/OK
   TYPE       HMCCU
   ccuaddr    BidCoS-RF
   ccuchannels 114
   ccudevices 7
   ccuif      BidCos-RF
   ccuinterfaces VirtualDevices,HmIP-RF,BidCos-RF
   ccuip      192.168.10.40
   ccuname    HM-RCV-50 BidCoS-RF
   ccustate   active
   ccutype    CCU2/3
   host       192.168.10.40
   prot       http
   version    4.3.014
   READINGS:
     2019-10-12 12:58:40   count_channels  114
     2019-10-12 12:58:40   count_devices   7
     2019-10-12 12:58:40   count_groups    0
     2019-10-12 12:58:40   count_interfaces 3
     2019-10-12 12:58:40   count_programs  5
     2019-10-12 12:58:53   rpcstate        running
     2019-10-12 12:58:53   state           OK
   hmccu:
     defInterface BidCos-RF
     defPort    2001
     evtime     0
     evtimeout  0
     rpccount   0
     rpcports   
     updatetime 0
     adr:
       HM-RCV-50 BidCoS-RF:
         address    BidCoS-RF
         addtype    dev
         valid      1
...
      HmIP-STHO:
         ch:
           0:
             CONFIG_PENDING:
               oper       5
               type       2
             DUTY_CYCLE:
               oper       5
               type       2
             ERROR_CODE:
               oper       5
               type       8
             INSTALL_TEST:
               oper       3
               type       2
             LOW_BAT:
               oper       5
               type       2
             OPERATING_VOLTAGE:
               oper       5
               type       4
             OPERATING_VOLTAGE_STATUS:
               oper       5
               type       16
             RSSI_DEVICE:
               oper       5
               type       8
             RSSI_PEER:
               oper       5
               type       8
             TEMPERATURE_OUT_OF_RANGE:
               oper       5
               type       2
             UNREACH:
               oper       5
               type       2
             UPDATE_PENDING:
               oper       5
               type       2
           1:
             ACTUAL_TEMPERATURE:
               oper       5
               type       4
             ACTUAL_TEMPERATURE_STATUS:
               oper       5
               type       16
             HUMIDITY:
               oper       5
               type       16
             HUMIDITY_STATUS:
               oper       5
               type       16
         cnt:
           ACTUAL_TEMPERATURE 1
           ACTUAL_TEMPERATURE_STATUS 1
           CONFIG_PENDING 1
           DUTY_CYCLE 1
           ERROR_CODE 1
           HUMIDITY   1
           HUMIDITY_STATUS 1
           INSTALL_TEST 1
           LOW_BAT    1
           OPERATING_VOLTAGE 1
           OPERATING_VOLTAGE_STATUS 1
           RSSI_DEVICE 1
           RSSI_PEER  1
           TEMPERATURE_OUT_OF_RANGE 1
           UNREACH    1
           UPDATE_PENDING 1
     grp:
     ifports:
       2001       BidCos-RF
       2010       HmIP-RF
       9292       VirtualDevices
     interfaces:
       BidCos-RF:
         devcount   5
         device     d_rpc010040BidCos_RF
         flags      forceASCII
         host       192.168.10.40
         manager    HMCCU
         port       2001
         prot       http
         state      running
         type       A
         url        http://192.168.10.40:2001
       HmIP-RF:
         devcount   2
         flags      forceASCII
         host       192.168.10.40
         manager    null
         port       2010
         prot       http
         state      inactive
         type       A
         url        http://192.168.10.40:2010
       VirtualDevices:
         devcount   0
         flags      _
         host       192.168.10.40
         manager    null
         port       9292
         prot       http
         state      inactive
         type       A
         url        http://192.168.10.40:9292/groups
     prg:
       ${ruleTmpProgramName}:
         active     true
         internal   false
       ${ruleTmpProgramName} 1:
         active     true
         internal   false
       ${ruleTmpProgramName} 2:
         active     true
         internal   false
       Aussentemperatur:
         active     true
         internal   false
       Bewegungsensor:
         active     true
         internal   false
     rpc:
Attributes:
   ccuflags   procrpc
   room       Synology
   rpcinterval 5
   rpcserver  on
   stateFormat rpcstate/state
   stripnumber 2


Und hier die Temperatursensor:
Internals:
   DEF        000EDA4995B145 defaults
   FUUID      5da1b103-f33f-0963-b082-425ea497a6d77524
   IODev      d_ccu
   NAME       HM_AussenTemperatur
   NR         467
   STATE      Initialized
   TYPE       HMCCUDEV
   ccuaddr    000EDA4995B145
   ccudevstate active
   ccuif      HmIP-RF
   ccuname    HmIP-STHO 000EDA4995B145
   ccutype    HmIP-STHO
   channels   4
   statevals  devstate
   READINGS:
     2019-10-13 20:16:50   1.ACTUAL_TEMPERATURE 16.400000
     2019-10-13 20:16:50   1.ACTUAL_TEMPERATURE_STATUS 0
     2019-10-13 20:16:50   1.HUMIDITY      79
     2019-10-13 20:16:50   1.HUMIDITY_STATUS 0
     2019-10-13 20:16:50   hmstate         Initialized
     2019-10-12 12:58:40   state           Initialized
   hmccu:
     devspec    000EDA4995B145
     dp:
       0.CONFIG_PENDING:
         OVAL       false
         VAL        false
       0.DUTY_CYCLE:
         OVAL       false
         VAL        false
       0.ERROR_CODE:
         OVAL       0
         VAL        0
       0.INSTALL_TEST:
         OVAL       true
         VAL        true
       0.LOW_BAT:
         OVAL       false
         VAL        false
       0.OPERATING_VOLTAGE:
         OVAL       3.000000
         VAL        3.000000
       0.OPERATING_VOLTAGE_STATUS:
         OVAL       0
         VAL        0
       0.RSSI_DEVICE:
         OVAL       187
         VAL        187
       0.RSSI_PEER:
         OVAL       0
         VAL        0
       0.TEMPERATURE_OUT_OF_RANGE:
         OVAL       false
         VAL        false
       0.UNREACH:
         OVAL       false
         VAL        false
       0.UPDATE_PENDING:
         OVAL       false
         VAL        false
       1.ACTUAL_TEMPERATURE:
         OSVAL      15.400000
         OVAL       15.400000
         SVAL       16.400000
         VAL        16.400000
       1.ACTUAL_TEMPERATURE_STATUS:
         OSVAL      0
         OVAL       0
         SVAL       0
         VAL        0
       1.HUMIDITY:
         OSVAL      88
         OVAL       88
         SVAL       79
         VAL        79
       1.HUMIDITY_STATUS:
         OSVAL      0
         OVAL       0
         SVAL       0
         VAL        0
Attributes:
   IODev      d_ccu
   ccureadingfilter (ACTUAL_TEMPERATURE|HUMIDITY)
   ccureadings 1
   event-on-change-reading .*
   icon       weather_cloudy_light
   room       WetterStation

eurofinder

@thinman:
Dein HmIP-RF ist inactiv. Aktiviere mal in deinem CCU-Device unter dem Atrribut rpcinterfaces HmIp-RF und ggf. noch unter rpcport 2010 (wird aber glaube ich automatisch gesetzt, wenn unter rpcinterfaces aktiviert).

Gruß
eurofinder
RPI3+; Raspbian Buster Lite; RPI-RF-MOD; piVCCU3, HMIP-eTRV-2, HmIP-SWDO, HmIP-SRH, HmIP-STHO, HmIP-SLO

thinman

Zitat von: eurofinder am 13 Oktober 2019, 22:29:57
@thinman:
Dein HmIP-RF ist inactiv. Aktiviere mal in deinem CCU-Device unter dem Atrribut rpcinterfaces HmIp-RF und ggf. noch unter rpcport 2010 (wird aber glaube ich automatisch gesetzt, wenn unter rpcinterfaces aktiviert).

Gruß
eurofinder

Vor lauter Bäumen...  :)
Das liebe ich in FHEM. Es ist immer sehr logisch. Doof nur, wenn der eigene Logik nicht hinter her kommt.
Vielen Dank für die schnelle Hilfe!

saller.net

#3
Hallo, ich habe seit kurzem das gleiche Problem. Angefangen hat es damit, dass ich neue HMIP-Geräte, die ich auf meiner CCU2 (Firmware 2.59.7) angelernt habe, nicht mehr bei Fhem erkannt wurden, was auch immer ich versucht habe. Auch etliche Neustarts von fhem und CCU2 haben nix gebracht. Auffällig war, dass das ccuif reading nicht mehr existiert hatte, auch wenn ich die rpc neu gestartet habe, rpcregister all ausgeführt habe, etc. Dann hab ich mal das HMCCU Device in Fhem gelöscht und neu angelegt, aber nach wie vor kein ccuif reading und bei rpcregister all kommt zwar kein Fehler, aber der rpcstate bleibt auf inactive/ok. Wenn ich dann versuche, den rpc zu starten, kommt eine Fehlermeldung Start of RPC server failed. Und im log gibt es auch immer eine Fehlermeldung  HMScript failed. http://homematic-ccu2:8181/tclrega.exe: Select timeout/error: , siehe folgender Auszug aus dem Log beim letzten Fhem restart: ich hab auch schon die timeouts für rpctimout, rpcevtimeout und ccurequtimeout auf 20 erhöht und den rpcserverport auf 2010 gesetzt, alles ohne Erfolg. Was mir noch aufgefallen ist, dass bei der CCU2 unter LanGateway nur ein Bidcos-Interface angezeigt wird, ist das normal? solte dort nicht auch ein HMIP-RF sein? Komisch ist, dass über die CCU2 alle HMIP Geräte funktionieren.

Kann mir da jemand helfen?

2021.12.10 07:03:17 1: PERL WARNING: Subroutine HMCCU_MaxHashEntries redefined at ./FHEM/88_HMCCU.pm line 10490, <$fh> line 3335.
2021.12.10 07:03:17 1: HMCCU [HomematicCCU2] CCU port 8181 is reachable
2021.12.10 07:03:17 1: HMCCU [HomematicCCU2] Initialized version 5.0 213301607
2021.12.10 07:03:17 1: HMCCU [HomematicCCU2] Initializing device
2021.12.10 07:03:21 2: HMCCU [HomematicCCU2] HMScript failed. http://homematic-ccu2:8181/tclrega.exe: Select timeout/error:
2021.12.10 07:03:21 1: HMCCU [HomematicCCU2] No RPC interfaces found on CCU homematic-ccu2
2021.12.10 07:03:21 1: Including ./log/fhem.save
2021.12.10 07:03:21 3: Alarmanlage: bad reading name 'level6")' (allowed chars: A-Za-z/\d_\.-)
2021.12.10 07:03:21 1: Messages collected while initializing FHEM:SecurityCheck:
  telnetPort is not password protected
  HABridgeApi is not password protected

Protect this FHEM installation by configuring the allowed device allowed
You can disable this message with attr global motd none

2021.12.10 07:03:21 0: HMCCU [HomematicCCU2] Scheduling post FHEM initialization tasks in 200 seconds
2021.12.10 07:03:21 3: monitoring (Temperature_monitoring) set Temperature_monitoring active
2021.12.10 07:03:21 3: monitoring (Wasserfilter_monitoring) set Wasserfilter_monitoring active
2021.12.10 07:03:21 1: usb create starting
2021.12.10 07:03:22 3: Probing CUL device /dev/ttyS0
2021.12.10 07:03:22 1: PERL WARNING: can't getattr: Input/output error at FHEM/DevIo.pm line 598.
2021.12.10 07:03:22 1: CUL: Can't open /dev/ttyS0: Input/output error
2021.12.10 07:03:22 3: Probing CUL device /dev/ttyS1


defmod HomematicCCU2 HMCCU homematic-ccu2
attr HomematicCCU2 ccuReqTimeout 20
attr HomematicCCU2 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 HomematicCCU2 ccuflags procrpc
attr HomematicCCU2 cmdIcon on:general_an off:general_aus
attr HomematicCCU2 devStateIcon .*running/OK:general_an .*inactive.*:general_aus .*:audio_rec
attr HomematicCCU2 room CCU_HM,server
attr HomematicCCU2 rpcevtimeout 20
attr HomematicCCU2 rpcinterfaces BidCos-RF,HmIP-RF
attr HomematicCCU2 rpcserver on
attr HomematicCCU2 rpcserverport 2010
attr HomematicCCU2 rpctimeout 20
attr HomematicCCU2 stateFormat rpcstate/state

setstate HomematicCCU2 inactive/Error
setstate HomematicCCU2 2021-12-10 07:03:21 rpcstate inactive
setstate HomematicCCU2 2021-12-11 08:17:32 state Error