diff --git a/fhem/FHEM/00_MAXLAN.pm b/fhem/FHEM/00_MAXLAN.pm index a3f8dfbc3..f30cdf1a2 100755 --- a/fhem/FHEM/00_MAXLAN.pm +++ b/fhem/FHEM/00_MAXLAN.pm @@ -434,7 +434,7 @@ MAXLAN_Parse($$) Dispatch($hash, "MAX,define,$addr,$device_types{$devicetype},$serial,$groupid", {RAWMSG => $rmsg}); if($len != length($bindata)) { - Log 1, "Invalid C: response, len does not match"; + Dispatch($hash, "MAX,Error,$addr,Parts of configuration are missing", {RAWMSG => $rmsg}); return "Invalid C: response, len does not match"; } diff --git a/fhem/FHEM/10_MAX.pm b/fhem/FHEM/10_MAX.pm index 6895f3bcd..1a192a025 100755 --- a/fhem/FHEM/10_MAX.pm +++ b/fhem/FHEM/10_MAX.pm @@ -289,8 +289,8 @@ MAX_Parse($$) my $connected = $args[0]; readingsSingleUpdate($shash,"connection",$connected,0); - } elsif($msgtype eq "HeatingThermostatConfig") { + } elsif($msgtype eq "HeatingThermostatConfig") { $shash->{ecoTemperature} = $args[0]; $shash->{comfortTemperature} = $args[1]; $shash->{boostValveposition} = $args[2]; @@ -300,6 +300,12 @@ MAX_Parse($$) $shash->{minimumTemperature} = $args[6]; $shash->{windowOpenTemperature} = $args[7]; $shash->{windowOpenDuration} = $args[8]; + + } elsif($msgtype eq "Error") { + $shash->{ERROR} = join(",",$args[0]); + + } else { + Log 1, "MAX_Parse: Unknown message $msgtype"; } #Build $shash->{STATE}