This pull request adds support for accessing Hikvision cameras outside of the Home Assistant network.
Use Case example:
Home Assistant is in a house and cameras are in another house. So, HA accesses the cameras with an external address https://mysecondhoud.domain and the cameras send alert messages to HA with the address https://ha.myfirsthouse.domain
For this, on the router of the second house, we have to configure NAT like that:
Device
Inner port
Outside port
Info
CAM 1
554
5001
RTSP
CAM 1
443
4001
HTTPS
CAM 2
554
5002
RTSP
CAM 2
443
4002
HTTPS
To manage this use case, the key changes are:
Allow user to force RTSP port to access camera
Fix server alarm address management to allow user to set an url with hostname (and not only ip)
Fix "Device search" in sensor management to find the good device by macAddress (because hostname/ip are the same for all the cameras)
This pull request adds support for accessing Hikvision cameras outside of the Home Assistant network.
Use Case example: Home Assistant is in a house and cameras are in another house. So, HA accesses the cameras with an external address https://mysecondhoud.domain and the cameras send alert messages to HA with the address https://ha.myfirsthouse.domain
To manage this use case, the key changes are:
Other changes:
Note: I'm not a python developper so maybe there is better way to test on windows et manage loading several device in one unit test