fix notify

This commit is contained in:
Sebastian 2021-05-29 22:21:56 +02:00
parent 1c975f5bdc
commit a95b4da257
2 changed files with 4 additions and 4 deletions

View File

@ -1,2 +1,2 @@
UPD 2021-05-29_22:04:49 5190 FHEM/73_HailoLibero.pm
UPD 2021-05-29_22:17:56 11273 lib/FHEM/Hailo/Libero.pm
UPD 2021-05-29_22:21:44 11290 lib/FHEM/Hailo/Libero.pm

View File

@ -185,7 +185,7 @@ sub Notify {
)
)
{
getSettings($hash);
getSettings($hash);
#InternalTimer( gettimeofday() + $hash->{INTERVAL},
# "FHEM::GardenaSmartBridge::getDevices", $hash );
Log3 $name, 4,
@ -285,7 +285,7 @@ sub getSettings {
my $hash = shift;
my $name = $hash->{NAME};
Write( $hash, undef, undef, undef );
Write( $hash, 'settings', undef, undef );
}
sub Write {
@ -370,7 +370,7 @@ sub createHttpValueStrings {
if ( ReadingsVal( $name, 'cookie', 'none' ) eq 'none' ){
$uri .= '/login';
readingsSingleUpdate( $hash, 'state', 'fetch cookie', 1 );
} elsif ( $payload ne 'open'){
} elsif ( $payload eq 'settings'){
$uri .= '/settings';
} elsif ( $payload eq 'open'){
$uri .= '/open';