Hi there,
I’m trying to be able to adjust the maximum brightness of my light effect, using a number slider. I’m a bit confused on how to get the right syntax for this, so help is appreciated
I thought the number entity returned a float by default…
It’s also got a syntax error, sorry I think I missed that. See the extra " ) " after state? It doesn’t go to anything. Remove that and try again. If it still doesn’t work, try this.
max_brightness: !lambda return float(id(va_status_brightness).state) / 100.0; # <-- Not working
I went and asked the gurus on Discord and they said max_brightness cant be changed at runtime. So, its like a gpio number, you have to change it then flash the board.
Sorry
you know, I got another message about an hour ago from one of the more well known contributors. They said you can’t do it in a template but, it can probably be done in a lambda… I’ve been busy and havn’t been able to follow up on it.