fix notify
This commit is contained in:
parent
1c975f5bdc
commit
a95b4da257
@ -1,2 +1,2 @@
|
|||||||
UPD 2021-05-29_22:04:49 5190 FHEM/73_HailoLibero.pm
|
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
|
||||||
|
@ -185,7 +185,7 @@ sub Notify {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
getSettings($hash);
|
getSettings($hash);
|
||||||
#InternalTimer( gettimeofday() + $hash->{INTERVAL},
|
#InternalTimer( gettimeofday() + $hash->{INTERVAL},
|
||||||
# "FHEM::GardenaSmartBridge::getDevices", $hash );
|
# "FHEM::GardenaSmartBridge::getDevices", $hash );
|
||||||
Log3 $name, 4,
|
Log3 $name, 4,
|
||||||
@ -285,7 +285,7 @@ sub getSettings {
|
|||||||
my $hash = shift;
|
my $hash = shift;
|
||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
|
|
||||||
Write( $hash, undef, undef, undef );
|
Write( $hash, 'settings', undef, undef );
|
||||||
}
|
}
|
||||||
|
|
||||||
sub Write {
|
sub Write {
|
||||||
@ -370,7 +370,7 @@ sub createHttpValueStrings {
|
|||||||
if ( ReadingsVal( $name, 'cookie', 'none' ) eq 'none' ){
|
if ( ReadingsVal( $name, 'cookie', 'none' ) eq 'none' ){
|
||||||
$uri .= '/login';
|
$uri .= '/login';
|
||||||
readingsSingleUpdate( $hash, 'state', 'fetch cookie', 1 );
|
readingsSingleUpdate( $hash, 'state', 'fetch cookie', 1 );
|
||||||
} elsif ( $payload ne 'open'){
|
} elsif ( $payload eq 'settings'){
|
||||||
$uri .= '/settings';
|
$uri .= '/settings';
|
||||||
} elsif ( $payload eq 'open'){
|
} elsif ( $payload eq 'open'){
|
||||||
$uri .= '/open';
|
$uri .= '/open';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user