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

Automation Action device_id Template

$
0
0

I’m trying to use a template to list all the “on” devices within an area as devices under device_id for an automation action. What is the proper syntax to do this?

Most of the things I try end up outputting:

  domain: light
  service: turn_on
  service_data:
    kelvin: 1725
    brightness_pct: 100
    device_id:
      - |-
        - 91444cc30342e1f0ffb0cd25225743e0
        - a7557daf79f3a038e6f0b04d283e01b6
        - c72097e29dd6759de0dc2e6f3925b51a
  target:
    device_id:
      - |-
        - 91444cc30342e1f0ffb0cd25225743e0
        - a7557daf79f3a038e6f0b04d283e01b6
        - c72097e29dd6759de0dc2e6f3925b51a
running_script: false

which doesn’t seem to execute the action.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106857

Trending Articles