From 1d383bc91fdae6647ae70ce470f27fbd8d3629cd Mon Sep 17 00:00:00 2001 From: CoolTux Date: Wed, 29 Apr 2020 13:19:30 +0000 Subject: [PATCH] 74_GardenaSmartDevice: fix watering_computer state git-svn-id: https://svn.fhem.de/fhem/trunk@21808 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/74_GardenaSmartDevice.pm | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 5c5f5b374..823be4379 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: fix watering_computer state - feature: 77_UWZ: add disableForIntervals, fix searchAreaID Fn and bugfix - feature: 98_RandomTimer: Add disabledForIntervals attribute and active/inactive setters diff --git a/fhem/FHEM/74_GardenaSmartDevice.pm b/fhem/FHEM/74_GardenaSmartDevice.pm index e79507c58..a5c962088 100644 --- a/fhem/FHEM/74_GardenaSmartDevice.pm +++ b/fhem/FHEM/74_GardenaSmartDevice.pm @@ -606,9 +606,10 @@ sub WriteReadings { readingsBulkUpdate( $hash, 'state', ( - ReadingsVal( $name, 'watering-watering_timer_1_state', 'idle' ) eq 'idle' - ? RigReadingsValue( $hash, 'closed' ) - : RigReadingsValue( $hash, 'open' ) + (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' ) ) ) if ( AttrVal( $name, 'model', 'unknown' ) eq 'watering_computer' ); @@ -1207,7 +1208,7 @@ sub SetPredefinedStartPoints { ], "release_status": "stable", "license": "GPL_2", - "version": "v2.0.0", + "version": "v2.0.1", "author": [ "Marko Oldenburg " ],