I’ve been working with Plotly and really like it.
I have the temperature and energy use data that I would like to plot and came up with the graph below.
But, it’s not particularly easy on the eyes.
Is there a better way to have a single graph showing this data? I would like to be able to glance at it and see (1) what the current data (temp and watts) is for each zone in the house and (2) the relationship between them.
Thank you.
Here is the code:
type: custom:plotly-graph
defaults:
entity:
show_value: true
entities:
- entity: sensor.manor_panel_2_123_1min
statistic: mean
period: 5minute
line:
color: orange
yaxis: y1
- entity: sensor.manor_panel_2_1_1min
statistic: mean
period: 5minute
yaxis: y1
line:
color: blue
- entity: sensor.manor_panel_2_2_1min
statistic: mean
period: 5minute
yaxis: y1
line:
color: steelblue
- entity: sensor.manor_panel_2_3_1min
statistic: mean
period: 5minute
yaxis: y1
line:
color: green
- entity: sensor.manor_panel_2_4_1min
statistic: mean
period: 5minute
yaxis: y1
line:
color: steelblue
- entity: sensor.manor_panel_2_5_1min
statistic: mean
period: 5minute
yaxis: y1
line:
color: green
- entity: sensor.manor_panel_2_6_1min
statistic: mean
period: 5minute
yaxis: y1
line:
color: yellow
- entity: sensor.1st_floor_room_temperature
statistic: mean
period: 5minute
yaxis: y2
line:
color: red
- entity: sensor.1st_floor_energy_current
statistic: mean
period: 5minute
yaxis: y1
line:
color: purple
- entity: sensor.3rd_floor_room_temperature
statistic: mean
period: 5minute
yaxis: y2
line:
color: green
- entity: sensor.3rd_floor_energy_current
statistic: mean
period: 5minute
yaxis: y1
line:
color: purple
- entity: sensor.2nd_floor_east_room_temperature
statistic: mean
period: 5minute
yaxis: y2
line:
color: purple
- entity: sensor.2nd_floor_west_room_temperature
statistic: mean
period: 5minute
yaxis: y2
line:
color: blue
layout:
height: 800
xaxis:
rangeselector:
'y': 1.1
buttons:
- count: 1
step: min
- count: 60
step: min
- count: 240
step: min
yaxis:
fixedrange: false
range:
- 1
- 5000
yaxis2:
fixedrange: false
range:
- 1
- 100
refresh_interval: 60
hours_to_show: 24