From c3620aa017e8107a8c7870013b5b8ac54a20a321 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 6 May 2022 12:10:46 +0200 Subject: [PATCH] add log --- CHANGED | 2 +- FHEM/74_GardenaSmartDevice.pm | 4 ++-- controls_GardenaSmartDevice.txt | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGED b/CHANGED index 25c2fd6..7bc4636 100644 --- a/CHANGED +++ b/CHANGED @@ -1 +1 @@ - fix log line + debug ausgabe diff --git a/FHEM/74_GardenaSmartDevice.pm b/FHEM/74_GardenaSmartDevice.pm index 8a6e096..3ad1966 100644 --- a/FHEM/74_GardenaSmartDevice.pm +++ b/FHEM/74_GardenaSmartDevice.pm @@ -888,9 +888,9 @@ sub setState { my $opened_ventils = 0; ## clac bit wise 1 - 6 dec => 1 - 63 dec ( 0011 1111 ) for (my $i = 1; $i < 7; $i++){ - my $zahl = ( ReadingsVal( $name, "watering-watering_timer_'.$i.'_duration", 0 ) =~ m{\A[1-9]([0-9]+)?\z}xms ) ? ($i -1) : 0; + my $zahl = ( ReadingsVal( $name, "watering-watering_timer_".$i."_duration", 0 ) =~ m{\A[1-9]([0-9]+)?\z}xms ) ? ($i -1) : 0; $opened_ventils=$opened_ventils+(2**$zahl) if ( $zahl > 0 ); - Log3 $name, 3, "[DEBUG] - GardenaSmartDevice ($name) - wasser timer($i) =-1 ( $zahl ) : $opened_ventils"; + Log3 $name, 3, "[DEBUG] - GardenaSmartDevice ($name) / watering-watering_timer_".$i."_duration - wasser timer($i) =-1 ( $zahl ) : $opened_ventils"; } # $activ_watering = 1 if ( ReadingsVal( $name, 'watering-watering_timer_1_duration', 0 ) =~ m{\A[1-9]([0-9]+)?\z}xms ); diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index f752ac5..4d6b491 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2022-05-05_08:36:31 49520 FHEM/73_GardenaSmartBridge.pm -UPD 2022-05-05_09:20:45 65861 FHEM/74_GardenaSmartDevice.pm +UPD 2022-05-06_12:01:55 49520 FHEM/73_GardenaSmartBridge.pm +UPD 2022-05-06_12:10:31 65903 FHEM/74_GardenaSmartDevice.pm