patch_mucki #87

Merged
sebastianschwarz merged 9 commits from patch_mucki into dev 2023-11-20 19:43:36 +00:00
3 changed files with 30 additions and 19 deletions
Showing only changes of commit e15a70ff0b - Show all commits

View File

@ -1,4 +1,14 @@
### test: cleanup initial error handling (HEAD -> patch_mucki) ### test: debug line (HEAD -> patch_mucki)
>Sat, 28 Oct 2023 18:02:17 +0200
>Author: Sebastian (em@ail.tld)
>Commiter: Sebastian (em@ail.tld)
### test: cleanup initial error handling (origin/patch_mucki)
>Wed, 25 Oct 2023 22:16:26 +0200 >Wed, 25 Oct 2023 22:16:26 +0200
>Author: Sebastian (em@ail.tld) >Author: Sebastian (em@ail.tld)
@ -8,7 +18,7 @@
### test: fix wifi status if is_connected (origin/patch_mucki) ### test: fix wifi status if is_connected
>Mon, 23 Oct 2023 22:04:31 +0200 >Mon, 23 Oct 2023 22:04:31 +0200
>Author: Sebastian (em@ail.tld) >Author: Sebastian (em@ail.tld)

View File

@ -632,9 +632,9 @@ sub ErrorHandling {
# replace defined with exists # replace defined with exists
# && defined( $decode_json->{errors} ) ) # && defined( $decode_json->{errors} ) )
{ {
Log3 $name, 4, "[DEBUG] $name - ERROR HANDLING Bridge Parts 2"; # $decode_json->{errors} -> ARRAY
Log3 $name, 4, "[DEBUG] $name - ERROR HANDLING Bridge Parts 1/2".$decode_json->{errors}; # $decode_json->{errors}[0] -> HASH
Log3 $name, 4, "[DEBUG] $name - ERROR HANDLING Bridge Parts 2/2".$decode_json->{errors}[0]; if (exists ($decode_json->{errors}[0]{error}) ) {
readingsBulkUpdate( readingsBulkUpdate(
$dhash, $dhash,
"state", "state",
@ -653,6 +653,7 @@ sub ErrorHandling {
"GardenaSmartBridge ($dname) - RequestERROR: " "GardenaSmartBridge ($dname) - RequestERROR: "
. $decode_json->{errors}[0]{error} . " " . $decode_json->{errors}[0]{error} . " "
. $decode_json->{errors}[0]{attribute}; . $decode_json->{errors}[0]{attribute};
} # fi exists error
} }
} }
else { else {

View File

@ -1,2 +1,2 @@
UPD 2023-10-28_18:01:31 50373 FHEM/73_GardenaSmartBridge.pm UPD 2023-11-01_20:57:32 50330 FHEM/73_GardenaSmartBridge.pm
UPD 2023-10-03_22:40:44 126409 FHEM/74_GardenaSmartDevice.pm UPD 2023-10-03_22:40:44 126409 FHEM/74_GardenaSmartDevice.pm