[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

@ -934,8 +934,12 @@ sub setState {
# zu
:
( $has_scheduling )
# zeitplan aktiv
? sprintf( (RigReadingsValue($hash, 'closed') .'. '.RigReadingsValue($hash, 'next watering: %s')), $nearst_irrigation )
# zeitplan aktiv
? ( $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')
;