From 480946f9be24c050f3b70e4e080f5bc3209b7f36 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 6 May 2022 12:19:15 +0200 Subject: [PATCH] Log Debug --- CHANGED | 2 +- FHEM/74_GardenaSmartDevice.pm | 4 +++- controls_GardenaSmartDevice.txt | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGED b/CHANGED index 7bc4636..7ead5e2 100644 --- a/CHANGED +++ b/CHANGED @@ -1 +1 @@ - debug ausgabe + add log diff --git a/FHEM/74_GardenaSmartDevice.pm b/FHEM/74_GardenaSmartDevice.pm index 3ad1966..c185f07 100644 --- a/FHEM/74_GardenaSmartDevice.pm +++ b/FHEM/74_GardenaSmartDevice.pm @@ -741,6 +741,8 @@ sub WriteReadings { . $r, RigReadingsValue( $hash, $v ) ); + Log3 $name, 3, "[DEBUG] - GardenaSmartDevice ($name) Ventil $propertie->{name} Duration: $v"; + } } } @@ -882,7 +884,7 @@ sub setState { # ... Bewässerung aktiv. Zeitpläne dauerhaft pausiert. # ... geschlossen. Zeitpläne aktiv (bzw. s.o.) # ... geschlossen. Zeitpläne dauerhaft pausiert. -# ... offline +# ... offlinen my $activ_watering = 0; if ( AttrVal( $name, 'model', 'unknown' ) eq 'ic24' ){ my $opened_ventils = 0; diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index 4d6b491..c2d9332 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ UPD 2022-05-06_12:01:55 49520 FHEM/73_GardenaSmartBridge.pm -UPD 2022-05-06_12:10:31 65903 FHEM/74_GardenaSmartDevice.pm +UPD 2022-05-06_12:19:10 66027 FHEM/74_GardenaSmartDevice.pm