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

MAX: Show error in ERROR variable in FHEMWEB

git-svn-id: https://svn.fhem.de/fhem/trunk@2165 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgehre 2012-11-23 07:33:36 +00:00
parent fe00ba6619
commit 82e8a7be18
2 changed files with 8 additions and 2 deletions

View File

@ -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";
}

View File

@ -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}