2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 07:24:21 +00:00

HMCCU: Bugfix for RPC server autostart

git-svn-id: https://svn.fhem.de/fhem/trunk@12763 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
fhemzap 2016-12-13 18:27:48 +00:00
parent 833c2c30cd
commit 1f340c9227
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 88_HMCCU: Fixed RPC server autostart
- feature: 98_TRAFFIC: flexible update schedule, travelMode
- bugfix: 88_HMCCU: Wrong CCUNum
- bugfix 73_GasCalculator: Corrected hidden power average power readings

View File

@ -689,7 +689,7 @@ sub HMCCU_Notify ($$)
foreach my $event (@{$events}) {
if ($devname eq 'global') {
if ($event eq 'INITIALIZED') {
return if ($rpcserver eq 'on');
return if ($rpcserver eq 'off');
my $delay = $HMCCU_INIT_INTERVAL0;
Log3 $name, 0, "HMCCU: Start of RPC server after FHEM initialization in $delay seconds";
if ($ccuflags =~ /extrpc/) {
@ -777,7 +777,7 @@ sub HMCCU_AggregateReadings ($$)
foreach my $r (keys %{$ch->{READINGS}}) {
next if ($r !~ /$fread/);
my $rv = $ch->{READINGS}{$r}{VAL};
if (($fcond eq 'any' || $fcond eq 'all') && $rv eq $ftrue) {
if (($fcond eq 'any' || $fcond eq 'all') && $rv =~ /$ftrue/) {
$mc++;
$rl .= ($mc > 1 ? ",$fcoll" : $fcoll);
last;