Markdown - switch behind the light

Hello,
I output my light sensors with the following code, but only if the are on:

{% if is_state('light.hue_iris_1', 'on') %} ## <font color="{{ '#%02x%02x%02x' % state_attr('light.hue_iris_1', 'rgb_color') }}"> <ha-icon icon="hue:iris"></ha-icon></font> OG Wohnzimmer Hue Lampe an {% else %}{% endif %}

After this light I would linke to output the switch to put out the light. But I don´t find the code for this.
If it not possible to at the switch, it would also ok, if I can click on the Name (OG Wohnzimmer Hue Lampe an) so switch off the light.

Have someone an idea?

No one an idea?

Markdown is output only.
If you want to display only lights that are on, maybe an entity filter card is what you need.

Ok, thank your for your information.