Can you set an 'area' for a template light or switch?

I can’t find any documentation that alludes to being able to set the ‘area’ for a template light or switch, and I’m wondering if this is even possible.

I have a couple of 3-way tasmota-flashed switches that I have wrapped in a template light and an input_boolean (because the relay can be “on” when the light is “off”) and I would like to set the template light to be in the area in which the light is, but I can’t figure out if it’s doable.

Has anyone done this?

1 Like

set a unique_id in your template light config

4 Likes

That did the trick. Thanks!