-
Hello,
Now i would like to add a now line like https://github.com/dbuezas/lovelace-plotly-graph-card?tab=readme-ov-file#now-line .
Unfortunately it doesn't works. |
Beta Was this translation helpful? Give feedback.
Answered by
dbuezas
Dec 10, 2024
Replies: 1 comment 1 reply
-
Try with shapes instead type: custom:plotly-graph
hours_to_show: current_day
entities:
- entity: sensor.co2_temp_hum_eg_temperature
yaxis: y1
- entity: sensor.co2_temp_hum_dg_temperature
yaxis: y1
- entity: sensor.co2_temp_hum_eg_humidity
yaxis: y2
- entity: sensor.co2_temp_hum_dg_humidity
yaxis: y2
layout:
dragmode: pan
margin:
t: 30
l: 45
r: 40
b: 50
showlegend: false
height: 650
grid:
rows: 2
columns: 1
roworder: top to bottom
annotations: null
yaxis:
title:
text: Temperatur
yaxis2:
title:
text: Luftfeuchte
shapes:
- type: line
x0: $ex Date.now()
x1: $ex Date.now()
y0: 0
y1: 1
xref: x
yref: paper
line:
color: "red"
width: 2
defaults:
entity:
show_value: true
yaxes:
fixedrange: false
autorange: true
side: left
overlaying: "y"
visible: true
showgrid: true
title: Grid
refresh_interval: 10
color_scheme: 2 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dbuezas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try with shapes instead