I can’t understand why my max outdoor temperatures stay at the top of my graph?
Here is the YAML of the APEX map:
type: custom:apexcharts-card
graph_span: 7d
span:
end: day
header:
show: true
title: Consomation PAC à 7 jours
apex_config:
yaxis:
- id: power
mini: auto
max: auto
decimalsInFloat: 0
- id: temp
mini: 0
max: 20
decimalsInFloat: 0
opposite: true
chart:
type: area
height: 510
fill:
type: gradient
gradient:
shadeIntensity: 0.1
opacityFrom: 0.25
opacityTo: 1
inverseColors: true
stops:
- 0
- 90
- 100
series:
- entity: sensor.consommation_du_jour_pac
yaxis_id: power
color: rgb(0,255,0)
type: column
name: Consomation du jour
group_by:
func: diff
duration: 24h
show:
datalabels: true
- entity: sensor.temp_mini_to_day
yaxis_id: temp
type: line
name: Temp ext mini
color: rgb(255,0,0)
group_by:
func: last
duration: 24h
show:
datalabels: true
- entity: sensor.temp_max_to_day
yaxis_id: temp
type: line
name: Temp ext max
color: rgb(0,0,255)
group_by:
func: last
duration: 24h
show:
datalabels: true
I created 2 sensors to retrieve the max and min of the outside temperature from the France weather plugin:
####
# Température mini
####
temp_mini_to_day:
value_template: >-
{{ state_attr('weather.provin', 'forecast')[0].templow }}
unit_of_measurement: "°C"
####
# Température max
####
temp_max_to_day:
value_template: >-
{{ state_attr('weather.provin', 'forecast')[0].temperature }}
unit_of_measurement: "°C"
Philippe