FILTER=xxx in einem notify nutzen?

Begonnen von roedert, 19 Mai 2018, 03:15:50

Vorheriges Thema - Nächstes Thema

roedert

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?

CoolTux

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.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net