mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +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:
parent
3f4b7d1387
commit
58d83990f3
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# 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
|
- feature: 74_AutomowerConnect: Common.pm Cref update, add Log after WS filter
|
||||||
add Collisions to statistics and zones if addPollingMinInterval is set
|
add Collisions to statistics and zones if addPollingMinInterval is set
|
||||||
- feature: 74_AutomowerConnect: Common.pm, prevent DevIo from directly setting
|
- feature: 74_AutomowerConnect: Common.pm, prevent DevIo from directly setting
|
||||||
|
@ -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}{$result->{type}} = dclone( $result );
|
||||||
$hash->{helper}{wsResult}{type} = $result->{type};
|
$hash->{helper}{wsResult}{type} = $result->{type};
|
||||||
|
|
||||||
if ( $result->{type} eq "status-event" ) {
|
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}{statusTime} = gettimeofday();
|
||||||
$hash->{helper}{mowerold}{attributes}{metadata}{statusTimestamp} = $hash->{helper}{mower}{attributes}{metadata}{statusTimestamp};
|
$hash->{helper}{mowerold}{attributes}{metadata}{statusTimestamp} = $hash->{helper}{mower}{attributes}{metadata}{statusTimestamp};
|
||||||
$hash->{helper}{mowerold}{attributes}{mower}{activity} = $hash->{helper}{mower}{attributes}{mower}{activity};
|
$hash->{helper}{mowerold}{attributes}{mower}{activity} = $hash->{helper}{mower}{attributes}{mower}{activity};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user