Skip to content

Need help for "Now line" #501

Answered by dbuezas
thoath2 asked this question in Q&A
Dec 10, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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
      

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@thoath2
Comment options

Answer selected by dbuezas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants