type: custom:webrtc-camera
entity: camera.ke_ting_she_xiang_tou_mainstream
title: 客厅摄像头
poster: https://home-assistant.io/images/cast/splash.png
intersection: 0.75
muted: false
ui: true
shortcuts:
top: 0
left: 0
orientation: vertical
services:
- name: Record
icon: mdi:record-circle-outline
service: switch.toggle
service_data:
entity_id: switch.camera_record
background: true
ptz:
service: onvif.ptz
data_left:
entity_id: camera.ke_ting_she_xiang_tou_mainstream
pan: LEFT
data_right:
entity_id: camera.ke_ting_she_xiang_tou_mainstream
pan: RIGHT
data_up:
entity_id: camera.ke_ting_she_xiang_tou_mainstream
tilt: UP
data_down:
entity_id: camera.ke_ting_she_xiang_tou_mainstream
tilt: DOWN
data_zoom_in:
entity_id: camera.ke_ting_she_xiang_tou_mainstream
zoom: ZOOM_IN
data_zoom_out:
entity_id: camera.ke_ting_she_xiang_tou_mainstream
zoom: ZOOM_OUT
mse: false
webrtc: true
mode: webrtc,mse,mp4,mjpeg
我这个放大缩小不能用,上下左右可以的。 |