How to change brightness of devices part of group that are on

If my suggestion led to the solution then it’s the custom of this forum to mark that post with the Solution tag (not your own post). For more information, refer to guideline 21 in the FAQ.


What I see in your most recent post is that you passed a proper list to the script. This:

entity_ids:
  - light.kitchen_inner_spots
  - light.kitchen_outer_spots

is effectively this:

entity_ids: ['light.kitchen_inner_spots', 'light.kitchen_outer_spots' ]

which the expand function understands how to expand just like it knows how to expand this (comma-separated string):

entity_ids: 'light.kitchen_inner_spots', 'light.kitchen_outer_spots'

That’s why I asked for an example of what you were attempting to pass to the script because anything other than those two formats will fail to be expanded and cause an error.

1 Like