mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
10_MAX.pm: fix toggeling state with MAXLAN
git-svn-id: https://svn.fhem.de/fhem/trunk@22176 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f95be67453
commit
9477dae28a
@ -1764,12 +1764,14 @@ sub MAX_Parse
|
|||||||
if(@args == 0)
|
if(@args == 0)
|
||||||
{
|
{
|
||||||
delete $shash->{ERROR} if(exists($shash->{ERROR}));
|
delete $shash->{ERROR} if(exists($shash->{ERROR}));
|
||||||
|
return $shash->{NAME};
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$shash->{ERROR} = join(",",@args);
|
$shash->{ERROR} = join(",",@args);
|
||||||
readingsBulkUpdate($shash, "error",$shash->{ERROR});
|
readingsBulkUpdate($shash, "error",$shash->{ERROR});
|
||||||
Log3 $shash , 3 ,"msg Type error : ". $shash->{ERROR};
|
Log3 $shash , 3 ,"msg Type error : ". $shash->{ERROR};
|
||||||
|
return $shash->{NAME};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elsif($msgtype eq "AckWakeUp")
|
elsif($msgtype eq "AckWakeUp")
|
||||||
@ -1919,7 +1921,7 @@ sub MAX_Parse
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Build state READING
|
# Build state READING
|
||||||
my $state = "waiting for data";
|
my $state = ReadingsVal($shash->{NAME}, 'state', 'waiting for data');
|
||||||
|
|
||||||
$shash->{'.desiredTemperature'} = MAX_SerializeTemperature($shash->{'.desiredTemperature'}) if($shash->{'.desiredTemperature'});
|
$shash->{'.desiredTemperature'} = MAX_SerializeTemperature($shash->{'.desiredTemperature'}) if($shash->{'.desiredTemperature'});
|
||||||
my $c = '';
|
my $c = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user