Can someone help me out with the proper config to do this? I tried a few different ways but each time I failed the “Check Configuration”. Below is my current config and it works fine to turn the light on. I would like to get it to alternate between two or more colors.
- alias: Turn on Front Door light when there is motion
trigger:
platform: state
entity_id:
- binary_sensor.front_door_motion
- binary_sensor.driveway_motion
- binary_sensor.wyzesense_77810969
- binary_sensor.wyzesense_77834076
to: 'on'
action:
service: light.turn_on
data:
entity_id: light.frontdoorlight
rgb_color: [255, 255, 255]
brightness: 255
transition: 50