ESCAM QF001 com ptz a funcionar:
configuration.yaml
ffmpeg:
camera:
- platform: ffmpeg
input: rtsp://192.168.1.10:554/user=user&password=pass&channel=1&stream=1.sdp?real_stream--rtp-caching=100
name: Entrada
shell_command:
camera_down: curl -k "http://user:pass@192.168.1.10/command=ptz_req&req=start¶m=directiondown&channel=1&stream=1"
camera_up: curl -k "http://user:pass@192.168.1.10/command=ptz_req&req=start¶m=directionup&channel=1&stream=1"
camera_right: curl -k "http://user:pass@192.168.1.10/command=ptz_req&req=start¶m=directionright&channel=1&stream=1"
camera_left: curl -k "http://user:pass@192.168.1.10/command=ptz_req&req=start¶m=directionleft&channel=1&stream=1"
camera_stop_up: curl -k "http://user:pass@192.168.1.10/command=ptz_req&req=stop¶m=directionup&channel=1&stream=1"
camera_stop_left: curl -k "http://user:pass@192.168.1.10/command=ptz_req&req=stop¶m=directionleft&channel=1&stream=1"
camera_stop_right: curl -k "http://user:pass@192.168.1.10/command=ptz_req&req=stop¶m=directionright&channel=1&stream=1"
camera_stop_down: curl -k "http://user:pass@192.168.1.10/command=ptz_req&req=stop¶m=directiondown&channel=1&stream=1"
scripts.yaml
ptz_tilt_up:
sequence:
- service: shell_command.camera_up
- service: shell_command.camera_stop_up
data:
entity_id: 'camera.entrada'
ptz_tilt_down:
sequence:
- service: shell_command.camera_down
- service: shell_command.camera_stop_down
data:
entity_id: 'camera.entrada'
ptz_pan_left:
sequence:
- service: shell_command.camera_left
- service: shell_command.camera_stop_left
data:
entity_id: 'camera.entrada'
ptz_pan_right:
sequence:
- service: shell_command.camera_right
- service: shell_command.camera_stop_right
data:
entity_id: 'camera.entrada'
lovelace:
aspect_ratio: 60%
camera_image: camera.entrada
camera_view: live
entities:
- entity: script.ptz_pan_left
tap_action:
action: toggle
- entity: script.ptz_pan_right
icon: 'mdi:arrow-right-bold'
tap_action:
action: toggle
- entity: script.ptz_tilt_up
icon: 'mdi:arrow-up-bold'
tap_action:
action: toggle
- entity: script.ptz_tilt_down
icon: 'mdi:arrow-down-bold'
tap_action:
action: toggle
type: picture-glance
Espero que seja util mesmo para outras cameras por rtsp ou mesmo por onvip, quase todas dão para utilizar o PTZ e deixar a cloud de vez, o audio é que já não é tão simples.