JurajNyiri / HomeAssistant-Tapo-Control

Control for Tapo cameras as a Home Assistant component
Apache License 2.0
947 stars 80 forks source link

[C510] No motion sensor (Invalid IPv4 address?) #595

Closed gogui63 closed 1 month ago

gogui63 commented 1 month ago

Description

I recently installed a C510 camera but I can't achieve to have motion detection (working fine on two C210 at home).

I followed the troubleshooting, I restarted the camera, configured it again, checked if motion is enable but without success. I receive motions notifications on my phone using Tapo application but nothing on HA side.

In the logs I have two errors (see in the logs section of the issue). And for your information, this camera (like the two C210s) records in Surveillance Station on my NAS. I don't understand why I have "Invalid IPv4 address" in logs. C510 is connected to my Unifi AP with a fixed IP.

Reproduction Steps

  1. Go to Tapo integration
  2. Select C510
  3. List sensors

Expected behavior

  1. Go to Tapo integration
  2. Select C510
  3. List sensors
  4. Have motion sensor

If applicable, add error logs.

Enregistreur: custom_components.tapo_control Source: custom_components/tapo_control/utils.py:612 intégration: Tapo: Cameras Control (documentation, problèmes) S'est produit pour la première fois: 10:14:24 (281 occurrences) Dernier enregistrement: 11:03:38

Invalid IPv4 address: '192.168.30.04'

Cette erreur provient d'une intégration personnalisée

Enregistreur: custom_components.tapo_control Source: custom_components/tapo_control/utils.py:611 intégration: Tapo: Cameras Control (documentation, problèmes) S'est produit pour la première fois: 10:14:24 (281 occurrences) Dernier enregistrement: 11:03:38

[initOnvifEvents] Initiating onvif connection failed.

Device Firmware

1.2.1 Build 240401 Rel.61067n

Integration Version

5.4.18

Using stream component

Yes

Does camera work via official integrations?

Yes

Camera has all attributes filled out in developer tools

Yes

HASS Environment

HAOS on Proxmox VE

Search for similar issues

Yes

Additional information

No response

JurajNyiri commented 1 month ago

Please proceed with following steps:

  1. Enable debug logs and post them
  2. Disable camera entity in Home Assistant Tapo: Cameras control integration. Then configure onvif integration. If it does not work there, open issue with core home assistant.

This integration mostly reuses the functionality inside the onvif core integration.

gogui63 commented 1 month ago

Issue solved... Sorry for the issue, It was on log :

I used 192.168.30.04 instead of 192.168.30.4 (without 0) and now all working fine