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