FHEM Forum

FHEM => fhem-users => Thema gestartet von: Guest am 25 Januar 2009, 03:39:37

Titel: [FHZ] hilfe zu on-for-timer
Beitrag von: Guest am 25 Januar 2009, 03:39:37
Originally posted by: <email address deleted>

Hallo,

wer kann mir helfen?

Wenn ein Erschütterungssensor anspricht, soll für 15 Minuten
ein "Achtungssignal" gesetzt werden und eine Warnung ausgegeben
werden.

Dazu habe ich folgendes in die cfg geschrieben.

Funktioniert aber nicht!

#####
define Achtung FS20 0002 02      # type dummy
attr Achtung loglevel 6
attr Achtung model fs20   

define achtung_on notify Achtung:on {\
       if($value{Alarm} ne "off") {\
         fhem("set text.1 on");;\
         fhem("set text.2 off");;\
         fhem("set text.3 off");;\
         fhem("set text.4 off");;\
       }\
}


define es.ez FS20 250d 00      # Erschütterungssensor
attr es.ez loglevel 6
attr es.ez model fs20es1
attr es.ez showtime


define Achtung_ez notify es.ez:on set Achtung on-for-timer 15
define Achtung_et notify es.et:on set Achtung on-for-timer 15
...
#####

Der Erschütterungssensor löst nicht das "on-for-timer" aus.
Setze ich "Achtung on-for-timer 15" so funktioniert die Abfrage
...notifiy Achtung:on... nicht.


MfG
Ingo



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHZ1000 users on Linux" group.
To post to this group, send email to FHZ1000-users-on-unix@googlegroups.com
To unsubscribe from this group, send email to FHZ1000-users-on-unix+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/FHZ1000-users-on-unix?hl=en
-~----------~----~----~----~------~----~------~--~-