Use this in a Home Assistant Automation or Script to start a candle light effect on a bulb.
action:
- service: pyscript.candle_light
data:
entity_id: light.living_overhead
state: 'on' #use 'off' to stop the effect
brightness: 12 #optional
color_temp: 450 #optional