2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

19_Revolt: document plausability check (Forum #71840)

git-svn-id: https://svn.fhem.de/fhem/trunk@17442 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
gernot-h 2018-09-30 20:46:01 +00:00
parent 2a3f7a8506
commit d61ad6c455

View File

@ -113,6 +113,7 @@ sub Revolt_Parse($$)
if (0 == $pf) {
$pf = 0.0001;
}
# plausability check partly taken from http://www.sknorrell.de/blog/energiemesssung-mit-revolt-nc-5462/
if (($voltage < 80) || ($freq > 65) || ($power > 3650) || ($current > 16) ||
((($power / $voltage / $pf) > 0.00999) && (0 == $current)) ||
($energydiff > $maxenergy)) {