LD2410 esphome tips

I have created another version of the Movement and Still Energy Charts, this time using the Plotly Graph Card available in HACS and this makes it even easier to setup as you don’t need to create any Template sensors. You just need to install the Plotly Graph Card from HACS and use the following card YAML:

Movement Energy Chart:

type: custom:plotly-graph
title: Movement Energy
refresh_interval: 1
hours_to_show: current_day
layout:
  height: 350
  margin:
    l: 50
    r: 50
    t: 50
    b: 50
  showlegend: true
  legend:
    x: 0.3
    'y': -0.3
  xaxis:
    dtick: 1
    type: number
    fixedrange: true
    range:
      - 0
      - 8
  yaxis:
    dtick: 10
    fixedrange: true
    range:
      - 0
      - 100
entities:
  - entity: ''
    name: Threshold
    mode: lines
    line:
      shape: spline
      width: 2
      color: FB239F
    x:
      - 0
      - 1
      - 2
      - 3
      - 4
      - 5
      - 6
      - 7
      - 8
    'y':
      - $ex hass.states["number.g0_move_threshold"].state
      - $ex hass.states["number.g1_move_threshold"].state
      - $ex hass.states["number.g2_move_threshold"].state
      - $ex hass.states["number.g3_move_threshold"].state
      - $ex hass.states["number.g4_move_threshold"].state
      - $ex hass.states["number.g5_move_threshold"].state
      - $ex hass.states["number.g6_move_threshold"].state
      - $ex hass.states["number.g7_move_threshold"].state
      - $ex hass.states["number.g8_move_threshold"].state
  - entity: ''
    name: Energy
    mode: lines
    line:
      shape: spline
      width: 2
      color: blue
    x:
      - 0
      - 1
      - 2
      - 3
      - 4
      - 5
      - 6
      - 7
      - 8
    'y':
      - $ex hass.states["sensor.g0_move_energy"].state
      - $ex hass.states["sensor.g1_move_energy"].state
      - $ex hass.states["sensor.g2_move_energy"].state
      - $ex hass.states["sensor.g3_move_energy"].state
      - $ex hass.states["sensor.g4_move_energy"].state
      - $ex hass.states["sensor.g5_move_energy"].state
      - $ex hass.states["sensor.g6_move_energy"].state
      - $ex hass.states["sensor.g7_move_energy"].state
      - $ex hass.states["sensor.g8_move_energy"].state
raw_plotly_config: true

Still Energy Chart:

type: custom:plotly-graph
title: Still Energy
refresh_interval: 1
hours_to_show: current_day
layout:
  height: 350
  margin:
    l: 50
    r: 50
    t: 50
    b: 50
  showlegend: true
  legend:
    x: 0.3
    'y': -0.3
  xaxis:
    dtick: 1
    type: number
    fixedrange: true
    range:
      - 0
      - 8
  yaxis:
    dtick: 10
    fixedrange: true
    range:
      - 0
      - 100
entities:
  - entity: ''
    name: Threshold
    mode: lines
    line:
      shape: spline
      width: 2
      color: FB239F
    x:
      - 0
      - 1
      - 2
      - 3
      - 4
      - 5
      - 6
      - 7
      - 8
    'y':
      - $ex hass.states["number.g0_still_threshold"].state
      - $ex hass.states["number.g1_still_threshold"].state
      - $ex hass.states["number.g2_still_threshold"].state
      - $ex hass.states["number.g3_still_threshold"].state
      - $ex hass.states["number.g4_still_threshold"].state
      - $ex hass.states["number.g5_still_threshold"].state
      - $ex hass.states["number.g6_still_threshold"].state
      - $ex hass.states["number.g7_still_threshold"].state
      - $ex hass.states["number.g8_still_threshold"].state
  - entity: ''
    name: Energy
    mode: lines
    line:
      shape: spline
      width: 2
      color: blue
    x:
      - 0
      - 1
      - 2
      - 3
      - 4
      - 5
      - 6
      - 7
      - 8
    'y':
      - $ex hass.states["sensor.g0_still_energy"].state
      - $ex hass.states["sensor.g1_still_energy"].state
      - $ex hass.states["sensor.g2_still_energy"].state
      - $ex hass.states["sensor.g3_still_energy"].state
      - $ex hass.states["sensor.g4_still_energy"].state
      - $ex hass.states["sensor.g5_still_energy"].state
      - $ex hass.states["sensor.g6_still_energy"].state
      - $ex hass.states["sensor.g7_still_energy"].state
      - $ex hass.states["sensor.g8_still_energy"].state
raw_plotly_config: true

LD2410-Energy-Chart-Plotly