fix scheduleValve
This commit is contained in:
parent
5d407bb814
commit
20f5db1b2c
@ -404,16 +404,16 @@ sub Set {
|
||||
$payload = '"name":"close_all_valves","parameters":{}';
|
||||
}
|
||||
elsif ( $cmd =~ /.*ScheduleValve/ ){
|
||||
my $valve_id = $1;
|
||||
my $valve_id = $aArg->[0];
|
||||
$abilities = 'irrigation_settings';
|
||||
$service_id = $hash->{helper}->{'schedules_paused_until_'.$valve_id.'_id'};
|
||||
$payload = '"settings":{"name":"schedules_paused_until_'
|
||||
.$valve_id.
|
||||
'", "value":"'
|
||||
. ($cmd eq 'resumeScheduleValve') ? '' : '2040-12-31T22:00:00.000Z'
|
||||
.'","device":"'
|
||||
.$hash->{DEVICEID}
|
||||
.'"}';
|
||||
. $valve_id
|
||||
. '", "value":"'
|
||||
. ($cmd eq 'resumeScheduleValve' ? '' : '2040-12-31T22:00:00.000Z')
|
||||
. '","device":"'
|
||||
. $hash->{DEVICEID}
|
||||
. '"}';
|
||||
}
|
||||
### Sensors
|
||||
elsif ( lc $cmd eq 'refresh' ) {
|
||||
|
@ -1,2 +1,2 @@
|
||||
UPD 2021-05-14_15:51:47 46108 FHEM/73_GardenaSmartBridge.pm
|
||||
UPD 2021-05-16_12:07:17 50823 FHEM/74_GardenaSmartDevice.pm
|
||||
UPD 2021-05-16_12:22:12 50836 FHEM/74_GardenaSmartDevice.pm
|
||||
|
Loading…
x
Reference in New Issue
Block a user