#
# Imou IP wifi cam Ranger 2
# The device was added through ONVIF integration. Ip is the address on the local network,
# the port is 80, the user is always admin while the password is under the cam (safety code) or
# the one set via the app
#
# pay close attention to Indentation and separation, look YAML Indentation and separation rules
#
title: Home
views:
- title: Cam
path: Cam
badges: []
cards:
- type: picture-glance
entities:
- entity: camera.ip_camera_profile000
tap_action:
action: call-service
service: onvif.ptz
service_data:
pan: LEFT
speed: 1
distance: 1
move_mode: ContinuousMove
target:
entity_id: camera.ip_camera_profile000
name: Pan Left
show_state: false
icon: mdi:arrow-left
show_icon: true
- entity: camera.ip_camera_profile000
tap_action:
action: call-service
service: onvif.ptz
service_data:
tilt: UP
speed: 1
distance: 0.3
move_mode: ContinuousMove
target:
entity_id: camera.ip_camera_profile000
name: Pan Up
show_state: false
icon: mdi:arrow-up
show_icon: true
- entity: camera.ip_camera_profile000
tap_action:
action: call-service
service: onvif.ptz
service_data:
pan: RIGHT
speed: 1
distance: 1
move_mode: ContinuousMove
target:
entity_id: camera.ip_camera_profile000
name: Pan right
show_state: false
icon: mdi:arrow-right
show_icon: true
- entity: camera.ip_camera_profile000
tap_action:
action: call-service
service: onvif.ptz
service_data:
tilt: DOWN
speed: 1
distance: 0.3
move_mode: ContinuousMove
target:
entity_id: camera.ip_camera_profile000
name: Pan down
show_state: false
icon: mdi:arrow-down
show_icon: true
camera_image: camera.ip_camera_profile000
camera_view: live
Hi, very impressed to see you got the Ranger 2 working!
I have a problem, REALLY hoping for some help;)
I have two Ranger 2. the One, older, is the 2 MegaPixel model. The second is new, and its 4 MP.
0 - which model do you have?
1 - The 2MP gets added by the ONVIF integration, BUT I do not see the yaml code anywhere. And I do not have working the PTZ, or intercom. Where should I look for the code you placed above? Or where should I put it, if that is what I should do?
2 - The 4 MP gets added, BUT - if I click on the profile000 entity and then the slider-looking symbol in the popup box in the top right, I get a dark grey screen, and after several seconds an error message: “Error starting stream, see logs for details (Stream never started)”
I have no idea how to fix this, or where the logs for this inetgration are.
All help VERY welcome!
All the best
Buddy, you are my GREAT friend. How much did I find and tested to make it work.
Unfortunally but my imou ranger 2 doesn’t accept Pan Tilt command via onvif.ptz service . . . any suggest ?
Thanks
Paolo
There is a new integration for HACS called Imou Live.
Same here…
Did you find a solution? Do you also have the 4MP version?
Ah great, that seems to be able to integrate most features into Home Assistant. Unfortunate it uses their cloud API. I would like to use it locally…
At the end i i connect locally . .no management move control sorry
hello p2baron
you can use ONVIF integration connected directly but no pan & tilt management or HACS integration but with their cloud
I am not sure if anything has changed by I am able to pan and tilt the camera from Home Assistant now.
My camera is a Dahua Ranger 2 4MP.
edit Only ContinuousMove seems to be working. Presets and home unfortunately also doesn’t work.
Excelent work!! … There is an identation problem … very easy to fix on the Down part of the code… Fixed
Deployed… Thanks!!