diff --git a/fhem/CHANGED b/fhem/CHANGED index ff560dbdc..ac47f8bbf 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -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_AutomowerConnect: Common.pm fixed bug in WS filter - feature: 74_AutomowerConnect: Common.pm Cref update, add Log after WS filter add Collisions to statistics and zones if addPollingMinInterval is set - feature: 74_AutomowerConnect: Common.pm, prevent DevIo from directly setting diff --git a/fhem/lib/FHEM/Devices/AMConnect/Common.pm b/fhem/lib/FHEM/Devices/AMConnect/Common.pm index ccd2495ef..9e7686f0e 100644 --- a/fhem/lib/FHEM/Devices/AMConnect/Common.pm +++ b/fhem/lib/FHEM/Devices/AMConnect/Common.pm @@ -2527,15 +2527,14 @@ sub wsRead { } - if ( defined( $result->{type} && $result->{id} eq $hash->{helper}{mower_id} ) ) { + if ( defined( $result->{type} ) && $result->{id} eq $hash->{helper}{mower_id} ) { + Log3 $name, 4, "$iam selected websocket data: >$buf<"; $hash->{helper}{wsResult}{$result->{type}} = dclone( $result ); $hash->{helper}{wsResult}{type} = $result->{type}; if ( $result->{type} eq "status-event" ) { - Log3 $name, 4, "$iam select websocket data for \$result->{id} $result->{id}, \$hash->{helper}{mower_id} $hash->{helper}{mower_id}, battery $result->{attributes}{battery}{batteryPercent}"; - $hash->{helper}{statusTime} = gettimeofday(); $hash->{helper}{mowerold}{attributes}{metadata}{statusTimestamp} = $hash->{helper}{mower}{attributes}{metadata}{statusTimestamp}; $hash->{helper}{mowerold}{attributes}{mower}{activity} = $hash->{helper}{mower}{attributes}{mower}{activity};