From af727cd2f2d33d951ff54515267901198f695f69 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Wed, 24 Jun 2020 08:11:42 +0200 Subject: [PATCH] change shading info message to warn message --- FHEM/73_AutoShuttersControl.pm | 2 +- controls_AutoShuttersControl.txt | 12 ++++++++++++ lib/FHEM/Automation/ShuttersControl.pm | 13 +++++++------ 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/FHEM/73_AutoShuttersControl.pm b/FHEM/73_AutoShuttersControl.pm index 86475ea..637ea2a 100644 --- a/FHEM/73_AutoShuttersControl.pm +++ b/FHEM/73_AutoShuttersControl.pm @@ -1272,7 +1272,7 @@ sub Initialize { ], "release_status": "testing", "license": "GPL_2", - "version": "v0.10", + "version": "v0.10.1", "author": [ "Marko Oldenburg " ], diff --git a/controls_AutoShuttersControl.txt b/controls_AutoShuttersControl.txt index e69de29..0b89748 100644 --- a/controls_AutoShuttersControl.txt +++ b/controls_AutoShuttersControl.txt @@ -0,0 +1,12 @@ +UPD 2020-06-24_08:10:04 97823 FHEM/73_AutoShuttersControl.pm +UPD 2020-06-24_07:35:48 187058 lib/FHEM/Automation/ShuttersControl.pm +UPD 2020-06-22_09:41:40 2657 lib/FHEM/Automation/ShuttersControl/Dev.pm +UPD 2020-06-22_09:41:40 2493 lib/FHEM/Automation/ShuttersControl/Roommate.pm +UPD 2020-06-22_09:41:40 29833 lib/FHEM/Automation/ShuttersControl/Shutters.pm +UPD 2020-06-22_09:41:40 2175 lib/FHEM/Automation/ShuttersControl/Window.pm +UPD 2020-06-22_09:41:40 11454 lib/FHEM/Automation/ShuttersControl/Dev/Attr.pm +UPD 2020-06-22_09:41:40 7251 lib/FHEM/Automation/ShuttersControl/Dev/Readings.pm +UPD 2020-06-22_09:41:40 52661 lib/FHEM/Automation/ShuttersControl/Shutters/Attr.pm +UPD 2020-06-22_09:41:40 2903 lib/FHEM/Automation/ShuttersControl/Shutters/Readings.pm +UPD 2020-06-22_09:41:40 3972 lib/FHEM/Automation/ShuttersControl/Window/Attr.pm +UPD 2020-06-22_09:41:40 2288 lib/FHEM/Automation/ShuttersControl/Window/Readings.pm diff --git a/lib/FHEM/Automation/ShuttersControl.pm b/lib/FHEM/Automation/ShuttersControl.pm index 87e7377..8fcb6d4 100644 --- a/lib/FHEM/Automation/ShuttersControl.pm +++ b/lib/FHEM/Automation/ShuttersControl.pm @@ -4963,12 +4963,6 @@ sub _CheckShuttersConditionsForShadingFn { my $warnMessage; my $infoMessage; - $infoMessage .= ( - $shutters->getShadingMode eq 'off' - && $ascDev->getAutoShuttersControlShading eq 'on' - ? ' global shading active but ASC_Shading_Mode attribut is not set or off' - : '' - ); $infoMessage .= ( $shutters->getShadingMode ne 'off' @@ -4978,6 +4972,13 @@ sub _CheckShuttersConditionsForShadingFn { : '' ); + $warnMessage .= ( + $shutters->getShadingMode eq 'off' + && $ascDev->getAutoShuttersControlShading eq 'on' + ? ' global shading active but ASC_Shading_Mode attribut is not set or off' + : '' + ); + $errorMessage .= ( $shutters->getShadingMode ne 'off' && $ascDev->getAutoShuttersControlShading ne 'on'