FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: roedert am 19 Mai 2018, 03:15:50

Titel: FILTER=xxx in einem notify nutzen?
Beitrag von: roedert am 19 Mai 2018, 03:15:50
Ich versuche gerade in einem notify die Filter Funktion zu nutzen....

def my_notify notify TYPE=dummy:FILTER=comment=PoEdummydevice:(on|off) ......
def my_notify notify (TYPE=dummy:FILTER=comment=PoEdummydevice):(on|off) ......
def my_notify notify .*:FILTER=TYPE=dummy:FILTER=comment=PoEdummydevice:(on|off) ......
def my_notify notify (.*:FILTER=TYPE=dummy:FILTER=comment=PoEdummydevice):(on|off) ......


reagiert alles nicht auf die ausgelösten Events. In einem list zeigt der Device-Ausdruck jedoch alle gewünschten devices korrekt an.

Wird eine solche FILTER-Funktion im Notify generell nicht unterstützt?
Titel: Antw:FILTER=xxx in einem notify nutzen?
Beitrag von: CoolTux am 19 Mai 2018, 06:46:06
Zitat von: roedert am 19 Mai 2018, 03:15:50

Wird eine solche FILTER-Funktion im Notify generell nicht unterstützt?
Nein wird sie nicht. An dieser Stelle gehört eine RegEx.