Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

More than 1 entity in script service, what am I missing?

$
0
0

@crillux wrote:

I am trying to learn how to script in HA but here is something I don’t understand. This script does not work and it seems that it has to do with the two entities in the switch.turn_on service call. Is it not possible to have more than 1 entity in a service call?

twilight_lights:
  sequence:
  - service: homeassistant.turn_on
    data:
      entity_id: group.fonsterbelysning
  - service: switch.turn_on
    data:
      - entity_id: switch.vardagsrum_skap
      - entity_id: switch.allrum_bordslampa
  - service: light.turn_on
    data:
      entity_id: light.hall_garderob
      brightness_pct: 2

Posts: 6

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>