Zum testen von anderen Usern angepasst

This commit is contained in:
Marko Oldenburg 2016-09-27 13:43:10 +02:00
parent 2670bf0a81
commit 1a39d05ece

View File

@ -305,10 +305,11 @@ sub NUKIBridge_dispatch($$$) {
Log3 $name, 3, "NUKIBridge ($name) - action is undefined" if( $param->{code} eq 400 ); Log3 $name, 3, "NUKIBridge ($name) - action is undefined" if( $param->{code} eq 400 );
if ( $param->{code} eq 400 ) { ######### Zum testen da ich kein Nuki Smartkey habe ############
$json = '{"state": 1, "stateName": "locked", "batteryCritical": false, "success": "true"}'; #if ( $param->{code} eq 400 ) {
NUKIDevice_Parse($param->{chash},$json); # $json = '{"state": 1, "stateName": "locked", "batteryCritical": false, "success": "true"}';
} # NUKIDevice_Parse($param->{chash},$json);
#}
return; return;
@ -316,11 +317,13 @@ sub NUKIBridge_dispatch($$$) {
if( $hash == $param->{chash} ) { if( $hash == $param->{chash} ) {
$json = '[{"nukiId": 1, "name": "Home"}, {"nukiId": 2, "name": "Grandma"}]';
#$json = '[{"nukiId": 1, "name": "Home"}, {"nukiId": 2, "name": "Grandma"}]'; # zum testen da ich kein Nuki Smartkey habe
NUKIBridge_ResponseProcessing($hash,$json); NUKIBridge_ResponseProcessing($hash,$json);
} else { } else {
$json = '{"state": 1, "stateName": "locked", "batteryCritical": false, "success": "true"}';
NUKIDevice_Parse($param->{chash},$json); NUKIDevice_Parse($param->{chash},$json);
} }
} }