Automation Error: Dim Lights using Chromecast

Hey Guys,

Was hoping someone can help me out here. Im receiving an error that my automations are invalid. The two automations below were the only ones not showing on the frontend. I comment them out and the error goes away. They have been working great but all of the sudden they dont work and I haven’t changed anything with it. Below are my automations along with the scripts I call. Any help would be appreciated!

Automation 1:
    alias: "Media Player Playing"
    initial_state: 'on'
    trigger:
      - platform: state
        entity_id: media_player.kafka_cast_main
        to: 'playing'
    condition:
      - condition: state
        entity_id: sun.sun
        to: below_horizon
    action:
      - service: script.media_player_playing

Automation 2:
    alias: "Media Player Stopped"
    initial_state: 'on'
    trigger:
      - platform: state
        entity_id: media_player.kafka_cast_main
        to: 'off'
    condition:
      - condition: state
        entity_id: sun.sun
        to: below_horizon
    action:
      - service: script.media_player_stopped

Script 1
sequence:
- service: homeassistant.turn_on
  data:
    entity_id: group.living_room
    brightness: 150
    color_temp: 200
    rgb_color: [255,200,118]
    transition: 5
- service: light.turn_on
  data:
    entity_id: light.hue_hallway_1
    brightness: 150
    color_temp: 200
    rgb_color: [255,200,118]
    transition: 5

Script 2:
sequence:
- service: homeassistant.turn_on
  data:
    entity_id: group.living_room
    brightness: 254
    color_temp: 366
    rgb_color: [255,200,118]
    transition: 5
- service: light.turn_on
  data:
    entity_id: light.hue_hallway_1
    brightness: 254
    color_temp: 366
    rgb_color: [255,200,118]
    transition: 5

You need service: script.turn_on
entity-id: script.media_player_playing

made the changes and tried again…automation error came back.

So you call “service: script.media_player_playing”
but your script is not named like that? “Script 1”

Also maybe try adding the first automation first. Then check if that fails or not. Then add the second etc.

@djkmod83 any progress?

I rebuilt HA, going to try tonight if I have time