patch-connect_problems #35

Merged
sebastianschwarz merged 18 commits from patch-connect_problems into devel 2021-06-28 16:39:22 +00:00
2 changed files with 20 additions and 19 deletions
Showing only changes of commit b0638c525e - Show all commits

View File

@ -235,10 +235,11 @@ sub Define {
my $name = shift @$aArg; my $name = shift @$aArg;
$hash->{BRIDGE} = 1; $hash->{BRIDGE} = 1;
$hash->{URL} = $hash->{URL} = 'https://bff-api.sg.dss.husqvarnagroup.net/api/v1';
AttrVal( $name, 'gardenaBaseURL', # $hash->{URL} =
'https://smart.gardena.com' ) # AttrVal( $name, 'gardenaBaseURL',
. '/v1'; # 'https://smart.gardena.com' )
# . '/v1';
$hash->{VERSION} = version->parse($VERSION)->normal; $hash->{VERSION} = version->parse($VERSION)->normal;
$hash->{INTERVAL} = 60; $hash->{INTERVAL} = 60;
$hash->{NOTIFYDEV} = "global,$name"; $hash->{NOTIFYDEV} = "global,$name";
@ -383,21 +384,21 @@ sub Notify {
&& $init_done && $init_done
); );
if ( # if (
$devtype eq 'GardenaSmartBridge' # $devtype eq 'GardenaSmartBridge'
&& ( # && (
grep /^state:.Connected$/, # grep /^state:.Connected$/,
@{$events} or grep /^lastRequestState:.request_error$/, # @{$events} or grep /^lastRequestState:.request_error$/,
@{$events} # @{$events}
) # )
) # )
{ # {
InternalTimer( gettimeofday() + $hash->{INTERVAL}, # InternalTimer( gettimeofday() + $hash->{INTERVAL},
"FHEM::GardenaSmartBridge::getDevices", $hash ); # "FHEM::GardenaSmartBridge::getDevices", $hash );
Log3 $name, 4, # Log3 $name, 4,
"GardenaSmartBridge ($name) - set internal timer function for recall getDevices sub"; # "GardenaSmartBridge ($name) - set internal timer function for recall getDevices sub";
} # }
return; return;
} }

View File

@ -1,2 +1,2 @@
UPD 2021-06-21_19:36:14 47237 FHEM/73_GardenaSmartBridge.pm UPD 2021-06-21_20:44:35 47344 FHEM/73_GardenaSmartBridge.pm
UPD 2021-06-09_09:52:26 55505 FHEM/74_GardenaSmartDevice.pm UPD 2021-06-09_09:52:26 55505 FHEM/74_GardenaSmartDevice.pm