From 21c6e1061060520edd6637cb5a0552a307146930 Mon Sep 17 00:00:00 2001 From: LeonGaultier Date: Wed, 27 Feb 2019 20:34:46 +0000 Subject: [PATCH] 73_AutoShuttersControl: fix typo in Event RegEx for Twilight Event git-svn-id: https://svn.fhem.de/fhem/trunk@18753 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/73_AutoShuttersControl.pm | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 368c74680..c26307916 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 73_AutoShuttersControl: fix typo in Event RegEx for Twilight Event - bugfix: 73_AutoShuttersControl: fix little winrec bug then state opened (max winrec sensors) - feature: DarkSkyAPI: add demo support for FHEM demo konfiguration diff --git a/fhem/FHEM/73_AutoShuttersControl.pm b/fhem/FHEM/73_AutoShuttersControl.pm index 5521f5462..12c0dd095 100644 --- a/fhem/FHEM/73_AutoShuttersControl.pm +++ b/fhem/FHEM/73_AutoShuttersControl.pm @@ -41,7 +41,7 @@ package main; use strict; use warnings; -my $version = '0.4.0.8'; +my $version = '0.4.0.9'; sub AutoShuttersControl_Initialize($) { my ($hash) = @_; @@ -1303,14 +1303,14 @@ sub EventProcessingTwilightDevice($@) { # # Astro # SunAz = azimuth = Sonnenwinkel - # SunAlt = evaluation = Sonnenhöhe + # SunAlt = elevation = Sonnenhöhe - if ( $events =~ m#(azimuth|evaluation|SunAz|SunAlt):\s(\d+.\d+)# ) { + if ( $events =~ m#(azimuth|elevation|SunAz|SunAlt):\s(\d+.\d+)# ) { my $name = $device; my ( $azimuth, $elevation ); $azimuth = $2 if ( $1 eq 'azimuth' or $1 eq 'SunAz' ); - $elevation = $2 if ( $1 eq 'evaluation' or $1 eq 'SunAlt' ); + $elevation = $2 if ( $1 eq 'elevation' or $1 eq 'SunAlt' ); $azimuth = $ascDev->getAzimuth if ( not defined($azimuth) and not $azimuth );