Hello, I have a SQL sensor for daily average temperature calculation (at 7, at 14 and at 21 twice). I would like to display it as 3 entities (maybe whole week) in an entity card from the latest to the oldest like this:
I am quite new to Home Assistant and only way I can achieve this is to create three template sensors, but I do not know how to change them the name dynamically, if there is any automation that can every night generate new names for static template entities or is there a better way to achive this.
Thank you for your response, but can you show me, what the word “some template” means?
SQL sensor seems to be able to return only one row and one column. So if I want to dispaly 3 days, do I have to have 6 SQL sensors? One for the “day” one for the value?
Isn’t there a better way to display multiple values of SQL sensors? How can I refresh the name in template sensor? Via automation and update_entity? This looks very ugly and I think, there should be a better way.
OK let’s take another approach. Today is Monday 2 November 2020. Therefore you want the historical temperatures at this time for Friday, Saturday and Sunday? Is that right.
What SQL query are you using for, say, Saturday’s temp?