diff --git a/74_NUKIDevice.pm b/74_NUKIDevice.pm index ae6af2e..4a49364 100644 --- a/74_NUKIDevice.pm +++ b/74_NUKIDevice.pm @@ -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}) ) {