Question about programming in YAML

Unformatted YAML is very hard to read, please see this topic to learn how to format it correctly. How to format your code in forum posts

What you’re asking for is quite common, read about how to set and use variables in the docs. Define variables - Home Assistant

If you still have questions after that then post back and we’ll be happy to help you out.