diff --git a/CHANGED b/CHANGED index 017f069..94b8ea4 100644 --- a/CHANGED +++ b/CHANGED @@ -1 +1 @@ - [fix] - try 2 fix nearst irrigateion > 1 year + [fix] - change condition has_schedule diff --git a/FHEM/74_GardenaSmartDevice.pm b/FHEM/74_GardenaSmartDevice.pm index 32a3979..192f4ae 100644 --- a/FHEM/74_GardenaSmartDevice.pm +++ b/FHEM/74_GardenaSmartDevice.pm @@ -894,7 +894,7 @@ sub setState { ## find nearst timestamp #$has_scheduling = 1 if ( ReadingsVal($name, 'scheduling-schedules_paused_until_'.$_ , '') ne '2038-01-18T00:00:00.000Z' && ReadingsVal($name, 'scheduling-schedules_paused_until_'.$_ , '') eq '' ); ## wenn nicht dauerhaft pausiert , dann zeitplan vorhanden. - $has_scheduling = 1 if ( ReadingsVal($name, 'scheduling-schedules_paused_until_'.$_ , '') ne '2038-01-18T00:00:00.000Z'; #&& ReadingsVal($name, 'scheduling-schedules_paused_until_'.$_ , '') eq '' ); + $has_scheduling = 1 if ( ReadingsVal($name, 'scheduling-schedules_paused_until_'.$_ , '') ne '2038-01-18T00:00:00.000Z' ); #&& ReadingsVal($name, 'scheduling-schedules_paused_until_'.$_ , '') eq '' ); #$has_scheduling = 1 if ( ReadingsVal($name, 'scheduling-schedules_paused_until_'.$_ , 'n/a') eq '' ); $longest_duration = ReadingsVal( $name, "watering-watering_timer_".$_."_irrigation_left", 0 ) if ( ( ReadingsVal( $name, "watering-watering_timer_".$_."_duration", 0 ) =~ m{\A[1-9]([0-9]+)?\z}xms diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index d329df7..09e92f9 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ UPD 2022-07-01_16:13:02 49241 FHEM/73_GardenaSmartBridge.pm -UPD 2022-07-07_20:03:42 71765 FHEM/74_GardenaSmartDevice.pm +UPD 2022-07-07_20:04:59 71767 FHEM/74_GardenaSmartDevice.pm