hass-core/homeassistant/components/camera/services.yaml
Franck Nijhof 76e3272432
Migrate camera services to support translations (#96313)
* Migrate camera services to support translations

* Apply suggestions from code review

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>

* Update homeassistant/components/camera/strings.json

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>

---------

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
2023-07-11 21:59:08 +02:00

74 lines
1.2 KiB
YAML

# Describes the format for available camera services
turn_off:
target:
entity:
domain: camera
turn_on:
target:
entity:
domain: camera
enable_motion_detection:
target:
entity:
domain: camera
disable_motion_detection:
target:
entity:
domain: camera
snapshot:
target:
entity:
domain: camera
fields:
filename:
required: true
example: "/tmp/snapshot_{{ entity_id.name }}.jpg"
selector:
text:
play_stream:
target:
entity:
domain: camera
fields:
media_player:
required: true
selector:
entity:
domain: media_player
format:
default: "hls"
selector:
select:
options:
- "hls"
record:
target:
entity:
domain: camera
fields:
filename:
required: true
example: "/tmp/snapshot_{{ entity_id.name }}.mp4"
selector:
text:
duration:
default: 30
selector:
number:
min: 1
max: 3600
unit_of_measurement: seconds
lookback:
default: 0
selector:
number:
min: 0
max: 300
unit_of_measurement: seconds