FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: Porsti am 17 Februar 2016, 09:52:18

Titel: Device verbinden/bekannt machen
Beitrag von: Porsti am 17 Februar 2016, 09:52:18
Hi,

ich habe Homematic Fensterkontakte und die Rolladensteuerung ist über EnOcean.
Jetzt mein Aktuelles problem:

Ich möchte sobald ein Fenster geöffnet wird das entsprechende Rollo anteuern.
Ich möchte gerne vermeinden das ich da für jedes Fenster ein DOIF bauen.
Es wäre optimal wenn ich diese Devices irgendwie bekannt machen könnte, nur habe ich keine Idee wie ich das anstellen soll.

Hier mal die Geräte die auch zusammen gehören.

Fensterkontakt Gäste-WC:

Internals:
   CHANGED
   CUL_0_MSGCNT 2
   CUL_0_RAWMSG A0DCF861038BEB100000006010000::-43:CUL_0
   CUL_0_RSSI -43
   CUL_0_TIME 2016-02-17 09:39:24
   DEF        xxxxxx
   IODev      CUL_0
   LASTInputDev CUL_0
   MSGCNT     2
   NAME       HM_xxxxxxx
   NR         341
   NTFY_ORDER 50-HM_xxxxxx
   STATE      closed
   TYPE       CUL_HM
   lastMsg    No:CF - t:10 s:38BEB1 d:000000 06010000
   protCmdPend 3 CMDs pending
   protLastRcv 2016-02-17 09:39:24
   protResnd  2 last_at:2016-02-17 09:39:26
   protSnd    2 last_at:2016-02-17 09:39:24
   protState  CMDs_pending
   rssi_at_CUL_0 avg:-42.5 min:-43 max:-42 lst:-43 cnt:2
   Readings:
     2016-02-17 09:43:48   Activity        alive
     2016-02-09 18:38:35   CommandAccepted yes
     2016-02-09 18:38:33   D-firmware      1.0
     2016-02-09 18:38:33   D-serialNr      MEQ0172xxx
     2016-02-04 16:02:19   R-pairCentral   set_0x000000
     2016-02-09 18:38:35   aesKeyNbr       00
     2016-02-17 09:39:24   alive           yes
     2016-02-17 09:39:24   battery         ok
     2016-02-17 09:39:24   contact         closed (to broadcast)
     2016-01-18 10:56:40   powerOn         2016-01-18 10:56:40
     2016-02-17 09:39:24   recentStateType info
     2016-02-09 18:38:35   sabotageAttackId_ErrIoId_2E778F cnt:3
     2016-02-09 18:38:35   sabotageAttack_ErrIoAttack cnt 3
     2016-02-17 09:39:24   sabotageError   off
     2016-02-17 09:39:24   state           closed
     2016-01-31 13:58:01   trigDst_broadcast noConfig
     2016-02-12 15:31:11   trigger_cnt     94
   cmdStack:
     ++A001F1103438BEB100040000000000
     ++A001F1103438BEB101040000000001
     ++A001F1103438BEB10103
   Helper:
     HM_CMDNR   207
     getCfgList all
     getCfgListNo ,4
     mId        00C7
     rxType     28
     Expert:
       def        1
       det        0
       raw        1
       tpl        0
     Io:
       newChn     +38BEB1,02,00,00
       nextSend   1455698364.11684
       prefIO
       rxt        2
       vccu
       p:
         xxxxxxx
         00
         00
         00
     Mrssi:
       mNo        CF
       Io:
         CUL_0      -41
     Prt:
       bErr       0
       sProc      2
       wuReSent   3
     Q:
       qReqConf
       qReqStat
     Role:
       chn        1
       dev        1
     Rssi:
       At_cul_0:
         avg        -42.5
         cnt        2
         lst        -43
         max        -42
         min        -43
Attributes:
   IODev      CUL_0
   actCycle   000:50
   actStatus  alive
   alias      Fenster Gäste WC
   autoReadReg 4_reqStatus
   devStateIcon closed:fts_window_1w@66FF00 open:fts_window_1w_open@FF4D33
   event-on-change-reading state
   expert     2_full
   firmware   1.0
   fp_Erdgeschoss 421,195,5,,
   group      EG
   model      HM-SEC-SCo
   room       Fenster / Tür
   serialNr   xxxxxx
   subType    threeStateSensor
   userattr   Status Status_map structexclude


Rollo Gäste-WC:

Internals:
   DEF        00000006
   IODev      TCM120
   LASTInputDev TCM120
   MSGCNT     4
   NAME       EnO_00000006
   NR         173
   NTFY_ORDER 50-EnO_00000006
   STATE      0
   TCM120_MSGCNT 4
   TCM120_TIME 2016-02-17 09:11:00
   TYPE       EnOcean
   Readings:
     2016-02-17 09:11:00   anglePos        0
     2016-02-17 09:11:00   block           unlock
     2016-02-17 09:11:00   endPosition     open
     2016-02-17 09:11:00   position        0
     2016-02-17 09:11:00   state           open
   Helper:
Attributes:
   IODev      TCM120
   alias      Gäste WC
   comMode    confirm
   devStateIcon 100:fts_shutter_100 0:fts_window_2w 9\d.*:fts_shutter_90 8\d.*:fts_shutter_80 7\d.*:fts_shutter_70 6\d.*:fts_shutter_60 5\d.*:fts_shutter_50 4\d.*:fts_shutter_40 3\d.*:fts_shutter_30 2\d.*:fts_shutter_20 1\d.*:fts_shutter_10 \d.*:fts_shutter_10
   eep        F6-02-01
   event-on-change-reading state
   eventMap   opens:Auf closes:Ab stop:Stop
   fp_Erdgeschoss 421,237,0,,
   group      EG
   manufID    00D
   model      FSB14
   room       Rolläden
   shutTime   15
   shutTimeCloses 21
   stateFormat position
   subDef     00110006
   subType    manufProfile
   userattr   Status Status_map structexclude
   verbose    1
   webCmd     Auf:Stop:Ab


Würde gerne auf das Triggern eines Fensterkontaktes reagieren und das entsprechnende Rollo eine Aktion ausführen.

Gruß
Porsti
Titel: Antw:Device verbinden/bekannt machen
Beitrag von: Puschel74 am 17 Februar 2016, 11:04:17
EnOcean und Homematic kannst du nur über notify oder DOIF untereinander "bekannt" machen.

Für jedes Fenster ein eigenes notify/DOIF kannst du vermeiden indem du die Namensgebung der Geräte klug wählst.

Zu deinem Fensterkontakt - er ist nicht gepairt.
000000 als HMID ist lt. Wiki nicht zulässig.
xxxx im list sind kontraproduktiv da die Helfer nicht beurteilen können ob alles geklappt hat.
Sicherheitsgewinn durch x-en hast du keinen.

Also erstmal die Geräte korrekt mit FHEM pairen und dann Gedanken über die Namen machen und dann am notify/DOIF tüfteln.