Christmas bulbs w/ Ikea Tradfri

Hi I’m trying to have my ikea tradfri bulbs that are configured through my hue bridge cycle through red and green every 30sec and then repeat and stop at midnight… I used the UI to configure the automation but it would not run. Any suggestions on what I’m doing wrong? Thanks in advance! Sorry if I screwed up the code brackets, I just can’t seem to figure out the right way.

’ ’ ’
alias: Christmas bulbs
description: ‘’
trigger:

  • platform: time
    at: ‘17:00:00’
    condition: []
    action:
  • service: light.turn_on
    data:
    entity_id: Light.porchgaragelight, Light.porchpostlight, Light.porchseatlight
    brightness: 100
    rgb_color:
    • 255
    • 0
    • 0
      ’ ’ ’
      ’ ’ ’
      ""delay: 00:00:30
  • service: light.turn_on
    data:
    entity_id: Light.porchgaragelight, Light.porchpostlight, Light.porchseatlight
    brightness: 100
    rgb_color:
    • 0
    • 128
    • 0
      ’ ’ ’

" repeat: "
count: ‘2’
sequence: []
mode: single

Difficult to say this way. This ’ ’ ’ should be ```, so we can read your code.

Is this better?
This is the code I was able to get to turn the lights red at 5:05.
I was hoping I could have the bulbs change from red to green like every 5 secs

alias: Christmas lights
  trigger:
  - platform: time
    at: '20:39:00'
  action:
  - service: light.turn_on
    data:
        brightness: 120
        rgb_color: [255, 0, 0]
    entity_id: light.porchpostbulb, light.porchseatbulb, light.porchgaragebulb
  mode: single

If that works, try

alias: Christmas lights
  trigger:
  - platform: time
    at: '20:39:00'
  action:
  - service: light.turn_on
    data:
        brightness: 120
        rgb_color: [255, 0, 0]
  - delay: 0:00:30
  - service: light.turn_on
    data:
        brightness: 120
        rgb_color: [0, 128, 0]
  - service: light.turn_on
    data:
        brightness: 120
        rgb_color: [0, 0, 128]
    entity_id: light.porchpostbulb, light.porchseatbulb, light.porchgaragebulb
  mode: single

Hi thanks for your help so far.
I was able to get the lights to change from red to green based off of your suggestions but I still can’t get it to repeat. I read up on the new repeat functionality but I just couldn’t get it to work properly, any thoughts? I tried changing the mode from single to restart but I think I’m interpreting the functionality wrong.
I primarily use the UI to configure my automations. Thanks for your help

- id: halloween
  alias: Christmas lights
  trigger:
  - platform: time
    at: '21:05:00'
  action:
  - service: light.turn_on
    data:
      brightness: 120
      rgb_color:
      - 0
      - 128
      - 0
    entity_id: light.porchpostbulb, light.porchseatbulb, light.porchgaragebulb
  - delay: 00:00:10
  - service: light.turn_on
    data:
      brightness: 120
      rgb_color:
      - 228
      - 10
      - 45
    entity_id: light.porchpostbulb, light.porchseatbulb, light.porchgaragebulb
  mode: single

Hi,
Just wondering if anyone can help me with this. I would like the lights to turn red and then turn green at a 30sec interval.
Thanks!