fix state_string variable
This commit is contained in:
parent
c553b8ef8f
commit
462311836f
@ -851,7 +851,8 @@ sub setState {
|
|||||||
if ( AttrVal( $name, 'model', 'unknown' ) eq 'watering_computer' ){
|
if ( AttrVal( $name, 'model', 'unknown' ) eq 'watering_computer' ){
|
||||||
#should: open | online | no timer
|
#should: open | online | no timer
|
||||||
#open/closed?
|
#open/closed?
|
||||||
my $state_string = ReadingsVal( $name, 'watering-watering_timer_1_duration', 0 ) =~
|
my $state_string = '';
|
||||||
|
$state_string = ReadingsVal( $name, 'watering-watering_timer_1_duration', 0 ) =~
|
||||||
m{\A[1-9]([0-9]+)?\z}xms
|
m{\A[1-9]([0-9]+)?\z}xms
|
||||||
? RigReadingsValue( $hash, 'open' );
|
? RigReadingsValue( $hash, 'open' );
|
||||||
: ( ReadingsVal( $name, 'scheduling-schedules_paused_until', '') ne '' ?
|
: ( ReadingsVal( $name, 'scheduling-schedules_paused_until', '') ne '' ?
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
UPD 2022-03-29_13:42:09 49520 FHEM/73_GardenaSmartBridge.pm
|
UPD 2022-03-29_13:42:09 49520 FHEM/73_GardenaSmartBridge.pm
|
||||||
UPD 2022-04-05_11:36:13 58328 FHEM/74_GardenaSmartDevice.pm
|
UPD 2022-04-05_11:40:15 58354 FHEM/74_GardenaSmartDevice.pm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user