Sorry mateine,
I’m using Plotly for the first time and I don’t understand it.
I realize that the visual editor can’t do everything and the error message can be ignored.
But no matter how I try to configure it, no graphs are displayed. I am not a programmer and apparently too stupid
I’ll try to describe my plan again, maybe I’ve overlooked something:
I am using two entities, one with temperature values and one that has 0 and 1 as status.
I would like to have the temperature value displayed as a curve in a diagram and at the same time the part of the curve when the burner has the status 1 should be colored.
I have adapted the example script to my needs (hopefully correctly) and the yaml editor shows no errors:
type: custom:plotly-graph
entities:
- entity: sensor.status_olbrenner
internal: true
period: 5minute
filters:
- map_y: parseFloat(y)
- store_var: status
- entity: sensor.uvr_tadesigner_t_puffer_o_wert # this one is twice so that one does the line and the other the filling
period: 5minute # statistics don't need the resampling filter since the data is aligned by index already.
name: Temperatur
legendgroup: temp # so this one and the next share the legend
- entity: sensor.uvr_tadesigner_t_puffer_o_wert
period: 5minute
name: Brenner
legendgroup: temp
line:
color: '#ff7f0e'
width: 0
fill: tozeroy
filters:
- map_y: parseFloat(y)
- map_y: |-
vars.status.ys[i] < 10 ? 0 : y // if below 10%, map the temperature to zero. Otherwise use the original value (y)
hours_to_show: 1d # just showcasing that you can use 1 day instead of 24 hours for convenience
So you’re right, that’s how it should work. But no graphs are displayed:
What am I doing wrong?