FHEM Befehle und Shell-Datei ausführen im selben notify

2,581 views
Skip to first unread message

eppi

unread,
Oct 3, 2010, 1:36:47 AM10/3/10
to FHEM users
Hallo
Ich habe folgenden notify erstellt:

define notify_alarm notify Kuechenfenster:Window.*Open.* {if
($value{Alarm} eq "on") {fhem "set sig_Horn on"}}

Jetzt moechte ich, dass wenn der Alarm auf "on" ist, zusätzlich zum
Horn auch noch folgende Shelldatei ausführen: /usr/local/bin/alarm-
action.sh

Wer kann mir hier einen Tipp geben?

Vielen Dank!
Gruss Dani

Rudolf Koenig

unread,
Oct 3, 2010, 7:20:33 AM10/3/10
to fhem-...@googlegroups.com
> Jetzt moechte ich, dass wenn der Alarm auf "on" ist, zus�tzlich zum
> Horn auch noch folgende Shelldatei ausf�hren: /usr/local/bin/alarm-
> action.sh

define notify_alarm notify Kuechenfenster:Window.*Open.* {\
if($value{Alarm} eq "on") {\
fhem "set sig_Horn on";;\
system "/usr/local/bin/alarm-action.sh&"\
}\
}

Das & ist notwendig, sonst blockiert fhem, und aus dem alarm-action.sh kann man
keine fhem Kommandos durchfuehren.

Reply all
Reply to author
Forward
0 new messages