Lovelace: mini graph card

Thought I would share a few graphs:
LINK TO THE FINAL CARD WITH UPDATED CODE

House Temperature Status

  • Shows Temperatures at all three levels of my house including outdoors
  • Shows Heating status of heat pump (lightsalmon block)
  • Shows Cooling status of heat pump (mediumturquoise block)

image

type: custom:mini-graph-card
entities:
  - entity: sensor.netatmo_devonport_tas_indoor_temperature
    name: Meazzanine Temp
    color: brown
    show_state: true
    show_indicator: false
  - entity: sensor.netatmo_devonport_tas_indoor_outdoor_temperature
    name: Outside
    color: dodgerblue
    show_state: false
  - entity: sensor.air_conditioning_downstairs_temperature
    name: Down Stairs
    color: orange
    show_state: true
    show_indicator: true
  - entity: sensor.air_conditioning_temperature
    name: Middle Floor
    color: gold
    show_state: true
    show_indicator: true
  - entity: sensor.ac_cool_living
    name: AC Cool
    color: mediumturquoise
    show_legend: false
    show_line: false
    show_points: false
    y_axis: secondary
    smoothing: false
  - entity: sensor.ac_heat_living
    name: AC Heat
    color: lightsalmon
    show_legend: false
    show_line: false
    show_points: false
    y_axis: secondary
    smoothing: false
state_map:
  - label: "Off"
    value: "0"
  - label: "On"
    value: "1"
show:
  name: false
  icon: false
  legend: true
  extrema: false
  fill: fade
  labels: hover
  labels_secondary: hover
  state: true
align_state: left
hour24: true
animate: true
font_size_header: 9
group: true
hours_to_show: 6
smoothing: true
line_width: 3
points_per_hour: 15

Living Room Climate Status

  • Shows Temperature of Middle Floor
  • Shows Humidity of Middle Floor
  • Shows Dew Point of Middle Floor
  • Shows Heating status of heat pump (lightsalmon block)
  • Shows Cooling status of heat pump (mediumturquoise block)

image

type: custom:mini-graph-card
entities:
  - entity: sensor.air_conditioning_temperature
    name: Middle Floor
    color: gold
    show_state: true
    show_indicator: false
  - entity: sensor.dewpoint_living_room
    name: Dewpoint
    color: dodgerblue
    show_state: true
    show_indicator: true
  - entity: sensor.air_conditioning_humidity
    name: Humidity
    color: teal
    show_state: true
    show_indicator: true
    show_graph: true
    show_legend: true
  - entity: sensor.ac_cool_living
    name: AC Cool
    color: mediumturquoise
    show_legend: false
    show_line: false
    show_points: false
    y_axis: secondary
    smoothing: false
  - entity: sensor.ac_heat_living
    name: AC Heat
    color: lightsalmon
    show_legend: false
    show_line: false
    show_points: false
    y_axis: secondary
    smoothing: false
state_map:
  - label: "Off"
    value: "0"
  - label: "On"
    value: "1"
show:
  name: false
  icon: false
  legend: true
  extrema: false
  fill: fade
  labels: hover
  labels_secondary: hover
  state: true
align_state: left
hour24: true
animate: true
font_size_header: 9
group: true
hours_to_show: 12
smoothing: true
line_width: 3
points_per_hour: 15

Sensors required to be added to configuration.yaml

template:
  - sensor:
    # Air Conditioning sensors for Mini Graph Card
    - name: "ac_heat_living"
      unique_id: 4b0aa109-9f6b-430e-9f75-d3bc64645e70
      icon: mdi:sun-thermometer-outline
      state: >-
        {% if state_attr('climate.air_conditioning','hvac_action') == 'heating'  %}
        1
        {% else %}
        0
        {% endif %}

    - name: "ac_cool_living"
      unique_id: 463de126-9e29-46bd-b0cd-c2c4f97f8fa2
      icon: mdi:snowflake-thermometer
      state: >-
        {% if state_attr('climate.air_conditioning','hvac_action') == 'cooling'  %}
        1
        {% else %}
        0
        {% endif %}

CO2 vs Door/Window Status

  • Shows CO2 levels in relation to a door and window group sensor

image

type: custom:mini-graph-card
entities:
  - entity: sensor.netatmo_devonport_tas_indoor_co2
    name: CO2
    color: lightsalmon
    show_state: true
    show_indicator: false
  - entity: sensor.middle_floor_sensor_status
    name: Door Open
    color: mediumturquoise
    show_legend: true
    show_line: false
    show_points: false
    y_axis: secondary
    smoothing: false
    show_state: true
state_map:
  - label: Closed
    value: "0"
  - label: Open
    value: "1"
show:
  name: false
  icon: false
  legend: true
  extrema: false
  fill: fade
  labels: hover
  labels_secondary: hover
  state: true
align_state: left
hour24: true
animate: true
font_size_header: 9
group: true
hours_to_show: 12
smoothing: true
line_width: 3
points_per_hour: 6

Sensor required for door status

template:
  - sensor:
    - name: "middle_floor_sensor_status"
      unique_id: bf540135-35df-439c-a6a7-3bd328a1fb08
      icon: mdi:door
      state: >-
        {% if states('binary_sensor.middle_floor_sensor_group') == 'on'  %}
        1
        {% else %}
        0
        {% endif %}

5 Likes