I have an entities card showing 7 entities for the upcoming 7 days which are named today, tomorrow, day 3, day 4, day 5, day 6 and day 7. I want to change the friendly name of the entity in the card to show the actual name of the day of the week in [3] days time (so say Wednesday for Day 3 and Thursday for Day 4) but struggling to get it to show. Any help really appreciated. Entity Card code below. I tried to add {{ (now() + timedelta(days=1)).strftime(‘%A’) }} as the name but it just shows that as the name.
type: entities
entities:
- entity: sensor.solcast_pv_forecast_forecast_today
name: Today - entity: sensor.solcast_pv_forecast_forecast_tomorrow
name: Tomorrow - entity: sensor.solcast_pv_forecast_forecast_day_3
name: Day 3 - entity: sensor.solcast_pv_forecast_forecast_day_4
name: Day 4 - entity: sensor.solcast_pv_forecast_forecast_day_5
name: Day 5 - entity: sensor.solcast_pv_forecast_forecast_day_6
name: Day 6 - entity: sensor.solcast_pv_forecast_forecast_day_7
name: Day 7
show_header_toggle: false
title: Solar Forecasts - 7 Day