Any tips on how to get this graph right
The last bar is too low compared to the one to the left. I assume it’s because it’s using that bar as lowest point (hence the 4.41 value on the left’
I made a template to combine current tariff1 and tariff2 value of today.
#Combine Energy peak/offpeak
- platform: template
sensors:
daily_energy_power_total:
friendly_name: 'Daily Energy Peak/Offpeak Total'
entity_id:
- sensor.daily_energy_offpeak
- sensor.daily_energy_peak
value_template: "{{ (states('sensor.daily_energy_peak')|float + states('sensor.daily_energy_offpeak')|float)|round(3) }}"
unit_of_measurement: "kWh"
monthly_energy_power_total:
friendly_name: 'Monthly Energy Peak/Offpeak Total'
entity_id:
- sensor.monthly_energy_peak
- sensor.monthly_energy_offpeak
value_template: "{{ (states('sensor.monthly_energy_peak')|float + states('sensor.monthly_energy_offpeak')|float)|round(3) }}"
unit_of_measurement: "kWh"
type: 'custom:mini-graph-card'
entities:
- entity: sensor.daily_energy_power_total
name: Energy consumption (Weekly)
hours_to_show: 168
aggregate_func: max
group_by: date
show:
graph: bar