YAML Newbie, stuck on what should be an easy question (using state attributes instead of numeric value)
InEnduringGrowStrong @ InEnduringGrowStrong @sh.itjust.works Posts 11Comments 1,357Joined 2 yr. ago

InEnduringGrowStrong @ InEnduringGrowStrong @sh.itjust.works
Posts
11
Comments
1,357
Joined
2 yr. ago
Oh.. I think you also need double quotes around template brackets when used as the value in a service call..? Which conflicts with the quotes around the entity and attribute so just use single quotes there.
Just whipped up a partial example with my living room lights. It is missing a trigger and an else butI focused on theactionyou had trouble with.
Using brightness instead of brightness_pct seemed simpler. (Or at least if both can usethe same attribute...)