From c788d862fa3ceae9b582421d9fee68f05f9e8154 Mon Sep 17 00:00:00 2001 From: telekatz <> Date: Sat, 6 Feb 2016 11:57:04 +0000 Subject: [PATCH] 30_DUOFERN: fix Wandtaster and wind value git-svn-id: https://svn.fhem.de/fhem/trunk@10736 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/30_DUOFERN.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/30_DUOFERN.pm b/fhem/FHEM/30_DUOFERN.pm index 32765c9e0..2ca2786c5 100644 --- a/fhem/FHEM/30_DUOFERN.pm +++ b/fhem/FHEM/30_DUOFERN.pm @@ -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;