2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

98_readingsWatcher.pm: add AND / OR for readings

git-svn-id: https://svn.fhem.de/fhem/trunk@20957 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Wzut 2020-01-12 18:37:37 +00:00
parent d2b97648dd
commit 20d19b003c

View File

@ -358,8 +358,8 @@ sub OnTimer($)
{
push @devices, $deviceName if !grep {/$deviceName/} @devices; # keine doppelten Namen
$or_and = 1 if (index($_,'+') != -1); # Readings beim auswerten AND
$_ =~ s/\+/,/g; # eventuell vorhandene + auch in Komma wandeln
$or_and = 1 if (index($rSA,'+') != -1); # Readings beim auswerten AND
$rSA =~ s/\+/,/g ; # eventuell vorhandene + auch in Komma wandeln
# rSA: timeout, errorValue, reading1, reading2, reading3, ...
# 120,---,temperature,humidity,battery