2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

30_DUOFERN: fix Wandtaster and wind value

git-svn-id: https://svn.fhem.de/fhem/trunk@10736 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
telekatz 2016-02-06 11:57:04 +00:00
parent 3bf9679a95
commit c788d862fa

View File

@ -996,7 +996,7 @@ DUOFERN_Parse($$)
readingsSingleUpdate($hash, "channel$group", "$button", 1);
}
} elsif ($msg =~ m/0FFF0E.{38}/) {
} elsif ($msg =~ m/0F..0E.{38}/) {
my $button = substr($msg, 6, 2);
my $group = substr($msg, 14, 2);
@ -1023,7 +1023,7 @@ DUOFERN_Parse($$)
my $sunHeight = hex(substr($msg, 16, 2)) - 90 ;
my $temperature = (hex(substr($msg, 18, 4)) & 0x7FFF)/10 - 40 ;
my $isRaining = (hex(substr($msg, 18, 4)) & 0x8000 ? 1 : 0);
my $wind = hex(substr($msg, 22, 4)) & 0x02FF;
my $wind = (hex(substr($msg, 22, 4)) & 0x03FF) / 10;
my $state = "T: ".$temperature;
$state .= " W: ".$wind;