How to not repeat YAML for template covers?

Hi Adabelle_Leiram,

Yaml anchors do work.

Solved: Reuse code with YAML Anchors and more.

I have an example in one of my blueprints if it helps you.

HA_Blueprints/Automations/Zigbee2MQTT-Aqara-Magic-Cube-T1-Pro-CTP-R01-Xiaomi-Lumi.yaml at d1c15d75a7b5fa3042d60f7eee2d7633ea8a27a3 · SirGoodenough/HA_Blueprints · GitHub.

You can also look into creating a script ot a script blueprint and creating fields, then instead of repeating the code, action a script sending it data and you can isolate the code that way. Sometimes it makes sense to create custom_template macrd and call repeating templates that way.

Lots of possibilities.