You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have several Plotly graph cards in my Home Assistant implementation, however, when using cumulative energy sensors, the very first value from the graph displays the whole cumulative value for all sensors, which skews the graph display.
The sensors are Shelly Plug Plus
Plotly Card YAML for "Last 6 months":
type: custom:plotly-graph
title: Monthly Energy Consumption
hours_to_show: 4296
refresh_interval: 3600
layout:
hovermode: x unified
defaults:
entity:
type: line
line:
shape: spline
stackgroup: one
period: month
statistic: state
filters:
- force_numeric
- derivate: M
entities:
sensor.shellyplusplugs_d48afc470e64_switch_0_energy
sensor.ac_atelier_energy
sensor.priza_ac_dormitor_sus_switch_0_energy
sensor.priza_ac_sufragerie_sus_switch_0_energy
sensor.priza_pc_switch_0_energy
sensor.shellyplusplugs_d4d4da7c1efc_switch_0_energy
sensor.frigider_garaj_switch_0_energy
sensor.shellyplusplugs_d48afc4749e4_switch_0_energy
sensor.priza_tub_leds_switch_0_energy
sensor.workshop_leds_switch_0_energy
sensor.priza_v_core_3_switch_0_energy
sensor.priza_v_minion1_switch_0_energy
grid_options:
columns: full
rows: 6
I have attached the visual display of the card graph, it shows very high values for the first month, which actually present the initial cumulative values for all previous months.
There are four graphs which I am using, and they all exhibit the same behavior.
I am not sure how to tell the graph card to display the first value correctly. Maybe, in case of the "Last 6 Months" graph, to fetch last 7 months but only display the last 6 months, allowing for the first value to be ignored?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have several Plotly graph cards in my Home Assistant implementation, however, when using cumulative energy sensors, the very first value from the graph displays the whole cumulative value for all sensors, which skews the graph display.
The sensors are Shelly Plug Plus
Plotly Card YAML for "Last 6 months":
I have attached the visual display of the card graph, it shows very high values for the first month, which actually present the initial cumulative values for all previous months.
There are four graphs which I am using, and they all exhibit the same behavior.
I am not sure how to tell the graph card to display the first value correctly. Maybe, in case of the "Last 6 Months" graph, to fetch last 7 months but only display the last 6 months, allowing for the first value to be ignored?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions