diff --git a/CHANGED b/CHANGED index cde0ea1fa..d3a4a3cd1 100644 --- a/CHANGED +++ b/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 74_NUKIDevice: fix success Reading num - bugfix: 42_SYSMON: wlan speed, memory usage detection - update: 57_Calender: optimization for speed - bugfix: 36_Vallox: Changed way multireadings are updated. diff --git a/FHEM/74_NUKIDevice.pm b/FHEM/74_NUKIDevice.pm index 419f2b46a..6f6cb3f3d 100644 --- a/FHEM/74_NUKIDevice.pm +++ b/FHEM/74_NUKIDevice.pm @@ -33,7 +33,7 @@ use warnings; use JSON; -my $version = "0.6.0"; +my $version = "0.6.1"; @@ -456,13 +456,13 @@ sub NUKIDevice_WriteReadings($$) { my ($state,$lockState); - if( defined($decode_json->{success}) and $decode_json->{success} eq "true" ) { + if( defined($decode_json->{success}) and ($decode_json->{success} eq "true" or $decode_json->{success} eq "1") ) { $state = $hash->{helper}{lockAction}; $lockState = $hash->{helper}{lockAction}; NUKIDevice_ReadFromNUKIBridge($hash, "lockState", undef, $hash->{NUKIID} ) if( ReadingsVal($hash->{IODev}->{NAME},'bridgeType','Software') eq 'Software' ); - } elsif ( defined($decode_json->{success}) and $decode_json->{success} eq "false" ) { + } elsif ( defined($decode_json->{success}) and ($decode_json->{success} eq "false" or $decode_json->{success} eq "0") ) { $state = "error"; NUKIDevice_ReadFromNUKIBridge($hash, "lockState", undef, $hash->{NUKIID} );