2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

00_HMUARTLGW.pm: only trigger VCCU when condition changed

git-svn-id: https://svn.fhem.de/fhem/trunk@12109 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgernoth 2016-09-02 07:39:47 +00:00
parent e5509428bd
commit 45b1ae73de

View File

@ -1892,15 +1892,18 @@ sub HMUARTLGW_updateCondition($)
$loadLvl = "suspended";
}
readingsBeginUpdate($hash);
readingsBulkUpdate($hash, "cond", $cond)
if (defined($cond) && $cond ne ReadingsVal($name, "cond", ""));
readingsBulkUpdate($hash, "loadLvl", $loadLvl)
if (defined($loadLvl) && $loadLvl ne ReadingsVal($name, "loadLvl", ""));
readingsEndUpdate($hash, 1);
if ((defined($cond) && $cond ne ReadingsVal($name, "cond", "")) ||
(defined($loadLvl) && $loadLvl ne ReadingsVal($name, "loadLvl", ""))) {
readingsBeginUpdate($hash);
readingsBulkUpdate($hash, "cond", $cond)
if (defined($cond) && $cond ne ReadingsVal($name, "cond", ""));
readingsBulkUpdate($hash, "loadLvl", $loadLvl)
if (defined($loadLvl) && $loadLvl ne ReadingsVal($name, "loadLvl", ""));
readingsEndUpdate($hash, 1);
my $ccu = InternalVal($name,"owner_CCU","");
CUL_HM_UpdtCentralState($ccu) if ($ccu);
my $ccu = InternalVal($name,"owner_CCU","");
CUL_HM_UpdtCentralState($ccu) if ($ccu);
}
}
sub HMUARTLGW_updateMsgLoad($$) {