Hey guys,
I’m pretty new to HA, and have run into a small issue.
I’m trying to create a toggle for my WLED strip, whilst setting the effect.
alias: WLED-Alex-Bedroom-Light-Double
description: Utilises Shelly wireless buttons
trigger:
- platform: device
device_id: eb2daf9c4a0c41f0df37745322295b0d
domain: shelly
type: double
subtype: button
- platform: device
device_id: 7ba57111a513a9aeef80f219b1c519bc
domain: shelly
type: double
subtype: button
condition: []
action:
- service: light.toggle
metadata: {}
data:
brightness_pct: 100
color_name: white
effect: {{ state_attr('light.wled_bedroom', 'effect_list') | Solid }}
target:
entity_id: light.wled_bedroom
mode: single
Getting the following error:
Message malformed: template value should be a string for dictionary value @ data['action'][0]['data']
I got the config from: WLED - Home Assistant
The reason I’m defining the effect is that I have a sunrise alarm automation which sets a particular effect, so I’m trying to revert it, and given that the WLED integration doesn’t seem to list “effect” as something we can easily change, I’m not quite sure how else I can do this.
Cheers for any help!