Add selectors to group services (#49779)

This commit is contained in:
tkdrob 2021-04-27 14:37:59 -04:00 committed by GitHub
parent 81264ff759
commit 6df19205da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,32 +1,59 @@
# Describes the format for available group services
reload:
name: Reload
description: Reload group configuration, entities, and notify services.
set:
name: Set
description: Create/Update a user group.
fields:
object_id:
name: Object ID
description: Group id and part of entity id.
required: true
example: "test_group"
selector:
text:
name:
name: Name
description: Name of group
example: "My test group"
selector:
text:
icon:
name: Icon
description: Name of icon for the group.
example: "mdi:camera"
selector:
text:
entities:
name: Entities
description: List of all members in the group. Not compatible with 'delta'.
example: domain.entity_id1, domain.entity_id2
selector:
object:
add_entities:
name: Add Entities
description: List of members they will change on group listening.
example: domain.entity_id1, domain.entity_id2
selector:
object:
all:
name: All
description: Enable this option if the group should only turn on when all entities are on.
example: true
selector:
boolean:
remove:
name: Remove
description: Remove a user group.
fields:
object_id:
name: Object ID
description: Group id and part of entity id.
required: true
example: "test_group"
selector:
entity:
domain: group