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 );
if ( $param->{code} eq 400 ) {
$json = '{"state": 1, "stateName": "locked", "batteryCritical": false, "success": "true"}';
NUKIDevice_Parse($param->{chash},$json);
}
######### Zum testen da ich kein Nuki Smartkey habe ############
#if ( $param->{code} eq 400 ) {
# $json = '{"state": 1, "stateName": "locked", "batteryCritical": false, "success": "true"}';
# NUKIDevice_Parse($param->{chash},$json);
#}
return;
@ -316,11 +317,13 @@ sub NUKIBridge_dispatch($$$) {
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);
} else {
$json = '{"state": 1, "stateName": "locked", "batteryCritical": false, "success": "true"}';
NUKIDevice_Parse($param->{chash},$json);
}
}