homeassistant/custom_components/variable/services.yaml

26 lines
814 B
YAML

# Example services.yaml entry
set_variable:
# Description of the service
description: Update a variables value and/or its attributes.
# Different fields that your service accepts
fields:
# Key of the field
variable:
description: string (required) The name of the variable to update
value:
description: any (optional) New value to set
value_template:
description: template (optional) New value to set from a template
attributes:
description: dictionary (optional) Attributes to set or update
attributes_template:
description: template (optional) Attributes to set or update from a template ( should return a json object )
replace_attributes:
description: boolean ( optional ) Replace or merge current attributes (default false = merge)