Harmony Elite + lamps

Great :slight_smile:
Works perfect!

Now another question:
This turns of three lamps, I want to dim tre other lamps on the same action. Is that doable?

ya, just add the to the entity_id list

But this will turn off the lamp, not dim them?

Oh, yeah, that you’ll have to separate into a second service and adjust the data sent to the lights.

  action:
    - service: switch.turn_off
      entity_id: switch.fibaro_system_blomster_lampe
    - service: light.turn_on
      data:
        entity_id:
          - light.le_klint_stalampe
          - light.light.trapp_2
        brightness: 10

Then I get this error
Invalid config for [automation]: expected dict for dictionary value @ data[‘action’][1][‘data’]. Got None
extra keys not allowed @ data[‘action’][1][‘brightness’]. Got None. (See /config/configuration.yaml, line 75). Please check the docs at https://home-assistant.io/components/automation

The automation looks like this now:

- alias: Turn off light after watching TV
  trigger:
    - platform: state
      entity_id: remote.harmony_hub
  condition: # this list of conditions is 'and'ed together.
    - condition: template
      value_template: >
        {{ trigger.from_state.attributes.current_activity == 'Watch TV' and 
           trigger.to_state.attributes.current_activity == 'PowerOff' }}
    - condition: time
      after: '19:00:00' # 7 pm
  action:
    - service: homeassistant.turn_off
      entity_id:
        - switch.fibaro_system_blomster_lampe
        - light.le_klint_stalampe
        - light.trapp_2
    - service: light.turn_on
      data:
      entity_id:
        - light.le_klint_stalampe
        - light.trapp_2
        - light.soverom
      brightness: 25

because your data: and entity_id lines are not indented properly. Look at my example again and make sure your spacing is correct.