Hello, i am trying to do an automation to enable an effect on the Shelly Bulb RGBW (SHCB-1). It works with assist to control the bulb to turn on and off but i dont know how to do the yaml config for the effects.
This one automation config is working correctly to turn the bulb on:
alias: lampe on
description: ""
trigger:
- platform: conversation
command:
- turn the light on
condition: []
action:
- type: turn_on
device_id: ..............
entity_id: ..................
domain: light
brightness_pct: 80
mode: single
This are the possible states for the bulb (copied from dev/states)
min_color_temp_kelvin: 3000
max_color_temp_kelvin: 6500
min_mireds: 153
max_mireds: 333
effect_list:
- "Off"
- Meteor Shower
- Gradual Change
- Flash
supported_color_modes:
- color_temp
- rgb
color_mode: rgb
brightness: 204
color_temp_kelvin: null
color_temp: null
hs_color:
- 238.353
- 100
rgb_color:
- 0
- 7
- 255
xy_color:
- 0.136
- 0.041
effect: "Off"
friendly_name: Lampe
supported_features: 36
For example i try to add effect: “Flash” to the automation config, but this error appears “Message malformed: extra keys not allowed @ data[‘effect’]”. I think im doing something wrong with the syntax.