LimitlessLED configuration problem

Hi there,

I have a problem coding a not to complicated task which has to switch on 4 light when entering home after sunset and set brightness levels per lamp (= zone).

This code works fine:

- alias: 'Rule 1 - Lights on when entering after sunset'
  trigger:
    - platform: sun
      event: sunset
      offset: '-00:20:00'
    - platform: state
      entity_id: group.all_devices
      state: 'home'
  action:
    service: light.turn_on
    entity_id: group.living_room

This works as well:

- alias: 'Rule 1 - Lights on when entering after sunset'
  trigger:
    - platform: sun
      event: sunset
      offset: '-00:20:00'
    - platform: state
      entity_id: group.all_devices
      state: 'home'
  - action:
    service: light.turn_on
    data:
     entity_id: light.hall_way
     brightness: 125

It just can’t figure out why the h*ll this does NOT work:

- alias: 'Rule 1 - Lights on when entering after sunset'
  trigger:
    - platform: sun
      event: sunset
      offset: '-00:20:00'
    - platform: state
      entity_id: group.all_devices
      state: 'home'
  - action:
    service: light.turn_on
    data:
      entity_id: light.hall_way
      brightness: 125
  - action:
    service: light.turn_on
    data:
      entity_id: light.diner_table
      brightness: 125
  - action:
    service: light.turn_on
    data:
      entity_id: light.living_room
      brightness: 140
  - action:
    service: light.turn_on
    data:
      entity_id: light.PC
      brightness: 240

It’s driving me crazy, help is much appriciated!

Each automation has one action: with multiple service calls underneath. No dash -

action:
  - service: ...
    entity_id:
    data...
    
  - service:
    data...
1 Like

Hallelujah! Thanks a million.

Working:

- alias: 'Rule 1 - Lights on when entering after sunset'
  trigger:
    - platform: sun
      event: sunset
      offset: '-00:20:00'
    - platform: state
      entity_id: group.all_devices
      state: 'home'
  action:
    - service: light.turn_on
      data:
        entity_id: light.hall_way
        brightness: 125
    - service: light.turn_on
      data:
        entity_id: light.diner_table
        brightness: 125
    - service: light.turn_on
      data:
        entity_id: light.living_room
        brightness: 140
    - service: light.turn_on
      data:
        entity_id: light.PC
        brightness: 240
1 Like