I took advantage of an online offer to replace my 720p cameras (documented in their own saga 2 years ago ( Fun had with Vstarcam C7837WIP ) with 3 x 5MP Reolink E1 Zoom cameras.
Reolink seem like a good option in Europe because of their decent pricing, lack of availability of the Amcrest cameras the US users seem crazy about and pretty good online guides available. While those guides on Reolink’s website were very useful in plugging in some gaps, I could not find one place on the Internet which would teach me to:
- have cloud-free control over the cameras
- have full pan-tilt controls working in HA
- have access to the position presets in order to use them in automations
I initially tried to use Blue Iris, but that did NOT go well (the cameras would be added and then appear disconnected after a few mins, even though they worked fine in their web UI, the local Reolink apps, HA, etc.), so I tried to have everything I needed in HA, which did ultimately go perfectly.
- After connecting the cameras to WiFi via the Reolink mobile app, assign static IPs to the cameras, either via DHCP reservations on your router or from the Reolink Windows app
- Add the ONVIF integration to HA, with the camera settings being their allocated IPs, port 8000, user “admin” and password whatever you set in the initial app-based setup
- Add whatever position presets you need in the Reolink app (in the list of positions 1 in Reolink = ‘000’ in HA, 2 = ‘001’ in HA and so on) - this only worked in Windows or the web UI, on my Galaxy S20 the mobile app had a bug which made the preset editor disappear every time I tried to add a preset)
- Create a Lovelace card:
type: picture-glance
title: Living Room
camera_image: camera.living_room_new_camera_profile000_mainstream
camera_view: live
entities:
- entity: camera.living_room_new_camera_profile000_mainstream
icon: 'mdi:arrow-down-drop-circle-outline'
tap_action:
action: call-service
service: onvif.ptz
service_data:
entity_id: camera.living_room_new_camera_profile000_mainstream
tilt: DOWN
move_mode: ContinuousMove
- entity: camera.living_room_new_camera_profile000_mainstream
icon: 'mdi:arrow-up-drop-circle-outline'
tap_action:
action: call-service
service: onvif.ptz
service_data:
entity_id: camera.living_room_new_camera_profile000_mainstream
tilt: UP
move_mode: ContinuousMove
- entity: camera.living_room_new_camera_profile000_mainstream
icon: 'mdi:arrow-left-drop-circle-outline'
tap_action:
action: call-service
service: onvif.ptz
service_data:
entity_id: camera.living_room_new_camera_profile000_mainstream
pan: LEFT
move_mode: ContinuousMove
- entity: camera.living_room_new_camera_profile000_mainstream
icon: 'mdi:arrow-right-drop-circle-outline'
tap_action:
action: call-service
service: onvif.ptz
service_data:
entity_id: camera.living_room_new_camera_profile000_mainstream
pan: RIGHT
move_mode: ContinuousMove
- entity: camera.living_room_new_camera_profile000_mainstream
icon: 'mdi:wall'
tap_action:
action: call-service
service: onvif.ptz
service_data:
entity_id: camera.living_room_new_camera_profile000_mainstream
preset: '000'
move_mode: GotoPreset
- entity: camera.living_room_new_camera_profile000_mainstream
icon: 'mdi:sofa'
tap_action:
action: call-service
service: onvif.ptz
service_data:
entity_id: camera.living_room_new_camera_profile000_mainstream
preset: '001'
move_mode: GotoPreset
- Create scripts that access the presets if you want automations like “Turn the cameras to the wall when I get home”
living_room_camera_back_to_wall:
alias: Living Room Camera Back To Wall
sequence:
- service: onvif.ptz
data:
entity_id: camera.living_room_new_camera_profile000_mainstream
preset: '000'
move_mode: GotoPreset
living_room_camera_room_view:
alias: Living Room Camera Room View
sequence:
- service: onvif.ptz
data:
entity_id: camera.living_room_new_camera_profile000_mainstream
preset: '001'
move_mode: GotoPreset
- If you need the camera live jpeg snapshot, its format is this:
- Enjoy!
**P.S. It has in the meantime come to my attention that Reolink cameras use some weird P2P network thing for access outside the house. Thus, even if you only assign an internal IP and never sign up for any account with them, their app allows you access to the cameras from outside the house via a process described at http://www.nozominetworks.com/blog/new-reolink-p2p-vulnerabilities-show-iot-security-camera-risks/ - I highly recommend blocking their Internet access at router level and using HA’s NTP addon for time sync + a VPN (like the HA Wireguard addon) to get to them from outside the house.
This approach does not work with their official phone app (killing their Internet access makes them only work via the webUI and Windows app from within the LAN from what I can see), but works fine on the phone with a VPN and apps like tinyCam.**