Hauptmenü

Hilfe beim notify

Begonnen von Guest, 31 Januar 2012, 17:52:33

Vorheriges Thema - Nächstes Thema

Guest

Originally posted by: <email address deleted>

Hallo zusammen,

ich versuche verzweifelt einen notify zu hinterlegen.
Die Umgebung ist Homematic mit dem HM_LAN_Config und dem HM
Bewegungsmelder.

Folgender Notify ist hinterlegt:

HMBM01.motion:.on* {
      { fhem( "set ab10 on-for-timer 20" )}
      log 1, "Hallo" ;
}

und dieser soll das folgende Log auswerten.

2012-01-31_17:51:20 HMBM01 motion
2012-01-31_17:51:20 HMBM01 motion: on (to broadcast)
2012-01-31_17:51:21 HMBM01 brightness: 66
2012-01-31_17:51:21 HMBM01 alive
2012-01-31_17:51:21 HMBM01 cover: closed
2012-01-31_17:51:22 HMBM01 brightness: 66
2012-01-31_17:51:23 HMBM01 alive
2012-01-31_17:51:23 HMBM01 cover: open


aber leider funktioniert das einfach nicht.
Ändere ich testhalber die regexp auf das "Öffnen des Covers"
funktioniert es

HMBM01.cover:.open* {
      { fhem( "set ab10 on-for-timer 20" )}
      log 1, "Hallo" ;
}

Bitte helft mir doch weiter.

D A N K E

ach ja updatefhem habe ich gemacht.

--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com

rudolfkoenig

                                                   

> HMBM01.motion:.on* {

Entspricht:
  HMBM01.motion: on
  HMBM01.motion: onn
  HMBM01.motion: onnn
  HMBM01.motion: onnnn
  HMBM01.motion: onnnnn
  HMBM01.motion: onnnnnn

--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com

Guest

Originally posted by: <email address deleted>

Danke für den super-schnellen Hinweis.

und so ist es dann auch richtig:

HMBM01.motion:.on.* {
      { fhem( "set ab10 on-for-timer 20" )}
      log 1, "Hallo" ;
}

JAAAA * ist bei regex die Anzahl und nicht ein beliebiges Zeichen.

Danke

--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com