Änderungen des criticalBattery States

This commit is contained in:
Marko Oldenburg 2016-11-09 14:49:57 +01:00
parent 21e5db7f20
commit e07c4bb561

View File

@ -337,8 +337,10 @@ sub NUKIDevice_Parse($$$) {
my $battery;
if( $decode_json->{batteryCritical} eq "false" ) {
$battery = "ok";
} else {
} elsif ( $decode_json->{batteryCritical} eq "true" ) {
$battery = "low";
} else {
$battery = "parseError";
}
if( defined($hash->{helper}{lockAction}) ) {