hi,
sorry fürs crossposting, aber ich komme einfach nicht weiter.
Ich "arbeite" mit dem Modul von Dirk, RasperyPi + LCD + CSM / RS485 Platine = "FHEM-Zentrale" , siehe : Link (http://forum.fhem.de/index.php?topic=12854.0)
Definert habe ich
fhem> list left_button_short
Internals:
CFGFN
DEF rpiLCD.BTN_LEFT:.Pressed {fhem("set rpiLCD_LED3 on")}
NAME left_button_short
NR 141
NTFY_ORDER 50-left_button_short
REGEXP rpiLCD.BTN_LEFT:.Pressed
STATE active
TYPE notify
Attributes:
fhem> list left_button_long
Internals:
CFGFN
DEF rpiLCD.BTN_LEFT:.Pressed_long {fhem("set rpiLCD_LED3 off")}
NAME left_button_long
NR 142
NTFY_ORDER 50-left_button_long
REGEXP rpiLCD.BTN_LEFT:.Pressed_long
STATE active
TYPE notify
Attributes:
fhem> list right_button_short
Internals:
CFGFN
DEF rpiLCD.BTN_RIGHT:.Pressed {fhem("set rpiLCD_LED1 on")}
NAME right_button_short
NR 143
NTFY_ORDER 50-right_button_short
REGEXP rpiLCD.BTN_RIGHT:.Pressed
STATE active
TYPE notify
Attributes:
fhem> list right_button_long
Internals:
CFGFN
DEF rpiLCD.BTN_RIGHT:.Pressed_long {fhem("set rpiLCD_LED1 off")}
NAME right_button_long
NR 144
NTFY_ORDER 50-right_button_long
REGEXP rpiLCD.BTN_RIGHT:.Pressed_long
STATE active
TYPE notify
Attributes:
fhem>
alles klappt wie es soll. (kurzer druck LED an, langer druck LED aus)
ändere ich aber jetzt nur einen notify zu
fhem> list right_button_short
Internals:
CFGFN
DEF rpiLCD.BTN_RIGHT:.Pressed {fhem("set rpiLCD_LED1 on") ;; system("connair privat an")}
NAME right_button_short
NR 143
NTFY_ORDER 50-right_button_short
REGEXP rpiLCD.BTN_RIGHT:.Pressed
STATE active
TYPE notify
Attributes:
fhem>
(ich möchte die led einschalten und den bash script namens "connair" mit den parametern "privat" und "an" aufrufen)
wird aus :fhem> 2013-08-11 21:01:33 dummy rpiLCD_LED1 on
2013-08-11 21:01:33 rpiLCD rpiLCD BTN_RIGHT: Pressed
2013-08-11 21:01:33 rpiLCD rpiLCD none
das hier (obwohl ich nur den rechten button drücke)
fhem> 2013-08-11 20:59:51 dummy rpiLCD_LED1 on
2013-08-11 20:59:52 rpiLCD rpiLCD BTN_RIGHT: Pressed
2013-08-11 20:59:52 dummy rpiLCD_LED3 on
2013-08-11 20:59:52 rpiLCD rpiLCD BTN_LEFT: Pressed
wo dreh ich mich denn da im kreis, das auf einmal angeblich auch LEFT gedrückt wird ?
danke
jupp