mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
98_PID20.pm: add NOTIFYDEV
git-svn-id: https://svn.fhem.de/fhem/trunk@29515 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f2339538a7
commit
9c8f3b0d98
@ -200,6 +200,7 @@ sub PID20_Define($$$)
|
|||||||
return "wrong syntax: define <name> PID20 "
|
return "wrong syntax: define <name> PID20 "
|
||||||
. "<sensor>:reading:[regexp] <actor>[:cmd] ";
|
. "<sensor>:reading:[regexp] <actor>[:cmd] ";
|
||||||
}
|
}
|
||||||
|
setNotifyDev($hash,'global');
|
||||||
return if !$init_done;
|
return if !$init_done;
|
||||||
return PID20_Check($hash, $a[2], $a[3]);
|
return PID20_Check($hash, $a[2], $a[3]);
|
||||||
}
|
}
|
||||||
@ -223,6 +224,8 @@ sub PID20_Check($$$)
|
|||||||
PID20_Log $hash, 1, $msg;
|
PID20_Log $hash, 1, $msg;
|
||||||
#return $msg;
|
#return $msg;
|
||||||
$err = 1;
|
$err = 1;
|
||||||
|
} else {
|
||||||
|
setNotifyDev($hash,"global,$sensor");
|
||||||
}
|
}
|
||||||
|
|
||||||
# if reading of sender is unknown
|
# if reading of sender is unknown
|
||||||
|
Loading…
Reference in New Issue
Block a user