GPIO Switch notify longpress

Begonnen von Hos, 26 März 2020, 18:02:11

Vorheriges Thema - Nächstes Thema

Hos

Grüß euch ihr Profis,

bin frisch dabei und möchte mittels FHEM eine Rollladensteuerung realisieren.
Ich scheitere jedoch aktuell an einem notify, der einen longpress eines switches detetkieren soll.

Versucht hab ichs folgendermaßen:
define n_GPIO3_switch_lp notify GPIO3_switch:Longpress set GPIO1 on

Der mittlere Teil "GPIO3_switch:Longpress" funktioniert leider nicht.
Hab auch schon viele andere Formen probiert.

Habt ihr da ne Lösung für mich?

Gruß
Hos

Byte09

#1
schon probiert ?

https://wiki.fhem.de/wiki/Event_monitor

gruss Byte09



Hos

Na klar.
2020-03-26 18:04:49 RPI_GPIO GPIO3_switch Longpress: on
habs auch schon probiert mit
define n_GPIO3_switch_lp notify GPIO3_switch Longpress: on set GPIO1 on


Byte09

Zitat von: Hos am 26 März 2020, 18:06:23
Na klar.
2020-03-26 18:04:49 RPI_GPIO GPIO3_switch Longpress: on
habs auch schon probiert mit
define n_GPIO3_switch_lp notify GPIO3_switch Longpress: on set GPIO1 on

hast du das notify direkt aus dem monitor angelegt ? meine auch das der ausführende teil in " {} " stehen muss, bin mir da aber nicht sicher ... ich nutze notify nicht.

gruss Byte09

Hos

habs schon rausgefunden
Funktioniert folgendermaßen:

GPIO3_switch:Longpress:.on set GPIO1 on

Danke