[ALPHA] extendetState - permanentyl paused

This commit is contained in:
Sebastian 2022-06-24 13:20:54 +02:00
parent 458edffa85
commit c9b1e470cb
3 changed files with 8 additions and 4 deletions

View File

@ -1 +1 @@
[alpha] excentedState - fix wc state, add irrigation duration
[alpha] extendetState : fix irrigation left zero value

View File

@ -935,7 +935,11 @@ sub setState {
:
( $has_scheduling )
# zeitplan aktiv
? sprintf( (RigReadingsValue($hash, 'closed') .'. '.RigReadingsValue($hash, 'next watering: %s')), $nearst_irrigation )
? ( $nearst_irrigation eq '2038-01-18T00:00:00.000Z')
# dauerhaft pausiert
? sprintf( (RigReadingsValue($hash, 'closed') .'. '.RigReadingsValue($hash , 'schedule permanently paused')) )
# naechster zeutplan
: sprintf( (RigReadingsValue($hash, 'closed') .'. '.RigReadingsValue($hash, 'next watering: %s')), $nearst_irrigation )
# zeitplan pausiert
: RigReadingsValue($hash, 'closed')
;

View File

@ -1,2 +1,2 @@
UPD 2022-06-21_08:17:57 49520 FHEM/73_GardenaSmartBridge.pm
UPD 2022-06-23_13:33:10 69293 FHEM/74_GardenaSmartDevice.pm
UPD 2022-06-24_13:20:28 69569 FHEM/74_GardenaSmartDevice.pm