Hi, i have a public transport sensor with attributes.
I like to have the values of two attributes: departure and departures combined into a new sensor
I created a template sensor: tram17_departure, but get a wrong value: unknownunknown
Okay, i restyled my question a bit.
In the meantime i solved the half of my problem, by using the right code in the template sensor,
using state_attr instead off states.
Last part seems to be more difficult to add another attribute to the first one. I think the problem is to add a array to a stringvariable.
so
this give unknown, because departures is a array. When using a attribute that is a string works well…
What i want to achive is to show all departure times in a picture entity card. I read that i had to use a template sensor for this. My first trial was to use a picture glance card that can show more then one entities in the picture. Problem with this card (for me) was that i get icons in the glance card and not the departure values… WTH I still can't use entities, gauge or glance card with attributes!. And Attributes to glance card