HM-Sec-SFA-SM Alarmansteuerung nur aktiv wenn Fenster offen

Begonnen von ffdec, 21 Januar 2016, 17:30:59

Vorheriges Thema - Nächstes Thema

ffdec

Hallo, ich bin dabei, die Ansteuerung mit den F-Kontakten zu peeren und teste die Funktionen. Wie kann ich konfigurieren, dass ein gepeerter Fensterkontakt (ohne FHEM) die Sirene/das Blitzlicht bis zum Ablauf der Alarmzeiten (120/300 Sekunden) aktiv bleibt und nicht beim Schließen des Fensters nach einer Sekunde wieder abschaltet.  Anbei die regTable der Sirene und des Kontaktes.

No regs found for:

Sirene type:switch -
list:peer register         :value
   1:      sign             :on
   1:      transmitTryMax   :6
                       T_Schuppen_chn-01               
                       lg              sh             
ActionType             jmpToTarget     jmpToTarget     
CtDlyOff               geLo            geLo           
CtDlyOn                geLo            geLo           
CtOff                  geLo            geLo           
CtOn                   geLo            geLo           
CtValHi                100             100             
CtValLo                50              50             
MultiExec              on              off             
OffDly            [s]  0               0               
OffTime                unused          unused         
OffTimeMode            absolut         absolut         
OnDly             [s]  0               0               
OnTime            [s]  120             120             
OnTimeMode             absolut         absolut         
SwJtDlyOff             off             off             
SwJtDlyOn              on              on             
SwJtOff                dlyOn           dlyOn           
SwJtOn                 dlyOff          dlyOff         


list:         register | range              | peer     | description
   1: sign             |     literal        |          | signature (AES) options:on,off
   1: transmitTryMax   |   1 to 10          |          | max message re-transmit
   3: lgActionType     |     literal        | required |  options:toggleToCnt,jmpToTarget,off,toggleToCntInv
   3: lgCtDlyOff       |     literal        | required | Jmp on condition from delayOff options:geLo,ltLo,outside,between,ltHi,geHi
   3: lgCtDlyOn        |     literal        | required | Jmp on condition from delayOn options:geLo,ltLo,outside,between,geHi,ltHi
   3: lgCtOff          |     literal        | required | Jmp on condition from off options:ltHi,geHi,between,outside,ltLo,geLo
   3: lgCtOn           |     literal        | required | Jmp on condition from on options:between,geHi,ltHi,geLo,outside,ltLo
   3: lgCtValHi        |   0 to 255         | required | Condition value high for CT table
   3: lgCtValLo        |   0 to 255         | required | Condition value low for CT table
   3: lgMultiExec      |     literal        | required | execution per repeat message options:on,off
   3: lgOffDly         |   0 to 111600s     | required | off delay
   3: lgOffTime        |   0 to 111600s     | required | off time special:unused
   3: lgOffTimeMode    |     literal        | required | off time meant absolut or at least options:absolut,minimal
   3: lgOnDly          |   0 to 111600s     | required | on delay
   3: lgOnTime         |   0 to 111600s     | required | on time special:unused
   3: lgOnTimeMode     |     literal        | required | on time meant absolut or at least options:absolut,minimal
   3: lgSwJtDlyOff     |     literal        | required | Jump from delayOff options:on,off,dlyOff,no,dlyOn
   3: lgSwJtDlyOn      |     literal        | required | Jump from delayOn options:dlyOff,no,dlyOn,on,off
   3: lgSwJtOff        |     literal        | required | Jump from off options:dlyOff,no,dlyOn,on,off
   3: lgSwJtOn         |     literal        | required | Jump from on options:off,on,dlyOn,no,dlyOff
   3: shActionType     |     literal        | required |  options:toggleToCnt,jmpToTarget,off,toggleToCntInv
   3: shCtDlyOff       |     literal        | required | Jmp on condition from delayOff options:geLo,ltLo,outside,between,ltHi,geHi
   3: shCtDlyOn        |     literal        | required | Jmp on condition from delayOn options:geLo,ltLo,outside,between,geHi,ltHi
   3: shCtOff          |     literal        | required | Jmp on condition from off options:ltHi,geHi,between,outside,ltLo,geLo
   3: shCtOn           |     literal        | required | Jmp on condition from on options:between,geHi,ltHi,geLo,outside,ltLo
   3: shCtValHi        |   0 to 255         | required | Condition value high for CT table
   3: shCtValLo        |   0 to 255         | required | Condition value low for CT table
   3: shMultiExec      |     literal        | required | reg unused, placeholder only options:on,off
   3: shOffDly         |   0 to 111600s     | required | off delay
   3: shOffTime        |   0 to 111600s     | required | off time special:unused
   3: shOffTimeMode    |     literal        | required | off time meant absolut or at least options:absolut,minimal
   3: shOnDly          |   0 to 111600s     | required | on delay
   3: shOnTime         |   0 to 111600s     | required | on time special:unused
   3: shOnTimeMode     |     literal        | required | on time meant absolut or at least options:absolut,minimal
   3: shSwJtDlyOff     |     literal        | required | Jump from delayOff options:on,off,dlyOff,no,dlyOn
   3: shSwJtDlyOn      |     literal        | required | Jump from delayOn options:dlyOff,no,dlyOn,on,off
   3: shSwJtOff        |     literal        | required | Jump from off options:dlyOff,no,dlyOn,on,off
   3: shSwJtOn         |     literal        | required | Jump from on options:off,on,dlyOn,no,dlyOff



No regs found for:

T_Schuppen type:threeStateSensor -
list:peer register         :value
   0:      cyclicInfoMsg    :on
   0:      pairCentral      :0x000000
   0:      sabotageMsg      :on
   0:      transmDevTryMax  :6
   1:      eventDlyTime     :0 s
   1:      msgScPosA        :open
   1:      msgScPosB        :closed
   1:      sign             :on
   1:      transmitTryMax   :6
   4:Blitzer expectAES        :off
   4:Blitzer peerNeedsBurst   :off
   4:Sirene expectAES        :off
   4:Sirene peerNeedsBurst   :off


list:         register | range              | peer     | description
   0: cyclicInfoMsg    |     literal        |          | cyclic message options:on_100,off,on
   0: localResDis      |     literal        |          | local reset disable options:on,off
   0: pairCentral      |   0 to 16777215    |          | pairing to central
   0: sabotageMsg      |     literal        |          | enable sabotage message options:off,on
   0: transmDevTryMax  |   1 to 10          |          | max message re-transmit
   1: eventDlyTime     |   0 to 7620s       |          | filters short events, causes reporting delay
   1: ledOnTime        |   0 to 1.275s      |          | LED ontime
   1: msgScPosA        |     literal        |          | Message for position A options:open,noMsg,closed
   1: msgScPosB        |     literal        |          | Message for position B options:open,closed,noMsg
   1: sign             |     literal        |          | signature (AES) options:on,off
   1: transmitTryMax   |   1 to 10          |          | max message re-transmit
   4: expectAES        |     literal        | required | expect AES options:on,off
   4: peerNeedsBurst   |     literal        | required | peer expects burst options:off,on
HMUARTLGW HMLAN Alarmanlage ZPumpe VCONTROL Viessmann 333-F MySensors CO2 Floorplan IT Raspberry 3 CC1101 Firmata Arduino nanoCUL868

frank

bei short nur auf trigger im zustand off reagieren, um dann nach on zu springen.
SwJtDlyOff              no
SwJtDlyOn              no
SwJtOff                  on
SwJtOn                  no
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

ffdec

HMUARTLGW HMLAN Alarmanlage ZPumpe VCONTROL Viessmann 333-F MySensors CO2 Floorplan IT Raspberry 3 CC1101 Firmata Arduino nanoCUL868

ffdec

Kann man das nicht vereinfachen. Das ist ja eine ganz schöne Friggelei...
HMUARTLGW HMLAN Alarmanlage ZPumpe VCONTROL Viessmann 333-F MySensors CO2 Floorplan IT Raspberry 3 CC1101 Firmata Arduino nanoCUL868

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

ffdec

#5
Ich krieg die beiden Kanäle nicht gepeert. Im FK stehen Blitzer und Sirene als gepeert aber leider auf der Gegenseite nur einer von beiden. Im Blitzer fehlen jede Mengen Kommunikations-Details. Woran liegt das?

Beim Peeren habe ich die Anlerntaste nach CMD-Pending gedrückt.

set FK peerChan 0 Blitzer single set
set FK peerChan 0 Sirene single set

HMUARTLGW HMLAN Alarmanlage ZPumpe VCONTROL Viessmann 333-F MySensors CO2 Floorplan IT Raspberry 3 CC1101 Firmata Arduino nanoCUL868

frank

ZitatIm Blitzer fehlen jede Mengen Kommunikations-Details.
was meinst du genau, ich habe so ein teil nicht. poste mal je ein list von allen channels und dem device.
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

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

ffdec

Internals:
   DEF        2F123A01
   NAME       Sirene
   NR         185
   NTFY_ORDER 50-Sirene
   STATE      off
   TYPE       CUL_HM
   chanNo     01
   device     BlitzSireneSteuerung
   peerList   F_GastL,
   Readings:
     2016-01-21 21:17:16   CommandAccepted yes
     2016-01-21 21:22:32   R-F_GastL_chn-01-lgActionType jmpToTarget
     2016-01-21 21:22:32   R-F_GastL_chn-01-shActionType jmpToTarget
     2016-01-21 20:23:56   R-sign          on
     2016-01-21 21:22:29   RegL_01.          08:01 30:06 00:00
     2016-01-21 21:22:32   RegL_03.F_GastL_chn-01  02:00 03:00 04:32 05:64 06:00 07:82 08:00 09:FF 0A:01 0B:14 0C:63 82:00 83:00 84:32 85:64 86:00 87:82 88:00 89:FF 8A:21 8B:14 8C:63 00:00
     2016-01-21 21:17:16   deviceMsg       off (to LAN)
     2016-01-21 21:17:16   level           0
     2016-01-21 21:17:16   pct             0
     2016-01-21 21:22:30   peerList        F_GastL,
     2016-01-21 21:17:16   recentStateType ack
     2016-01-21 21:17:16   state           off
     2016-01-21 21:17:16   timedOn         off
     2016-01-22 08:05:16   trigLast        F_Bad:closed
     2016-01-22 08:05:16   trig_F_Bad      closed
     2016-01-21 20:44:53   trig_F_GastL    closed
     2016-01-21 21:46:19   trig_T_Schuppen open
   Helper:
     dlvlCmd    ++A01161265B2F123A0201000000
     peerIDsRaw ,3D120001,00000000
     Expert:
       def        1
       det        0
       raw        1
       tpl        0
     Role:
       chn        1
     Shadowreg:
   Nb:
     cnt        1
   Role:
Attributes:
   aesCommReq 1
   alarmDevice Actor
   alarmSettings |||
   model      HM-SEC-SFA-SM
   peerIDs    00000000,3D120001,
   webCmd     statusRequest:toggle:on:off




Internals:
   DEF        2F123A02
   NAME       Blitzer
   NR         187
   NTFY_ORDER 50-Blitzer
   STATE      off
   TYPE       CUL_HM
   chanNo     02
   device     BlitzSireneSteuerung
   Readings:
     2016-01-21 21:31:10   R-sign          on
     2016-01-22 07:10:26   RegL_01.          08:01 30:06 00:00
     2016-01-21 21:36:52   deviceMsg       off (to LAN)
     2016-01-21 21:36:52   level           0
     2016-01-21 21:36:52   pct             0
     2016-01-21 21:36:52   recentStateType info
     2016-01-21 21:36:52   state           off
     2016-01-21 21:36:52   timedOn         off
     2016-01-21 21:46:19   trigLast        T_Schuppen:open
     2016-01-21 21:46:19   trig_T_Schuppen open
   Helper:
     dlvlCmd    ++A01161265B2F123A0202000000
     peerIDsRaw ,00000000
     Expert:
       def        1
       det        0
       raw        1
       tpl        0
     Role:
       chn        1
     Shadowreg:
   Nb:
     cnt        4
   Role:
Attributes:
   aesCommReq 1
   alarmDevice Actor
   alarmSettings alarm0,|set Blitzer on|set Blitzer off|1
   model      HM-SEC-SFA-SM
   peerIDs    00000000,
   webCmd     statusRequest:toggle:on:off



Internals:
   DEF        2F123A
   IODev      LAN
   LAN_MSGCNT 256
   LAN_RAWMSG R67F48FCB,0041,2896878C,01,FFD2,C0A0102F123A61265B0100000000
   LAN_RSSI   -46
   LAN_TIME   2016-01-22 07:10:27
   LASTInputDev LAN
   MSGCNT     256
   NAME       BlitzSireneSteuerung
   NR         182
   NTFY_ORDER 50-BlitzSireneSteuerung
   STATE      CMDs_done
   TYPE       CUL_HM
   channel_01 Sirene
   channel_02 Blitzer
   lastMsg    No:C0 - t:10 s:2F123A d:61265B 0100000000
   protCmdDel 9
   protEvt_AESCom-ok 69 last_at:2016-01-22 07:10:27
   protLastRcv 2016-01-22 07:10:27
   protNack   1 last_at:2016-01-22 07:09:44
   protResnd  24 last_at:2016-01-22 07:10:20
   protResndFail 8 last_at:2016-01-22 07:10:25
   protSnd    125 last_at:2016-01-22 07:10:27
   protState  CMDs_done
   rssi_LAN   lst:-56 max:-48 avg:-48.5 min:-56 cnt:22
   rssi_T_Schuppen max:-52 lst:-53 avg:-58.61 cnt:18 min:-79
   rssi_at_LAN max:-44 lst:-46 avg:-45.04 cnt:118 min:-52
   Readings:
     2016-01-22 07:09:44   CommandAccepted no
     2016-01-21 21:36:54   D-firmware      1.3
     2016-01-21 21:36:54   D-serialNr      LEQ0801332
     2016-01-21 20:55:42   PairedTo        0x61265B
     2016-01-19 20:18:00   R-batDefectLimit 0.5 Ohm
     2016-01-19 20:18:00   R-cyclicInfoMsg on
     2016-01-19 20:18:00   R-lowBatLimit   10.5 V
     2016-01-21 20:55:42   R-pairCentral   0x61265B
     2016-01-19 20:18:00   R-sabotageMsg   on
     2016-01-21 20:55:42   RegL_00.        02:01 09:01 0A:61 0B:26 0C:5B 10:01  12:69 13:32 14:06 00:00
     2016-01-22 07:10:27   aesCommToDev    ok
     2016-01-22 07:09:44   aesKeyNbr       00
     2016-01-21 21:36:52   battery         ok
     2016-01-21 21:36:52   powerError      off
     2016-01-21 20:03:23   powerOn         2016-01-21 20:03:23
     2016-01-21 21:36:52   sabotageError   off
     2016-01-22 07:10:27   state           CMDs_done
   Helper:
     HM_CMDNR   192
     cSnd       0161265B2F123A02040000000001,0161265B2F123A0203
     mId        0050
     rxType     1
     Expert:
       def        1
       det        0
       raw        1
       tpl        0
     Io:
       newChn     +2F123A,01,01,06
       nextSend   1453443027.04975
       prefIO
       rxt        0
       vccu
       p:
         2F123A
         01
         01
         06
     Mrssi:
       mNo        C0
       Io:
         LAN        -44
     Prt:
       bErr       0
       sProc      0
       Rspwait:
     Q:
       qReqConf
       qReqStat
     Role:
       dev        1
       prs        1
     Rpt:
       IO         LAN
       flg        A
       ts         1453443027.33537
       ack:
         HASH(0x3fbb758)
         C0800261265B2F123A00
     Rssi:
       Lan:
         avg        -48.5
         cnt        22
         lst        -56
         max        -48
         min        -56
       T_schuppen:
         avg        -58.6111111111111
         cnt        18
         lst        -53
         max        -52
         min        -79
       At_lan:
         avg        -45.0423728813559
         cnt        118
         lst        -46
         max        -44
         min        -52
     Shadowreg:
   Role:
Attributes:
   IODev      LAN
   aesCommReq 1
   autoReadReg 4_reqStatus
   expert     2_raw
   firmware   1.3
   model      HM-SEC-SFA-SM
   room       CUL_HM,Hendrik
   serialNr   LEQ0801332
   subType    switch
   webCmd     getConfig:clear msgEvents

HMUARTLGW HMLAN Alarmanlage ZPumpe VCONTROL Viessmann 333-F MySensors CO2 Floorplan IT Raspberry 3 CC1101 Firmata Arduino nanoCUL868

frank

falls der blitzer noch im fk eingetragen ist, probiere jetzt mal, eventuell auch öfter:

set FK peerChan 0 Blitzer single set actor

wenn es nicht funktioniert, sniffe es, wie im wiki homematic sniffen beschrieben.
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

ffdec

Hab grad Reset, Pairing probiert. Verbindung ist erst mal da. Jetzt hat auch das Peeren gefunkt.... Die Blitzer war einfach ...
HMUARTLGW HMLAN Alarmanlage ZPumpe VCONTROL Viessmann 333-F MySensors CO2 Floorplan IT Raspberry 3 CC1101 Firmata Arduino nanoCUL868

ffdec

#11
Wie geht man beim Peeren vor i. V. m. AES-Signierung (Reihenfolge)?

1. peerChan
2. assignHmKey
3. Sign
4. expectAES
5. aesCommReq

Irgendwie komme ich nicht auf den grünen Zweig....
Jetzt scheinbar doch... dem Steuerteil hat der Key gefehlt...
HMUARTLGW HMLAN Alarmanlage ZPumpe VCONTROL Viessmann 333-F MySensors CO2 Floorplan IT Raspberry 3 CC1101 Firmata Arduino nanoCUL868

ffdec

#12
Nächste Schwierigkeit: Template - Was mache ich wieder falsch ...

set hm templateDef t1 SwJtDlyOff:no SwJtDlyOn:no SwJtOff:on SwJtOn:no
set hm templateSet Blitzer t1 T_Schuppen_chn-01:short


2016.01.22 21:06:28 3: CUL_HM set Blitzer regSet prep shSwJtOn no T_Schuppen_chn-01
2016.01.22 21:06:28 3: CUL_HM set Blitzer regSet prep shSwJtDlyOn no T_Schuppen_chn-01
2016.01.22 21:06:28 3: CUL_HM set Blitzer regSet prep shSwJtOff on T_Schuppen_chn-01
2016.01.22 21:06:28 3: CUL_HM set Blitzer regSet exec shSwJtOn no T_Schuppen_chn-01
2016.01.22 21:06:32 3: CUL_HM set Blitzer getConfig


No regs found for:

Blitzer type:switch -
list:peer register         :value
   1:      sign             :on
   1:      transmitTryMax   :6
                       T_Schuppen_chn-01               
                       lg              sh             
ActionType             jmpToTarget     jmpToTarget     
CtDlyOff               geLo            geLo           
CtDlyOn                geLo            geLo           
CtOff                  geLo            geLo           
CtOn                   geLo            geLo           
CtValHi                100             100             
CtValLo                50              50             
MultiExec              on              off             
OffDly            [s]  0               0               
OffTime                unused          unused         
OffTimeMode            absolut         absolut         
OnDly             [s]  0               0               
OnTime            [s]  300             300             
OnTimeMode             absolut         absolut         
SwJtDlyOff             off             off             
SwJtDlyOn              on              no             
SwJtOff                dlyOn           on             
SwJtOn                 dlyOff          no             


PairedTo mismatch to IODev
    F_GastL paired:0x000000 IO attr: 61265B.
    T_Schuppen paired:0x000000 IO attr: 61265B.

template mismatch
    Blitzer T_Schuppen:short-> failed
  reg not found: SwJtDlyOn :T_Schuppen-
  reg not found: SwJtOff :T_Schuppen-
  reg not found: SwJtOn :T_Schuppen-

    Blitzer T_Schuppen_chn-01:short-> failed
  no peer:T_Schuppen_chn-01







HMUARTLGW HMLAN Alarmanlage ZPumpe VCONTROL Viessmann 333-F MySensors CO2 Floorplan IT Raspberry 3 CC1101 Firmata Arduino nanoCUL868

martinp876

Scheint an ch01 zu liegen. Muss ich prüfen, die impliziten channels sind möglich. Ein Problem, mal sehen

ffdec

Beim manuellen Setzen mit regSet hat es jedenfalls ordentlich funktioniert.
HMUARTLGW HMLAN Alarmanlage ZPumpe VCONTROL Viessmann 333-F MySensors CO2 Floorplan IT Raspberry 3 CC1101 Firmata Arduino nanoCUL868