I need help figuring out how to get a temperature history graph with weekdays and time-stamps that always starts with 00:00 and then 6 hours in between.
In my configuration.yaml
sensor:
- platform: template
sensors:
dayoftheweek:
value_template: "{{ ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'][now().weekday()] }}"
In my ui-lovelace.yaml
- title: "Väder"
panel: true
cards:
- type: history-graph
title: "Temperaturer"
hours_to_show: 120
refresh_interval: 60
entities:
- entity: sensor.badrums_sensor_temperature
name: "Badrum"
- entity: sensor.entre_sensor_temperature
name: "Entré"
- entity: sensor.fibaro_system_fgms001_zw5_motion_sensor_temperature
name: "Hall ÖP"
- entity: sensor.dayoftheweek
I just added the “entity: sensor.dayoftheweek” to show that it worked so far.
This is what I get:
This is what I want:
I hope someone can guide me in the right direction