From dcaaabfef505650124e8ee7f1ec392d17961921f Mon Sep 17 00:00:00 2001 From: LeonGaultier <LeonGaultier@users.noreply.github.com> Date: Tue, 26 Mar 2019 18:05:07 +0000 Subject: [PATCH] 74_GardenaSmartDevice: change on-for-timer time format git-svn-id: https://svn.fhem.de/fhem/trunk@19042 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/74_GardenaSmartDevice.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 2243f71b1..5341facae 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - change: 74_GardenaSmartDevice: change on-for-timer time format - feature: 74_GardenaSmartDevice: add support for power plug and META - feature: 73_GardenaSmartBridge: add support for power plug and META - feature: 42_AptToDate: add support for META and Installer Modules diff --git a/fhem/FHEM/74_GardenaSmartDevice.pm b/fhem/FHEM/74_GardenaSmartDevice.pm index c7c6a2a91..930795b43 100644 --- a/fhem/FHEM/74_GardenaSmartDevice.pm +++ b/fhem/FHEM/74_GardenaSmartDevice.pm @@ -260,7 +260,7 @@ sub Set($@) { } elsif ( lc $cmd eq 'on' or lc $cmd eq 'off' or lc $cmd eq 'on-for-timer' ) { - my $val = ( defined($args[0]) ? join( " ", @args ) : lc $cmd ); + my $val = ( defined($args[0]) ? join(" ", @args)*60 : lc $cmd ); $payload = '"properties":{"value":"' . $val . '"}'; } @@ -316,7 +316,7 @@ sub Set($@) { if ( AttrVal( $name, 'model', 'unknown' ) eq 'ic24' ); $list .= 'refresh:temperature,light,humidity' if ( AttrVal( $name, 'model', 'unknown' ) eq 'sensor' ); - $list .= 'on:noArg off:noArg on-for-timer:slider,0,1,3600' + $list .= 'on:noArg off:noArg on-for-timer:slider,0,1,60' if ( AttrVal( $name, 'model', 'unknown' ) eq 'power' ); return "Unknown argument $cmd, choose one of $list";