Closed usma0118 closed 3 years ago
This seems like the issue of camera, which corresponds with the response from tplink.
Does the rtsp stream work in vlc when this happens? Does onvif work via some other program when this happens?
Camera generally has issue when you inproperly end the connection with onvif, or when too many connections are opened to onvif, or rtsp. I think it supports about 2 or 3 streams via rtsp at the same time. Are you using more?
This seems like the issue of camera, which corresponds with the response from tplink. Yes, that's my hypothesis as well
Does the rtsp stream work in vlc when this happens? No Does onvif work via some other program when this happens? No
Camera generally has issue when you inproperly end the connection with onvif, or when too many connections are opened to onvif, or rtsp. I think it supports about 2 or 3 streams via rtsp at the same time. Are you using more? I am only using this via HA, which should open one stream only at a given time.
That points to a camera issue - if onvif and rtsp are unavailable you are either overloading it or there is some other bug.
This integration opens one onvif connection and two rtsp streams (one for HD and one for LQ). You can try disabling the entity for LQ and see if that improves anything.
Do RTSP and onvif work when you don't have camera added to Home Assistant?
That points to a camera issue - if onvif and rtsp are unavailable you are either overloading it or there is some other bug. seems to be a bug as I am not using any other system or app to access camera.
This integration opens one onvif connection and two rtsp streams (one for HD and one for LQ). You can try disabling the entity for LQ and see if that improves anything. Tried with no luck
Do RTSP and onvif work when you don't have camera added to Home Assistant? At least it shows better stability, but has problems
latest log:
2021-02-03 12:47:06 DEBUG (MainThread) [homeassistant.components.homekit.type_cameras] camera.tapo_camera_hd: Set linked motion binary_sensor.tapo_camera_motion sensor to 1
2021-02-03 12:47:06 DEBUG (MainThread) [homeassistant.components.homekit.type_cameras] camera.tapo_camera_sd: Set linked motion binary_sensor.tapo_camera_motion sensor to 1
2021-02-03 12:47:06 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state binary_sensor.tapo_camera_motion=on; friendly_name=Tapo_Camera - Motion, device_class=motion @ 2021-02-03T13:47:06.401683+01:00>
2021-02-03 12:47:06 DEBUG (MainThread) [homeassistant.components.homekit.type_sensors] binary_sensor.tapo_camera_motion: Set to 1
2021-02-03 12:47:11 DEBUG (MainThread) [homeassistant.components.homekit.type_cameras] camera.tapo_camera_hd: Set linked motion binary_sensor.tapo_camera_motion sensor to 0
2021-02-03 12:47:11 DEBUG (MainThread) [homeassistant.components.homekit.type_cameras] camera.tapo_camera_sd: Set linked motion binary_sensor.tapo_camera_motion sensor to 0
2021-02-03 12:47:11 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state binary_sensor.tapo_camera_motion=off; friendly_name=Tapo_Camera - Motion, device_class=motion @ 2021-02-03T13:47:11.577112+01:00>
2021-02-03 12:47:11 DEBUG (MainThread) [homeassistant.components.homekit.type_sensors] binary_sensor.tapo_camera_motion: Set to 0
2021-02-03 12:48:38 WARNING (MainThread) [homeassistant.helpers.entity] Update of camera.tapo_camera_hd is taking over 10 seconds
2021-02-03 12:48:58 WARNING (MainThread) [homeassistant.components.camera] Updating tapo_control camera took longer than the scheduled update interval 0:00:30
2021-02-03 12:52:25 WARNING (MainThread) [haffmpeg.tools] Timeout reading image.
2021-02-03 12:52:34 WARNING (MainThread) [haffmpeg.tools] Timeout reading image.
Right now, i can view RTSP stream in tapo app. but above errors in HA.
Stream in tapo app works differently to rtsp stream. Try maybe removing the home kit from the equation, see if it helps.
Closing this as this is not related to this integration.
Describe the bug Camera becomes unresponsive after adding to HA via Tapo control
To Reproduce Steps to reproduce the behavior:
Could you please link the issue you opened? it's support ticket with id: TKID210130188. comments from tplink support "It seems the issue is caused by the RTSP/Onvif."
Expected behavior stream accessible via HA
Log - Tapo C100 logs
Camera (please complete the following information):
Using stream component yes
Camera works through onvif component OR different cameras work in general [yes/no]
Camera has all attributes filled out properly in developer tools yes
HASS Environment docker
Additional context Add any other context about the problem here.