Conditionally omitting fields in template

I ran into this too. I don’t think you can conditionally pass data.

I exploited the fact that sending a brightness of zero effectively acts as a light.turn_off. This could break later, but it’s working for me now.