fixes
This commit is contained in:
parent
a95b4da257
commit
8d17d1e26e
@ -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:21:44 11290 lib/FHEM/Hailo/Libero.pm
|
UPD 2021-05-29_22:30:58 11337 lib/FHEM/Hailo/Libero.pm
|
||||||
|
@ -242,7 +242,7 @@ sub Set {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
my $list = 'password ';
|
my $list = 'password ';
|
||||||
$list .= 'open:noArg led_brightness:slider,1,1,10 eject_power:slider,1,1,10 eject_delay:slider,0,1,5 detection_area:31,1,100 detection_sensitivity:slider,1,1,50'
|
$list .= 'open:noArg led_brightness:slider,1,1,10 eject_power:slider,1,1,10 eject_delay:slider,0,1,5 detection_area:slider,31,1,100 detection_sensitivity:slider,1,1,50'
|
||||||
if ( defined(ReadPassword( $hash, $name ))
|
if ( defined(ReadPassword( $hash, $name ))
|
||||||
&& AttrVal( $name, 'LiberoIP', 'none' ) ne 'none'
|
&& AttrVal( $name, 'LiberoIP', 'none' ) ne 'none'
|
||||||
);
|
);
|
||||||
@ -278,14 +278,14 @@ sub setSettings {
|
|||||||
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 getSettings {
|
sub getSettings {
|
||||||
my $hash = shift;
|
my $hash = shift;
|
||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
|
|
||||||
Write( $hash, 'settings', undef, undef );
|
Write( $hash, undef, undef, undef );
|
||||||
}
|
}
|
||||||
|
|
||||||
sub Write {
|
sub Write {
|
||||||
@ -366,7 +366,8 @@ sub createHttpValueStrings {
|
|||||||
if (ReadingsVal( $name, 'cookie', 'none' ) ne 'none');
|
if (ReadingsVal( $name, 'cookie', 'none' ) ne 'none');
|
||||||
my $uri = '';
|
my $uri = '';
|
||||||
my $method = 'POST';
|
my $method = 'POST';
|
||||||
|
$payload = '' if (!defined ($payload));
|
||||||
|
|
||||||
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 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user