[gelöst] Fensterkontakt lässt sich nicht pairen

Begonnen von andies, 02 März 2020, 19:05:06

Vorheriges Thema - Nächstes Thema

andies

Ich bin nach dieser Anleitung vorgegangen: https://forum.fhem.de/index.php/topic,59746.msg510982.html#msg510982
kriege aber ein Pairing nicht hin (nach dem Werksreset leuchtet die LED dauerhaft etwa 3s rot, drücke ich sie dann kurz, wird das mit wechselnden Farben und am Ende einem kurzen grünen Leuchten quittiert). Ich  habe das hier:
Internals:
   CFGFN     
   DEF        6B9763
   FUUID      5e5d2122-f33f-1115-be53-7e727bfb0dd3c41d
   IODev      WLAN_HmUART2
   LASTInputDev WLAN_HmUART2
   MSGCNT     106
   NAME       JohannFenster
   NOTIFYDEV  global
   NR         128613
   STATE      open
   TYPE       CUL_HM
   WLAN_HmUART2_MSGCNT 59
   WLAN_HmUART2_RAWMSG 050000330384416B97630000000101C8
   WLAN_HmUART2_RSSI -51
   WLAN_HmUART2_TIME 2020-03-02 19:01:39
   WLAN_HmUART_MSGCNT 47
   WLAN_HmUART_RAWMSG 0501005102A0106B9763676767020801209C210030060000
   WLAN_HmUART_RSSI -81
   WLAN_HmUART_TIME 2020-03-02 19:01:37
   chanNo     01
   lastMsg    No:03 - t:41 s:6B9763 d:000000 0101C8
   protCmdDel 8
   protLastRcv 2020-03-02 19:01:39
   protNack   4 last_at:2020-03-02 19:01:37
   protRcv    24 last_at:2020-03-02 19:01:39
   protSnd    16 last_at:2020-03-02 19:01:37
   protState  CMDs_done
   rssi_at_WLAN_HmUART cnt:11 min:-88 max:-72 avg:-78.72 lst:-81
   rssi_at_WLAN_HmUART2 cnt:21 min:-54 max:-46 avg:-51 lst:-51
   READINGS:
     2020-03-02 18:58:02   Activity        alive
     2020-03-02 19:01:37   CommandAccepted no
     2020-03-02 18:58:02   D-firmware      1.0
     2020-03-02 18:58:02   D-serialNr      PEQ2228502
     2020-03-02 19:01:36   PairedTo        0x000000
     2020-03-02 18:56:20   R-cyclicInfoMsg on
     2020-03-02 18:56:20   R-pairCentral   0x000000
     2020-03-02 18:56:20   R-sabotageMsg   on
     2020-03-02 18:56:20   R-transmDevTryMax 6
     2020-03-02 19:01:36   RegL_00.         00:00 02:00 09:01 0A:00 0B:00 0C:00 10:01 14:06
     2020-03-02 19:01:36   alive           yes
     2020-03-02 19:01:39   battery         ok
     2020-03-02 19:01:39   contact         open (to broadcast)
     2020-03-02 19:01:36   powerOn         2020-03-02 19:01:36
     2020-03-02 19:01:36   recentStateType info
     2020-03-02 19:01:36   sabotageError   on
     2020-03-02 19:01:39   state           open
     2020-03-02 19:01:39   trigger_cnt     1
     RegL_01.:
       VAL       
   helper:
     HM_CMDNR   3
     PONtest    1
     cSnd       016767676B976300040000000000,016767676B976301040000000001
     getCfgList all
     getCfgListNo ,4
     mId        00C7
     peerFriend peerAct,peerVirt
     peerIDsRaw ,00000000
     peerOpt    4:threeStateSensor
     regLst     0,1,4p
     rxType     28
     supp_Pair_Rep 0
     ack:
     expert:
       def        1
       det        1
       raw        1
       tpl        1
     io:
       newChn     +6B9763,00,00,00
       nextSend   1583172099.37577
       rxt        2
       vccu       VCCU
       p:
         6B9763
         00
         00
         00
       prefIO:
         WLAN_HmUART2
     mRssi:
       mNo        03
       io:
         WLAN_HmUART:
           -81
         WLAN_HmUART2:
           -45
           -45
     prt:
       bErr       0
       sProc      0
       sleeping   1
       rspWait:
     q:
       qReqConf   00
       qReqStat   
     regCollect:
     role:
       chn        1
       dev        1
     rssi:
       at_WLAN_HmUART:
         avg        -78.7272727272727
         cnt        11
         lst        -81
         max        -72
         min        -88
       at_WLAN_HmUART2:
         avg        -51
         cnt        21
         lst        -51
         max        -46
         min        -54
     shadowReg:
     tmpl:
Attributes:
   IODev      WLAN_HmUART2
   IOgrp      VCCU:WLAN_HmUART2
   actCycle   002:50
   actStatus  alive
   autoReadReg 4_reqStatus
   expert     251_anything
   firmware   1.0
   group      Homematic
   model      HM-SEC-SCO
   peerIDs    00000000,
   serialNr   PEQ2228502
   subType    threeStateSensor

Hat da jemand eine Idee?
FHEM 6.3 auf RaspPi4 (Raspbian:  6.6.28+; Perl: v5.36.0)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

frank

ZitatWLAN_HmUART2
du hattest doch immer schlechte latenz mit deinem wlan.
das hat sich doch sicher nicht geändert, oder?

zusätzlich auch noch "grenzwertige" rssi.

geh zum pairen und konfigurieren zu einem "guten" io.
anschliessend zum "normalen" erkennen der fensterzustände ist dein wlan dann ausreichend.
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

andies

Aber ich habe mit dem besseren gekoppelt:
WLAN_HmUART2_RSSI -51
Da ist die WLAN-Latenz auch i.O. (Bei dem ersten ist das schlecht, stimmt.)
FHEM 6.3 auf RaspPi4 (Raspbian:  6.6.28+; Perl: v5.36.0)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

frank

FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

andies

Ich hoffe, ich habe das richtig gemacht:
2020.03.02 20:12:02.043 0: HMUARTLGW WLAN_HmUART2 send: 00 08
2020.03.02 20:12:02.131 0: HMUARTLGW WLAN_HmUART2 recv: 00 040202, state 98
2020.03.02 20:12:02.133 0: HMUARTLGW WLAN_HmUART2 GetSet Ack: 02, state 98
2020.03.02 20:12:02.133 0: HMUARTLGW WLAN_HmUART2 roundtrip delay: 0.0864
2020.03.02 20:12:04.755 0: HMUARTLGW WLAN_HmUART2 recv: 01 05 00 00 50 msg: 1D 86 10 63A514 000000 0AB0EB0B3240
2020.03.02 20:12:14.802 0: HMUARTLGW WLAN_HmUART2 recv: 01 05 00 00 2B msg: 33 84 00 6B9763 000000 1000C75045513232323835303280810101
2020.03.02 20:12:14.834 0: HMUARTLGW WLAN_HmUART2 send: 01 066B9763000100
2020.03.02 20:12:14.906 0: HMUARTLGW WLAN_HmUART2 recv: 01 05 00 00 38 msg: 2E A1 12 676767 6B9763
2020.03.02 20:12:14.957 0: HMUARTLGW WLAN_HmUART2 recv: 01 040701010007FFFFFFFFFFFFFFFF, state 90
2020.03.02 20:12:14.959 0: HMUARTLGW WLAN_HmUART2 GetSet Ack: 07, state 90
2020.03.02 20:12:14.959 0: HMUARTLGW WLAN_HmUART2 added peer: 6B9763, aesChannels: FFFFFFFFFFFFFFFF
2020.03.02 20:12:14.966 0: HMUARTLGW WLAN_HmUART2 send: 01 066B9763000100
2020.03.02 20:12:15.086 0: HMUARTLGW WLAN_HmUART2 recv: 01 040701010007FFFFFFFFFFFFFFFF, state 93
2020.03.02 20:12:15.087 0: HMUARTLGW WLAN_HmUART2 GetSet Ack: 07, state 93
2020.03.02 20:12:15.088 0: HMUARTLGW WLAN_HmUART2 added peer: 6B9763, aesChannels: FFFFFFFFFFFFFFFF
2020.03.02 20:12:15.090 0: HMUARTLGW WLAN_HmUART2 send: 01 02 00 00 00 msg: 5B A0 01 676767 6B9763 00050000000000
2020.03.02 20:12:15.251 0: HMUARTLGW WLAN_HmUART2 recv: 01 05 00 00 38 msg: 2E A1 12 676767 6B9763
2020.03.02 20:12:15.541 0: HMUARTLGW WLAN_HmUART2 recv: 01 05 00 00 37 msg: 5B 80 02 676767 6B9763 00
2020.03.02 20:12:15.557 0: HMUARTLGW WLAN_HmUART2 recv: 01 05 00 00 37 msg: 2E A1 12 676767 6B9763
2020.03.02 20:12:16.232 0: HMUARTLGW WLAN_HmUART2 recv: 01 0404, state 100
2020.03.02 20:12:16.234 0: HMUARTLGW WLAN_HmUART2 can't send due to unknown problem (no response?)
2020.03.02 20:12:17.050 0: HMUARTLGW WLAN_HmUART2 send: 00 08
2020.03.02 20:12:17.232 0: HMUARTLGW WLAN_HmUART2 recv: 00 040202, state 98
2020.03.02 20:12:17.234 0: HMUARTLGW WLAN_HmUART2 GetSet Ack: 02, state 98
2020.03.02 20:12:17.234 0: HMUARTLGW WLAN_HmUART2 roundtrip delay: 0.1804
2020.03.02 20:12:19.832 0: HMUARTLGW WLAN_HmUART2 send: 01 066B9763000100
2020.03.02 20:12:20.033 0: HMUARTLGW WLAN_HmUART2 recv: 01 040701010007FFFFFFFFFFFFFFFF, state 90
2020.03.02 20:12:20.035 0: HMUARTLGW WLAN_HmUART2 GetSet Ack: 07, state 90
2020.03.02 20:12:20.035 0: HMUARTLGW WLAN_HmUART2 added peer: 6B9763, aesChannels: FFFFFFFFFFFFFFFF
2020.03.02 20:12:20.041 0: HMUARTLGW WLAN_HmUART2 send: 01 066B9763000100
2020.03.02 20:12:20.140 0: HMUARTLGW WLAN_HmUART2 recv: 01 040701010007FFFFFFFFFFFFFFFF, state 93
2020.03.02 20:12:20.142 0: HMUARTLGW WLAN_HmUART2 GetSet Ack: 07, state 93
2020.03.02 20:12:20.142 0: HMUARTLGW WLAN_HmUART2 added peer: 6B9763, aesChannels: FFFFFFFFFFFFFFFF
2020.03.02 20:12:32.059 0: HMUARTLGW WLAN_HmUART2 send: 00 08
2020.03.02 20:12:32.131 0: HMUARTLGW WLAN_HmUART2 recv: 00 040202, state 98
2020.03.02 20:12:32.133 0: HMUARTLGW WLAN_HmUART2 GetSet Ack: 02, state 98
2020.03.02 20:12:32.134 0: HMUARTLGW WLAN_HmUART2 roundtrip delay: 0.0691
2020.03.02 20:12:47.068 0: HMUARTLGW WLAN_HmUART2 send: 00 08
2020.03.02 20:12:47.132 0: HMUARTLGW WLAN_HmUART2 recv: 00 040202, state 98
2020.03.02 20:12:47.134 0: HMUARTLGW WLAN_HmUART2 GetSet Ack: 02, state 98
2020.03.02 20:12:47.134 0: HMUARTLGW WLAN_HmUART2 roundtrip delay: 0.0631
2020.03.02 20:12:51.049 0: HMUARTLGW WLAN_HmUART2 recv: 01 05 00 00 34 msg: 7F 86 10 6DD14C 000000 0AB0EC114540
2020.03.02 20:12:57.060 0: HMUARTLGW WLAN_HmUART2 recv: 01 05 00 00 1E msg: 6D 86 10 6DD143 000000 0AB0F1112E40
2020.03.02 20:13:02.076 0: HMUARTLGW WLAN_HmUART2 send: 00 08
2020.03.02 20:13:02.632 0: HMUARTLGW WLAN_HmUART2 recv: 00 040202, state 98
2020.03.02 20:13:02.634 0: HMUARTLGW WLAN_HmUART2 GetSet Ack: 02, state 98
2020.03.02 20:13:02.634 0: HMUARTLGW WLAN_HmUART2 roundtrip delay: 0.5539
2020.03.02 20:13:17.082 0: HMUARTLGW WLAN_HmUART2 send: 00 08
2020.03.02 20:13:17.133 0: HMUARTLGW WLAN_HmUART2 recv: 00 040202, state 98
2020.03.02 20:13:17.134 0: HMUARTLGW WLAN_HmUART2 GetSet Ack: 02, state 98
2020.03.02 20:13:17.134 0: HMUARTLGW WLAN_HmUART2 roundtrip delay: 0.0498
2020.03.02 20:13:24 0: HMUARTLGW WLAN_HmUART2 recv: 01 05 00 00 44 msg: 3C 86 5E 4D0FD6 000000 27C1580980D0
2020.03.02 20:13:32 0: HMUARTLGW WLAN_HmUART2 send: 00 08
2020.03.02 20:13:32 0: HMUARTLGW WLAN_HmUART2 recv: 00 040202, state 98
2020.03.02 20:13:32 0: HMUARTLGW WLAN_HmUART2 GetSet Ack: 02, state 98
2020.03.02 20:13:32 0: HMUARTLGW WLAN_HmUART2 roundtrip delay: 0.1420
2020.03.02 20:13:47 0: HMUARTLGW WLAN_HmUART2 send: 00 08
2020.03.02 20:13:47 0: HMUARTLGW WLAN_HmUART2 recv: 00 040202, state 98
2020.03.02 20:13:47 0: HMUARTLGW WLAN_HmUART2 GetSet Ack: 02, state 98
2020.03.02 20:13:47 0: HMUARTLGW WLAN_HmUART2 roundtrip delay: 0.0336
2020.03.02 20:14:01 0: HMUARTLGW WLAN_HmUART2 recv: 01 05 00 00 48 msg: 28 86 10 62FF12 000000 0AB0EA0B3A40
2020.03.02 20:14:02 0: HMUARTLGW WLAN_HmUART2 send: 00 08
2020.03.02 20:14:02 0: HMUARTLGW WLAN_HmUART2 recv: 00 040202, state 98
2020.03.02 20:14:02 0: HMUARTLGW WLAN_HmUART2 GetSet Ack: 02, state 98
2020.03.02 20:14:02 0: HMUARTLGW WLAN_HmUART2 roundtrip delay: 0.1273
2020.03.02 20:14:17 0: HMUARTLGW WLAN_HmUART2 send: 00 08
2020.03.02 20:14:17 0: HMUARTLGW WLAN_HmUART2 recv: 00 040202, state 98
2020.03.02 20:14:17 0: HMUARTLGW WLAN_HmUART2 GetSet Ack: 02, state 98
2020.03.02 20:14:17 0: HMUARTLGW WLAN_HmUART2 roundtrip delay: 0.1191
FHEM 6.3 auf RaspPi4 (Raspbian:  6.6.28+; Perl: v5.36.0)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

frank

FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

andies

Und ich glaube, ich habe noch einen zweiten Fehler gemacht: Ich habe den ersten IO nicht geschlossen, sondern offen gelassen. Nachdem ich das getan habe (und einmal neu gestartet habe), erhalte ich
PairedTo 0x676767 2020-03-02 20:43:47
Danke für die Unterstützung.

Woher kommt der lange delay Deiner Meinung nach? WLAN-Latenz? Oder ist das der schwache RSSI-Wert (beim ersten IO)?
FHEM 6.3 auf RaspPi4 (Raspbian:  6.6.28+; Perl: v5.36.0)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

frank

wenn du das reproduzieren kannst, mit einem abgeschalteten wlanhmuart, könnten die sich gegenseitig stören oder das wlan "überlasten".

du könntest die roundtripdelays jeweils 15 minuten loggen und die hmuarts zb abwechselnd anschalten.

nachbarn könnten auch das wlan "stören", oder hardware, oder ....
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html