JurajNyiri / HomeAssistant-Tapo-Control

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

Motion detection triggers on camera reboot if privacy mode is enabled #341

Closed twisterss closed 1 year ago

twisterss commented 1 year ago

Description

On C200 camera reboot (whether manual or during a daily automatic reboot configured in the tapo app), if privacy mode was enabled, the motion detection sensor triggers and then remains "detected" until next Home Assistant reboot

Reproduction Steps

  1. Make sure the camera motion detection sensor exists (by triggering a first detection) and then wait for the sensor to go back to "not triggered"
  2. Enable the "Privacy" option of the camera
  3. Click on "Reboot" to reboot the camera
  4. Wait until the camera is fully rebooted
  5. The motion detection triggers and then remains triggered until next Homev Assistant reboot

Expected behavior

The motion detection should not trigger on reboot.

If applicable, add error logs.

No response

Device Firmware

1.3.4 Build 230424 Rel.76394n(4555)

Using stream component

No

Does camera work via official integrations?

Yes

Camera has all attributes filled out in developer tools

Yes

HASS Environment

2023.5.2 Docker on Ubuntu

Search for similar issues

Yes

Additional information

This is new since a few days (I recently got updates for the cameras, for HASS and for the tapo integration) This happens whatever the Motion Detection configuration value (tested off and normal) I can make further tests if necessary.

(and thank you for this awesome integration :) )

Write commented 1 year ago

Can confirm. Personally it stays as detected until first actual motion is detected. Haven't tried an ha reboot yet.

JurajNyiri commented 1 year ago

Could you please verify if this behaviour happens with https://www.home-assistant.io/integrations/onvif/ ? It might need to be fixed upstream as this integration is using HA onvif for events.

Dielee commented 1 year ago

@JurajNyiri how can we verify this ? For me this happens, too.

Write commented 1 year ago

Could you please verify if this behaviour happens with https://www.home-assistant.io/integrations/onvif/ ? It might need to be fixed upstream as this integration is using HA onvif for events.

Yes, same for ONVIF

JurajNyiri commented 1 year ago

In that case please open issue on home assistant Onvif. Once it is fixed there it will be fixed here.