I’m getting this error when trying to pass a template to the data:
of the light.turn_on
service. I don’t get the error when passing a template to the target:
. I don’t want to list out the attributes because I would like to arbitrarily use other attributes when calling this script from an automation.
Message malformed: expected dict for dictionary value @ data['sequence'][0]['data']
alias: TestAutoLight
description: Autiomatically turns on lights with settings for the time of day
mode: parallel
max: 20
variables:
input_target:
entity_id: "{{ states('sensor.lights_on') }}"
input_data:
brightness_pct: "{{ states('sensor.autolight_brightness') }}"
kelvin: "{{ states('sensor.autolight_color_tempurature') }}"
fields:
input_target:
name: Target
description: Target to auto light
required: false
example: light.bedroom_lights
selector:
target:
entity:
domain: light
input_data:
name: Data
description: Data for action
required: false
example: "{'brightness_pct': 50, 'transiiton': 10}"
selector:
object:
sequence:
- service: light.turn_on
target: "{{ input_target }}"
data: "{{ input_data }}"