From 8dbbbd1296cc65f317eca411a02eb12785472bd4 Mon Sep 17 00:00:00 2001 From: LeonGaultier Date: Tue, 28 Apr 2020 13:21:32 +0000 Subject: [PATCH] 74_GardenaSmartDevice: little Bugfix, thanks Christoph git-svn-id: https://svn.fhem.de/fhem/trunk@21793 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/74_GardenaSmartDevice.pm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fhem/FHEM/74_GardenaSmartDevice.pm b/fhem/FHEM/74_GardenaSmartDevice.pm index 0250165c9..e79507c58 100644 --- a/fhem/FHEM/74_GardenaSmartDevice.pm +++ b/fhem/FHEM/74_GardenaSmartDevice.pm @@ -485,7 +485,7 @@ sub WriteReadings { $hash, $decode_json->{abilities}[$abilities]{name} . '-' . $propertie->{name}, - RigRadingsValue( $hash, $propertie->{value} ) + RigReadingsValue( $hash, $propertie->{value} ) ) if ( defined( $propertie->{value} ) && $decode_json->{abilities}[$abilities]{name} . '-' @@ -508,7 +508,7 @@ sub WriteReadings { $hash, $decode_json->{abilities}[$abilities]{name} . '-' . $propertie->{name}, - RigRadingsValue( $hash, $propertie->{value} ) + RigReadingsValue( $hash, $propertie->{value} ) ) if ( defined( $propertie->{value} ) @@ -557,7 +557,7 @@ sub WriteReadings { $decode_json->{abilities}[$abilities]{name} . '-' . $propertie->{name} . '_' . $r, - RigRadingsValue( $hash, $v ) + RigReadingsValue( $hash, $v ) ); } } @@ -606,9 +606,9 @@ sub WriteReadings { readingsBulkUpdate( $hash, 'state', ( - ReadingsVal( $name, 'watering-watering_timer_1_state', 0 ) eq 'idle' - ? RigRadingsValue( $hash, 'closed' ) - : RigRadingsValue( $hash, 'open' ) + ReadingsVal( $name, 'watering-watering_timer_1_state', 'idle' ) eq 'idle' + ? RigReadingsValue( $hash, 'closed' ) + : RigReadingsValue( $hash, 'open' ) ) ) if ( AttrVal( $name, 'model', 'unknown' ) eq 'watering_computer' ); @@ -770,7 +770,7 @@ sub ReadingLangGerman { return; } -sub RigRadingsValue { +sub RigReadingsValue { my $hash = shift; my $readingValue = shift;