Asking for help with creating "night light"

I am only 2 days into homeassistant, so please bear with me.

This is my first automation

I am trying to lower brightness of hue lights at night. Night condition is not implemented yet due to
testing.

My attempt is not working .Any help ia appriciated

id: '1672412534760'
alias: Ny automatisering
description: nat lys
trigger:
  - platform: state
    entity_id:
      - light.kontor_aktivitetsrum_i_77659
    for:
      hours: 0
      minutes: 0
      seconds: 0
    to: 'on'
condition: []
action:
  - service: scene.turn_on
    data:
      brightness: 10
    target:
      entity_id: scene.ny_scene
  - parallel:
      - repeat:
          count: '10'
          mode: single

Can you describe what you are trying to do more specifically…

Asking a Good Question

From what you have posted… there a couple problems

  1. brightness is not a valid key for a scene.turn_on service call. You can only use transition which will alter how long it takes for the light to change from it’s current state to the scene-defined state.
  2. Your parallel and repeat actions are not currently doing anything.