Änderungen des criticalBattery States
This commit is contained in:
parent
21e5db7f20
commit
e07c4bb561
@ -337,8 +337,10 @@ sub NUKIDevice_Parse($$$) {
|
|||||||
my $battery;
|
my $battery;
|
||||||
if( $decode_json->{batteryCritical} eq "false" ) {
|
if( $decode_json->{batteryCritical} eq "false" ) {
|
||||||
$battery = "ok";
|
$battery = "ok";
|
||||||
} else {
|
} elsif ( $decode_json->{batteryCritical} eq "true" ) {
|
||||||
$battery = "low";
|
$battery = "low";
|
||||||
|
} else {
|
||||||
|
$battery = "parseError";
|
||||||
}
|
}
|
||||||
|
|
||||||
if( defined($hash->{helper}{lockAction}) ) {
|
if( defined($hash->{helper}{lockAction}) ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user