2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

74_AutomowerConnect: Common.pm fixed bug in WS filter

git-svn-id: https://svn.fhem.de/fhem/trunk@27717 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Ellert 2023-06-30 15:19:30 +00:00
parent 3f4b7d1387
commit 58d83990f3
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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};