diff --git a/controls_HailoLibero.txt b/controls_HailoLibero.txt index b52c21a..abc505d 100644 --- a/controls_HailoLibero.txt +++ b/controls_HailoLibero.txt @@ -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 diff --git a/lib/FHEM/Hailo/Libero.pm b/lib/FHEM/Hailo/Libero.pm index 5a75ecd..c6ac65c 100644 --- a/lib/FHEM/Hailo/Libero.pm +++ b/lib/FHEM/Hailo/Libero.pm @@ -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';