This commit is contained in:
Marko Oldenburg 2019-10-02 12:14:03 +02:00
parent 1a5cb82ab1
commit 67178a3aa5

View File

@ -555,7 +555,8 @@ sub ErrorHandling($$$) {
and exists($param->{code}) and exists($param->{code})
and $param->{code} != 200 ) and $param->{code} != 200 )
{ {
print( 'TESLA DEBUG0 - Path: ' . $param->{setCmd} . "\n" );
print( 'TESLA DEBUG0 - ResponseString: ' . Dumper $data . "\n" );
readingsBeginUpdate($hash); readingsBeginUpdate($hash);
readingsBulkUpdate( $hash, 'state', $param->{code}, 1 ); readingsBulkUpdate( $hash, 'state', $param->{code}, 1 );
@ -566,6 +567,9 @@ sub ErrorHandling($$$) {
Log3 $name, 3, Log3 $name, 3,
"TeslaPowerwall2AC ($name) - statusRequestERROR: http error " "TeslaPowerwall2AC ($name) - statusRequestERROR: http error "
. $param->{code}; . $param->{code};
Log3 $name, 3,
"TeslaPowerwall2AC ($name) - statusRequestERROR: data "
. $data;
$hash->{actionQueue} = []; $hash->{actionQueue} = [];
return; return;