roleoroleo / yi-hack_ha_integration

Home Assistant custom integration for Yi cameras: yi-hack-MStar, yi-hack-Allwinner, yi-hack-Allwinner-v2, yi-hack-v5 and sonoff-hack
GNU General Public License v3.0
205 stars 32 forks source link

Component tries to connect with local IP address while remote has been given in setup #85

Closed xzaz closed 2 months ago

xzaz commented 2 years ago

Situation: My HA is hosted externally and I want to add the cam. Everything works fine until I add it to the dashboard.

2022-05-16 09:29:23 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.yi_hack_a2_713b1a_cam] Error from stream worker: Error opening stream (ERRORTYPE_110, Operation timed out) rtsp://****:****@192.168.178.29/ch0_0.h264

It tries to connect to the cam on the local IP address.

So basically its this rule: https://github.com/roleoroleo/yi-hack_ha_integration/blob/main/custom_components/yi_hack/camera.py#L192

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.