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