change default interval

This commit is contained in:
Marko Oldenburg 2019-03-26 11:19:32 +01:00
parent e8c553161c
commit b5308f9642
2 changed files with 5 additions and 5 deletions

View File

@ -155,7 +155,7 @@ sub Define($$) {
$hash->{BRIDGE} = 1; $hash->{BRIDGE} = 1;
$hash->{URL} = 'https://sg-api.dss.husqvarnagroup.net/sg-1'; $hash->{URL} = 'https://sg-api.dss.husqvarnagroup.net/sg-1';
$hash->{VERSION} = $version; $hash->{VERSION} = $version;
$hash->{INTERVAL} = 300; $hash->{INTERVAL} = 60;
$hash->{NOTIFYDEV} = "global,$name"; $hash->{NOTIFYDEV} = "global,$name";
CommandAttr( undef, $name . ' room GardenaSmart' ) CommandAttr( undef, $name . ' room GardenaSmart' )
@ -234,9 +234,9 @@ sub Attr(@) {
elsif ( $cmd eq "del" ) { elsif ( $cmd eq "del" ) {
RemoveInternalTimer($hash); RemoveInternalTimer($hash);
$hash->{INTERVAL} = 300; $hash->{INTERVAL} = 60;
Log3 $name, 3, Log3 $name, 3,
"GardenaSmartBridge ($name) - delete User interval and set default: 300"; "GardenaSmartBridge ($name) - delete User interval and set default: 60";
} }
} }
@ -1082,7 +1082,7 @@ sub DeletePassword($) {
<ul> <ul>
<li>debugJSON - </li> <li>debugJSON - </li>
<li>disable - Disables the Bridge</li> <li>disable - Disables the Bridge</li>
<li>interval - Interval in seconds (Default=300)</li> <li>interval - Interval in seconds (Default=60)</li>
<li>gardenaAccountEmail - Email Adresse which was used in the GardenaAPP</li> <li>gardenaAccountEmail - Email Adresse which was used in the GardenaAPP</li>
</ul> </ul>
</ul> </ul>

View File

@ -311,7 +311,7 @@ sub Set($@) {
if ( AttrVal( $name, 'model', 'unknown' ) eq 'ic24' ); if ( AttrVal( $name, 'model', 'unknown' ) eq 'ic24' );
$list .= 'refresh:temperature,light,humidity' $list .= 'refresh:temperature,light,humidity'
if ( AttrVal( $name, 'model', 'unknown' ) eq 'sensor' ); if ( AttrVal( $name, 'model', 'unknown' ) eq 'sensor' );
$list .= 'on:noArg off:noArg on-for-timer:slider,0,1,180' $list .= 'on:noArg off:noArg on-for-timer:slider,0,1,3600'
if ( AttrVal( $name, 'model', 'unknown' ) eq 'power' ); if ( AttrVal( $name, 'model', 'unknown' ) eq 'power' );
return "Unknown argument $cmd, choose one of $list"; return "Unknown argument $cmd, choose one of $list";