Add selectors to Switch service definitions (#46635)

This commit is contained in:
Franck Nijhof 2021-02-18 12:24:42 +01:00 committed by GitHub
parent dec2eb36fd
commit c8c3ce4172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,22 +1,13 @@
# Describes the format for available switch services
turn_on:
description: Turn a switch on.
fields:
entity_id:
description: Name(s) of entities to turn on
example: "switch.living_room"
description: Turn a switch on
target:
turn_off:
description: Turn a switch off.
fields:
entity_id:
description: Name(s) of entities to turn off.
example: "switch.living_room"
description: Turn a switch off
target:
toggle:
description: Toggles a switch state.
fields:
entity_id:
description: Name(s) of entities to toggle.
example: "switch.living_room"
description: Toggles a switch state
target: