From e45fc4562b80a68ede88643107e50abf42a4f380 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 18 Feb 2021 12:25:16 +0100 Subject: [PATCH] Add selectors to Cover service definitions (#46634) Co-authored-by: Tobias Sauerwein --- homeassistant/components/cover/services.yaml | 90 +++++++++----------- 1 file changed, 40 insertions(+), 50 deletions(-) diff --git a/homeassistant/components/cover/services.yaml b/homeassistant/components/cover/services.yaml index 604955aa199..173674193cb 100644 --- a/homeassistant/components/cover/services.yaml +++ b/homeassistant/components/cover/services.yaml @@ -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: