FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: Hos am 26 März 2020, 18:02:11

Titel: GPIO Switch notify longpress
Beitrag von: Hos am 26 März 2020, 18:02:11
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
Titel: Antw:GPIO Switch notify longpress
Beitrag von: Byte09 am 26 März 2020, 18:03:55
schon probiert ?

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

gruss Byte09


Titel: Antw:GPIO Switch notify longpress
Beitrag 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

Titel: Antw:GPIO Switch notify longpress
Beitrag von: Byte09 am 26 März 2020, 18:09:00
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
Titel: Antw:GPIO Switch notify longpress
Beitrag von: Hos am 26 März 2020, 18:17:13
habs schon rausgefunden
Funktioniert folgendermaßen:

GPIO3_switch:Longpress:.on set GPIO1 on

Danke