1
mirror of https://github.com/home-assistant/core synced 2024-09-06 10:29:55 +02:00

Add selectors to Cover service definitions (#46634)

Co-authored-by: Tobias Sauerwein <cgtobi@users.noreply.github.com>
This commit is contained in:
Franck Nijhof 2021-02-18 12:25:16 +01:00 committed by GitHub
parent 2dfbd4fbcf
commit e45fc4562b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,77 +1,67 @@
# Describes the format for available cover services
open_cover:
description: Open all or specified cover.
fields:
entity_id:
description: Name(s) of cover(s) to open.
example: "cover.living_room"
description: Open all or specified cover
target:
close_cover:
description: Close all or specified cover.
fields:
entity_id:
description: Name(s) of cover(s) to close.
example: "cover.living_room"
description: Close all or specified cover
target:
toggle:
description: Toggles a cover open/closed.
fields:
entity_id:
description: Name(s) of cover(s) to toggle.
example: "cover.garage_door"
description: Toggles a cover open/closed
target:
set_cover_position:
description: Move to specific position all or specified cover.
description: Move to specific position all or specified cover
target:
fields:
entity_id:
description: Name(s) of cover(s) to set cover position.
example: "cover.living_room"
position:
description: Position of the cover (0 to 100).
name: Position
description: Position of the cover
required: true
example: 30
selector:
number:
min: 0
max: 100
step: 1
unit_of_measurement: "%"
mode: slider
stop_cover:
description: Stop all or specified cover.
fields:
entity_id:
description: Name(s) of cover(s) to stop.
example: "cover.living_room"
description: Stop all or specified cover
target:
open_cover_tilt:
description: Open all or specified cover tilt.
fields:
entity_id:
description: Name(s) of cover(s) tilt to open.
example: "cover.living_room_blinds"
description: Open all or specified cover tilt
target:
close_cover_tilt:
description: Close all or specified cover tilt.
fields:
entity_id:
description: Name(s) of cover(s) to close tilt.
example: "cover.living_room_blinds"
description: Close all or specified cover tilt
target:
toggle_cover_tilt:
description: Toggles a cover tilt open/closed.
fields:
entity_id:
description: Name(s) of cover(s) to toggle tilt.
example: "cover.living_room_blinds"
description: Toggle a cover tilt open/closed
target:
set_cover_tilt_position:
description: Move to specific position all or specified cover tilt.
description: Move to specific position all or specified cover tilt
target:
fields:
entity_id:
description: Name(s) of cover(s) to set cover tilt position.
example: "cover.living_room_blinds"
tilt_position:
description: Tilt position of the cover (0 to 100).
name: Tilt position
description: Tilt position of the cover.
required: true
example: 30
selector:
number:
min: 0
max: 100
step: 1
unit_of_measurement: "%"
mode: slider
stop_cover_tilt:
description: Stop all or specified cover.
fields:
entity_id:
description: Name(s) of cover(s) to stop.
example: "cover.living_room_blinds"
description: Stop all or specified cover
target: