I have a automation that works for turning on a light when motion detected
everything works great until I set brightness or brightness_pct.
When I do that only the 1st light turns on and the others stay off.
Have also tried doing this with scenes and get the same result.
Tried all different ways to list entities with , after each etc but still no go.
If I comment out or remove the brightness statement everything works.
I can set the brightness fine in Lovelace UI for all lights so I know it works.
Wondering if other people are have this issue and its HA or maybe my Sengled bulbs.
Wondering if it could be that I created this automation in the UI not using yaml
Have another old automation that works fine with brightness but I created it in yaml.
Remove friendly_name from the states you are setting in your scene. That is not a state you can set.
An alternative that I use is the light group. All my kitchen downlights in one group called kitchen lights can be controlled as one entity, including brightness and other attributes.
Created this scene in the UI the friendly_name was included.
Removed it and still the same issue.
I used to use groups but they were broke and started trying to use scenes because
that was recommended in some posts and seams to let you set brightness for each specific entity.
Removed both to see if that worked and still only turns on the 1st light.
Acts like maybe the entity formatting is wrong and sees the 1st one and then stops.
This is the exact code I have in automations.yaml
If I run this automation only the first light turns on but if
I remove the brightness statement all lights turn on.
Be careful about copying and pasting my code. The code you show should have been equivalent to mine but I’m posting from an iPad and the cut/paste is doing strange things to the formatting. Might be some strange hidden end of line characters.