Value template not working for template switch

Trying to create a template switch using the GUI. If I leave the Value template blank then it works fine, but obviously it doesn’t know what state it’s in, so if my script is triggered by something else it doesn’t know.

When I enter the following into the Value template field the little auto complete tooltip helper tells me the correct current state. But even so, the template switch still doesn’t listen to it, and instead is off all the time. and since it the template switch thinks it’s off all the time, I can’t turn it back on. Is it clear to anyone what I’m missing? Thanks, I appreciate it.

Remove the " "

1 Like