Control Hue Lights when Chromecast is in use

Hi,

Have been playing arround with HomeAssistant now for some hours.
All devices is connected and I want to automate.

I have been using the example config on Home Assistant homepage.
Can you please assist, I am not sure what I am doing wrong.

Config:

scene:

  • name: All_lights_normal
    entities:
    light.gangen:
    state: on
    transition: 2
    brightness: 150

    light.stue:
        state: on
        transition: 2
        brightness: 215
    
    light.soverom_1:
        state: on
        transition: 2
        brightness: 215
    
  • name: All_Lights_Dim
    entities:
    light.gangen:
    state: on
    transition: 2
    brightness: 75

    light.stue:
        state: on
        transition: 2
        brightness: 145
    

    light.soverom_1:
    state: on
    transition: 2
    brightness: 215

automation:

  • alias: “Media player paused/stopped”
    trigger:

    • platform: state
      entity_id: media_player.nameofmychromecast
      from: ‘playing’

    action:
    service: scene.turn_on
    entity_id: All_lights_normal

  • alias: “Media player playing”
    trigger:

    • platform: state
      entity_id: media_player.nameofmychromecast
      to: ‘playing’
      action:
      service: scene.turn_on
      entity_id: scene.All_Lights_Dim

Errorlog:
16-02-24 22:25:12 homeassistant.loader: Unable to find component service
16-02-24 22:25:13 homeassistant.loader: Unable to find component to
16-02-24 22:25:13 homeassistant.loader: Unable to find component light.stue
16-02-24 22:25:13 homeassistant.loader: Unable to find component light.soverom_1
16-02-24 22:25:13 homeassistant.loader: Unable to find component –
16-02-24 22:25:13 homeassistant.loader: Unable to find component entities
16-02-24 22:25:13 homeassistant.loader: Unable to find component action
16-02-24 22:25:13 homeassistant.loader: Unable to find component transition
16-02-24 22:25:13 homeassistant.loader: Unable to find component brightness
16-02-24 22:25:13 homeassistant.loader: Unable to find component light.gangen
16-02-24 22:25:13 homeassistant.loader: Unable to find component trigger
16-02-24 22:25:13 homeassistant.loader: Unable to find component state
16-02-24 22:25:13 homeassistant.loader: Unable to find component from
16-02-24 22:25:13 homeassistant.loader: Unable to find component entity_id
16-02-24 22:25:14 homeassistant.components.scene: Scene config should be a list of dictionaries
16-02-24 22:25:14 homeassistant.bootstrap: component scene failed to initialize
16-02-24 22:25:14 homeassistant.components.automation: Error setting up automation, no action specified.

Thanks in advance,

Alf Jonny

Hi!

I think you have some kind of formatting problem. Can you edit your post and put the yaml inside code block markdown? That will keep the indentation formatting of the yaml. Otherwise it’s very hard to know where the problem is.