I am trying to display the heat curve from my ground source heat pump in a dashboard.
When I try and use the attributes from a climate entity, I get an error instead of the value. I can’t work out the correct way to access the attribute in the YAML file.
My configuration looks like this:
type: custom:plotly-graph
hours_to_show: current_day
layout:
xaxis:
type: number
showlegend: false
autorange: reversed
yaxis:
fixedrange: true
range:
- 10
- 65
entities:
- entity: ''
x:
- 20
- -35
'y':
- 25 # should be a climate value
- 65 # should be another climate value
line:
shape: spline
It says it’s not supported by the visual editor but it seems to work for me i a very simple setup like this:
type: custom:plotly-graph
entities:
- entity: sensor.argon_one_addon_fan_speed
attribute: Temperature F
hours_to_show: 24
refresh_interval: 10
title: Temp from Argon Fan
Ok, a little progress but this only works when I remove the y properties. I don’t want to show history or statistics, I want a fixed state based on the current values.
type: custom:plotly-graph
hours_to_show: current_day
layout:
xaxis:
type: temperature
showlegend: false
autorange: reversed
yaxis:
fixedrange: true
range:
- 0
- 80
entities:
- entity: climate.heat_set_1_curvel
attribute: current_temperature
x:
- 20
- -35
- entity: climate.heat_set_2_curver
attribute: current_temperature
x:
- 20
- -35
# 'y':
# - 25 # should be a climate value
# - 65 # should be another climate value
line:
shape: spline
What I really want is one line that starts at the climate.heat_set_1_curvel.current_temperature and ends at the climate.heat_set_2_curver.current_temperature value.
I’m not quite sure what you mean by ‘full template’. The code posted is the full config for the lovelace card. The entities are auto-populated by HA from the H60. And their contents are also shown as they appear in the dev states display in HA.