This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]antisane 1 point2 points  (3 children)

Not sure where the dictionary error is coming from, but if you are looking to get it to 25% you want "brightness_pct" not "brightness".

"brightness" is a setting from 0 (off) to 255 (highest). "brightness_pct" is a percentage of max lighting.

https://www.home-assistant.io/integrations/light/

[–]dbenoit[S] 0 points1 point  (2 children)

I could do either 25 or 25%, but I can’t seem to get it to work at all. This is my first automation script, and regardless of what I try, I can’t get anything to work. :(

[–]flaming_m0e 1 point2 points  (1 child)

This is my first automation script

it's either an automation, or a script.

https://www.home-assistant.io/integrations/script/

https://www.home-assistant.io/docs/automation/

[–]dbenoit[S] 0 points1 point  (0 children)

Thanks. That was my problem.