Is there a programmatic/templated way to build up the annotations? I can trivially create the objects in javascript, but not sure how to pass it to layout.annotations:
There is a possibility that the graph shows me what happens with the sensors only at a certain time (from 11 am to 5 pm) and from Monday to Friday
type: custom:plotly-graph
entities:
- entity: sensor.dolar_blue
name: Dolar Blue
- entity: sensor.dolar_oficial_2
name: Dolar Oficial
hours_to_show: 24
refresh_interval: 10
Hello,
I got already a few times help here - so thanks again for that
Sadly, I keep running in an issue, I canât really find a solution myself. On my setup a Tasmota IR head reads some data from my official powermeter. It works well, until there is a e.g. power loss and the official powermeter falls back into itâs standard mode.
Thatâs the moment I get faulty values into my utility meters.
At first, I thougt there is a simple fix by going to development tools, statistics, open the utility meter (Verbrauchszähler in german) and look for abnormal values.
I now would like the line for âsensor.ld2410_esp32_02_bettsensor_rohwertâ to be green if its state is below the state of ânumber.ld2410_esp32_02_bettsensor_grenzwertâ, otherwise it should be green.
Hi Guys,
Could I get a little help with an in-graph calculation please. Trying to plot the value of âentity A â entity bâ to display a net consumption value. I know this can be done with a regular HA template sensor, but that would not work for my historical data, so Iâm trying to implement it directly within plotly.
- entity: sensor.givtcp_import_energy_today_kwh
statistic: state
show_value: true
filters:
- map_y: >-
y -
parseFloat(hass.states["sensor.givtcp_export_energy_today_kwh"].state)
So far I have the above, but but is only working correctly for âtodayâ in my plot. In the graph for, say yesterday, it is subtracting the export value of today from the import value of yesterday. presumably because my current formula is always looking at the state of âtodayâ and is not dynamic⌠Is there a better way to do this?
My goal is to show the value of âgivtcp_import_energy_today_kwhâ minus âgivtcp_export_energy_today_kwhâ dynamically, for any day present in the graph.
Both are totalisers within HA, that reset to 0 (zero) each day at midnight.
Hi,
Iâm desperate and trying to create a stacked graph with the Plotly Card. Iâve searched all over the place and found examples where it worked, but unfortunately I do not get it to work.
type: custom:plotly-graph
entities:
- entity: sensor.eu08l_hp1_cop
yaxis: y1
name: COP
mode: lines
show_value: true
line:
shape: line
color: green
width: 1
- entity: sensor.EU08L_Hp1_Flow_Line_Temperature
name: Temperatur Vorlauf
yaxis: y3
mode: lines
show_value: true
line:
shape: line
color: red
width: 1
- entity: sensor.eu08l_Hp1_return_line_temperature
name: Temperatur RĂźcklauf
yaxis: y3
mode: lines
show_value: true
line:
shape: line
color: blue
width: 1
hours_to_show: 168
refresh_interval: 10
title: Heizung
layout:
height: 500
grid:
rows: 2
columns: 1
roworder: top to bottom
xaxis:
rangeselector:
'y': 1.15
buttons:
- count: 1
step: minute
- count: 15
step: minute
- count: 1
step: hour
- count: 12
step: hour
- count: 1
step: day
- count: 7
step: day
It looks like this. Can anyone tell me what Iâm doing wrong? How do I get a second graph in the plot?
I really appreaciate any help.
/RB