Add selectors to Automation service definitions (#46629)

pull/46728/head
Franck Nijhof 2021-02-18 12:25:25 +01:00 committed by GitHub
parent e45fc4562b
commit bc1cb8f0a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 22 deletions

View File

@ -1,37 +1,35 @@
# Describes the format for available automation services # Describes the format for available automation services
turn_on: turn_on:
description: Enable an automation. description: Enable an automation
fields: target:
entity_id:
description: Name of the automation to turn on.
example: "automation.notify_home"
turn_off: turn_off:
description: Disable an automation. description: Disable an automation
target:
fields: fields:
entity_id:
description: Name of the automation to turn off.
example: "automation.notify_home"
stop_actions: stop_actions:
description: Stop currently running actions (defaults to true). name: Stop actions
example: false description: Stop currently running actions.
default: true
example: true
selector:
boolean:
toggle: toggle:
description: Toggle an automation. description: Toggle an automation
fields: target:
entity_id:
description: Name of the automation to toggle on/off.
example: "automation.notify_home"
trigger: trigger:
description: Trigger the action of an automation. description: Trigger the action of an automation
target:
fields: fields:
entity_id:
description: Name of the automation to trigger.
example: "automation.notify_home"
skip_condition: skip_condition:
description: Whether or not the condition will be skipped (defaults to true). name: Skip conditions
description: Whether or not the condition will be skipped.
default: true
example: true example: true
selector:
boolean:
reload: reload:
description: Reload the automation configuration. description: Reload the automation configuration