From 6fdb771cd3fbfc11a22c1ad38e9226a6302b1d2b Mon Sep 17 00:00:00 2001 From: LeonGaultier Date: Thu, 30 Apr 2020 06:39:59 +0000 Subject: [PATCH] 74_GardenaSmartDevice: setter from mower not visible git-svn-id: https://svn.fhem.de/fhem/trunk@21812 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/74_GardenaSmartDevice.pm | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 823be4379..762a6ade4 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: 74_GardenaSmartDevice: setter from mower not visible - bugfix: 74_GardenaSmartDevice: fix watering_computer state - feature: 77_UWZ: add disableForIntervals, fix searchAreaID Fn and bugfix - feature: 98_RandomTimer: Add disabledForIntervals attribute diff --git a/fhem/FHEM/74_GardenaSmartDevice.pm b/fhem/FHEM/74_GardenaSmartDevice.pm index a5c962088..13c08247e 100644 --- a/fhem/FHEM/74_GardenaSmartDevice.pm +++ b/fhem/FHEM/74_GardenaSmartDevice.pm @@ -379,6 +379,10 @@ sub Set { my $list = ''; + $list .= +'parkUntilFurtherNotice:noArg parkUntilNextTimer:noArg startResumeSchedule:noArg startOverrideTimer:slider,0,1,60 startpoint' + if ( AttrVal( $name, 'model', 'unknown' ) eq 'mower' ); + $list .= 'manualOverride:slider,1,1,59 cancelOverride:noArg' if ( AttrVal( $name, 'model', 'unknown' ) eq 'watering_computer' ); @@ -606,8 +610,12 @@ sub WriteReadings { readingsBulkUpdate( $hash, 'state', ( - (ReadingsVal( $name, 'watering-watering_timer_1_state', 'open' ) eq 'open' - || ReadingsVal( $name, 'watering-watering_timer_1_state', 'offen' ) eq 'offen') + ( + ReadingsVal( $name, 'watering-watering_timer_1_state', 'open' ) + eq 'open' + || ReadingsVal( $name, 'watering-watering_timer_1_state', + 'offen' ) eq 'offen' + ) ? RigReadingsValue( $hash, 'open' ) : RigReadingsValue( $hash, 'closed' ) )