mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
74_NUKIDevice: fix success Reading num
git-svn-id: https://svn.fhem.de/fhem/trunk@14292 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f325cf9899
commit
13c1f54836
@ -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.
|
||||
|
@ -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} );
|
||||
|
Loading…
Reference in New Issue
Block a user