JurajNyiri / HomeAssistant-Tapo-Control

Control for Tapo cameras as a Home Assistant component
Apache License 2.0
1.08k stars 87 forks source link

Motion Detection ON constantly. #330

Closed sca075 closed 1 year ago

sca075 commented 1 year ago

Description

Since the fix for HA 2023.5 the C100 motion sensor become duplicated and remain always in ON, the TAPO app send the notification of motion detected, but it seams there is no feedback when the motion ended. Would be happy to help to fix this issue but I didn´t get how this part in your code is working..

Reproduction Steps

1.Reload the component 2.Delete the duplicate motion sensor entity.

  1. Reload the component
  2. Sensor unavailable
  3. create motion in the room
  4. a new sensor is created and become clear.

Expected behavior

normal detection state as before.

If applicable, add error logs.

No response

Device Firmware

1.1.15

Using stream component

Yes

Does camera work via official integrations?

N/A

Camera has all attributes filled out in developer tools

Yes

HASS Environment

Docker

Search for similar issues

No

Additional information

No response

JurajNyiri commented 1 year ago

The issue is in upstream onvif (and poor firmware). I am working with @bdraco to fix this.

JurajNyiri commented 1 year ago

After investigating this further with great help of @bdraco we found out that:

Solutions

macbih commented 1 year ago

Same here for a Tapo C110 with firmware 1.1.12. Since the HA update 2023.5 the motion sensor will be triggered just once and stays on forever, i.e. until restart of HA or the camera itself.

Thanks a lot @JurajNyiri and @bdraco for looking into this!

JurajNyiri commented 1 year ago

Continue at https://github.com/home-assistant/core/issues/92604

sca075 commented 1 year ago

@JurajNyiri

Thanks really much Man! it works like a charm now :)

Tontze commented 10 months ago

Problem renewed ? My C100, both of them, motion detecttions are constantly on ...

sca075 commented 10 months ago

Problem renewed ? My C100, both of them, motion detecttions are constantly on ...

I stuck to 5.2.3 there the motion sensor works fine.