mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Add selectors to Input * service definitions (#46652)
This commit is contained in:
parent
39785c5cef
commit
da662c4890
@ -1,20 +1,14 @@
|
||||
toggle:
|
||||
description: Toggles an input boolean.
|
||||
fields:
|
||||
entity_id:
|
||||
description: Entity id of the input boolean to toggle.
|
||||
example: input_boolean.notify_alerts
|
||||
description: Toggle an input boolean
|
||||
target:
|
||||
|
||||
turn_off:
|
||||
description: Turns off an input boolean
|
||||
fields:
|
||||
entity_id:
|
||||
description: Entity id of the input boolean to turn off.
|
||||
example: input_boolean.notify_alerts
|
||||
description: Turn off an input boolean
|
||||
target:
|
||||
|
||||
turn_on:
|
||||
description: Turns on an input boolean.
|
||||
fields:
|
||||
entity_id:
|
||||
description: Entity id of the input boolean to turn on.
|
||||
example: input_boolean.notify_alerts
|
||||
description: Turn on an input boolean
|
||||
target:
|
||||
|
||||
reload:
|
||||
description: Reload the input_boolean configuration.
|
||||
description: Reload the input_boolean configuration
|
||||
|
@ -1,21 +1,36 @@
|
||||
set_datetime:
|
||||
description: This can be used to dynamically set the date and/or time. Use date/time, datetime or timestamp.
|
||||
description: This can be used to dynamically set the date and/or time
|
||||
target:
|
||||
fields:
|
||||
entity_id:
|
||||
description: Entity id of the input datetime to set the new value.
|
||||
example: input_datetime.test_date_time
|
||||
date:
|
||||
name: Date
|
||||
description: The target date the entity should be set to.
|
||||
example: '"2019-04-20"'
|
||||
selector:
|
||||
text:
|
||||
time:
|
||||
name: Time
|
||||
description: The target time the entity should be set to.
|
||||
example: '"05:04:20"'
|
||||
selector:
|
||||
time:
|
||||
datetime:
|
||||
name: Date & Time
|
||||
description: The target date & time the entity should be set to.
|
||||
example: '"2019-04-20 05:04:20"'
|
||||
selector:
|
||||
text:
|
||||
timestamp:
|
||||
description: The target date & time the entity should be set to as expressed by a UNIX timestamp.
|
||||
name: Timestamp
|
||||
description:
|
||||
The target date & time the entity should be set to as expressed by a
|
||||
UNIX timestamp.
|
||||
example: 1598027400
|
||||
selector:
|
||||
number:
|
||||
min: 0
|
||||
max: 9223372036854775807
|
||||
mode: box
|
||||
|
||||
reload:
|
||||
description: Reload the input_datetime configuration.
|
||||
description: Reload the input_datetime configuration
|
||||
|
@ -1,23 +1,25 @@
|
||||
decrement:
|
||||
description: Decrement the value of an input number entity by its stepping.
|
||||
fields:
|
||||
entity_id:
|
||||
description: Entity id of the input number that should be decremented.
|
||||
example: input_number.threshold
|
||||
description: Decrement the value of an input number entity by its stepping
|
||||
target:
|
||||
|
||||
increment:
|
||||
description: Increment the value of an input number entity by its stepping.
|
||||
fields:
|
||||
entity_id:
|
||||
description: Entity id of the input number that should be incremented.
|
||||
example: input_number.threshold
|
||||
description: Increment the value of an input number entity by its stepping
|
||||
target:
|
||||
|
||||
set_value:
|
||||
description: Set the value of an input number entity.
|
||||
description: Set the value of an input number entity
|
||||
target:
|
||||
fields:
|
||||
entity_id:
|
||||
description: Entity id of the input number to set the new value.
|
||||
example: input_number.threshold
|
||||
value:
|
||||
name: Value
|
||||
description: The target value the entity should be set to.
|
||||
required: true
|
||||
example: 42
|
||||
selector:
|
||||
number:
|
||||
min: 0
|
||||
max: 9223372036854775807
|
||||
step: 0.001
|
||||
mode: box
|
||||
reload:
|
||||
description: Reload the input_number configuration.
|
||||
|
@ -1,50 +1,58 @@
|
||||
select_next:
|
||||
description: Select the next options of an input select entity.
|
||||
description: Select the next options of an input select entity
|
||||
target:
|
||||
fields:
|
||||
entity_id:
|
||||
description: Entity id of the input select to select the next value for.
|
||||
example: input_select.my_select
|
||||
cycle:
|
||||
description: If the option should cycle from the last to the first (defaults to true).
|
||||
name: Cycle
|
||||
description: If the option should cycle from the last to the first.
|
||||
default: true
|
||||
example: true
|
||||
selector:
|
||||
boolean:
|
||||
|
||||
select_option:
|
||||
description: Select an option of an input select entity.
|
||||
description: Select an option of an input select entity
|
||||
target:
|
||||
fields:
|
||||
entity_id:
|
||||
description: Entity id of the input select to select the value.
|
||||
example: input_select.my_select
|
||||
option:
|
||||
name: Option
|
||||
description: Option to be selected.
|
||||
required: true
|
||||
example: '"Item A"'
|
||||
selector:
|
||||
text:
|
||||
|
||||
select_previous:
|
||||
description: Select the previous options of an input select entity.
|
||||
description: Select the previous options of an input select entity
|
||||
target:
|
||||
fields:
|
||||
entity_id:
|
||||
description: Entity id of the input select to select the previous value for.
|
||||
example: input_select.my_select
|
||||
cycle:
|
||||
description: If the option should cycle from the first to the last (defaults to true).
|
||||
name: Cycle
|
||||
description: If the option should cycle from the first to the last.
|
||||
default: true
|
||||
example: true
|
||||
selector:
|
||||
boolean:
|
||||
|
||||
select_first:
|
||||
description: Select the first option of an input select entity.
|
||||
fields:
|
||||
entity_id:
|
||||
description: Entity id of the input select to select the first value for.
|
||||
example: input_select.my_select
|
||||
description: Select the first option of an input select entity
|
||||
target:
|
||||
|
||||
select_last:
|
||||
description: Select the last option of an input select entity.
|
||||
fields:
|
||||
entity_id:
|
||||
description: Entity id of the input select to select the last value for.
|
||||
example: input_select.my_select
|
||||
description: Select the last option of an input select entity
|
||||
target:
|
||||
|
||||
set_options:
|
||||
description: Set the options of an input select entity.
|
||||
description: Set the options of an input select entity
|
||||
target:
|
||||
fields:
|
||||
entity_id:
|
||||
description: Entity id of the input select to set the new options for.
|
||||
example: input_select.my_select
|
||||
options:
|
||||
name: Options
|
||||
description: Options for the input select entity.
|
||||
required: true
|
||||
example: '["Item A", "Item B", "Item C"]'
|
||||
selector:
|
||||
object:
|
||||
|
||||
reload:
|
||||
description: Reload the input_select configuration.
|
||||
|
@ -1,11 +1,14 @@
|
||||
set_value:
|
||||
description: Set the value of an input text entity.
|
||||
description: Set the value of an input text entity
|
||||
target:
|
||||
fields:
|
||||
entity_id:
|
||||
description: Entity id of the input text to set the new value.
|
||||
example: input_text.text1
|
||||
value:
|
||||
name: Value
|
||||
description: The target value the entity should be set to.
|
||||
required: true
|
||||
example: This is an example text
|
||||
selector:
|
||||
text:
|
||||
|
||||
reload:
|
||||
description: Reload the input_text configuration.
|
||||
|
Loading…
x
Reference in New Issue
Block a user