I am using an Elgato stream deck, and I can display multi-line output for a single button… but only if the data comes from the attributes of a single sensor. This works with yahoofinance and rest platform entities, but I can’t figure out how to do it with a template platform entity. This code creates four separate entities:
That’s not how it works in Home Assistant. To get the value of an entity’s attribute, the preferred method is to use the state_attr() function (see this section of the Templating documentation).
I’ve only ever used template sensors to break attributes out of other sensors but according to the documentation it is possible. Should be something like this: