FHEM Forum

FHEM => Automatisierung => DOIF => Thema gestartet von: Maui am 24 Mai 2019, 10:35:06

Titel: Regex auf mehrere Readings
Beitrag von: Maui am 24 Mai 2019, 10:35:06
Moin.

Ich habe mir ein DOIF gebastelt, welches für ein Reading funktioniert.

defmod di_unifi_olds DOIF ( [myunifi:Galaxy-S6__f_last_seen_duration:"(\d?\d)d?"] > 2 ) (set telebot message wlan alt)


Allerdings hätte ich das gerne so erweitert, dass alle Readings, welche mit f_last_seen_duration enden, triggern und überprüft werden.
Geht das zu kombinieren in einem DOIF?
Das Reading sieht in etwa so aus:

0d 0h 0m 7s


Vielleicht hat ja einer einen Anstoß.
Danke schonmal.

Gruß
Maui
Titel: Antw:Regex auf mehrere Readings
Beitrag von: rabehd am 24 Mai 2019, 11:00:30
Keine Idee nach Lesen der commandref zu DOIF?
https://forum.fhem.de/index.php?topic=97963.0 (https://forum.fhem.de/index.php?topic=97963.0)
https://forum.fhem.de/index.php/topic,56300.msg478712.html#msg478712 (https://forum.fhem.de/index.php/topic,56300.msg478712.html#msg478712)