From 8c01f827bc64eed3a5557169a0980abded76b124 Mon Sep 17 00:00:00 2001 From: "klaus.schauer" <> Date: Thu, 31 Mar 2022 15:59:34 +0000 Subject: [PATCH] 10_EnOcean: EEP A5-3F-7F (Eltako_FRM60) changed git-svn-id: https://svn.fhem.de/fhem/trunk@25903 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_EnOcean.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/10_EnOcean.pm b/fhem/FHEM/10_EnOcean.pm index 4f766274e..f3fdb80b6 100755 --- a/fhem/FHEM/10_EnOcean.pm +++ b/fhem/FHEM/10_EnOcean.pm @@ -10828,7 +10828,8 @@ sub EnOcean_Parse($$) { # Direction exchange (EEP A5-13-05) my $elevation = $db[3] - 90; push @event, "3:sunElevation:$elevation"; - push @event, "3:sunAzimuth:" . hex(substr($data, 2, 4)); + #push @event, "3:sunAzimuth:" . hex(substr($data, 2, 4)); + push @event, "3:sunAzimuth:" . (($db[2] & 1) << 8 | $db[1]); my $twilight = ($elevation + 12) / 18 * 100; $twilight = 0 if ($twilight < 0); $twilight = 100 if ($twilight > 100); @@ -11162,7 +11163,7 @@ sub EnOcean_Parse($$) { my ($position, $state); # invert position $position = $db[3] == 1 ? 1 : int($db[3] / 2); - $position = 100 - $db[3]; + $position = 100 - $position; if ($position == 100) { push @event, "3:endPosition:closed"; $state = "closed";