1
mirror of https://github.com/home-assistant/core synced 2024-08-31 05:57:13 +02:00
ha-core/homeassistant/components/camera/services.yaml
Franck Nijhof ea4bbd771f
Add service names to previously enriched services (#46929)
Co-authored-by: Tobias Sauerwein <cgtobi@users.noreply.github.com>
2021-02-23 14:10:13 +01:00

97 lines
2.2 KiB
YAML

# Describes the format for available camera services
turn_off:
name: Turn off
description: Turn off camera.
target:
turn_on:
name: Turn on
description: Turn on camera.
target:
enable_motion_detection:
name: Enable motion detection
description: Enable the motion detection in a camera.
target:
disable_motion_detection:
name: Disable motion detection
description: Disable the motion detection in a camera.
target:
snapshot:
name: Take snapshot
description: Take a snapshot from a camera.
target:
fields:
filename:
name: Filename
description: Template of a Filename. Variable is entity_id.
required: true
example: "/tmp/snapshot_{{ entity_id.name }}.jpg"
selector:
text:
play_stream:
name: Play stream
description: Play camera stream on supported media player.
target:
fields:
media_player:
name: Media Player
description: Name(s) of media player to stream to.
required: true
example: "media_player.living_room_tv"
selector:
entity:
domain: media_player
format:
name: Format
description: Stream format supported by media player.
default: "hls"
example: "hls"
selector:
select:
options:
- "hls"
record:
name: Record
description: Record live camera feed.
target:
fields:
filename:
name: Filename
description: Template of a Filename. Variable is entity_id. Must be mp4.
required: true
example: "/tmp/snapshot_{{ entity_id.name }}.mp4"
selector:
text:
duration:
name: Duration
description: Target recording length.
default: 30
example: 30
selector:
number:
min: 1
max: 3600
step: 1
unit_of_measurement: seconds
mode: slider
lookback:
name: Lookback
description:
Target lookback period to include in addition to duration. Only
available if there is currently an active HLS stream.
default: 0
example: 4
selector:
number:
min: 0
max: 300
step: 1
unit_of_measurement: seconds
mode: slider