Having difficulty with scenes

hi all

I am very new to configuring the home assistant

I am getting this error when i click ‘check config’

Error loading /config/configuration.yaml: mapping values are not allowed here
in “/config/configuration.yaml”, line 134, column 22

scene:
  - name: bedroom_normal
    entities: 
      light.bedside_light
        state: 'on'
        transition: 2
        brightness_pct: 80
  - name: bedroom_dim
    entities: 
      light.bedside_light
        state: 'on'
        transition: 2
        brightness_pct: 10

Any help is appreciated …

use a colon after the light. Quotes are not necessary:

 - name: bedroom_normal
    entities: 
      light.bedside_light:
        state: on
        transition: 2
        brightness_pct: 80

you can btw use a nicer name i the scripts, the HA engine will create the correct scene name for you internally:

 - name: Bedroom normal
    entities: 
      light.bedside_light:
        state: on
        transition: 2
        brightness_pct: 80
1 Like

Thank you so much… will test it out…

It worked… no errors

Thank you so much

cool. please check the code above again. Below I’ve corrected a slip in the spacing of the entities: which should be in line with the name: field as follows:

 - name: Bedroom normal
   entities: 
     light.bedside_light:
       state: on
       transition: 2
       brightness_pct: 80