Skip to content

Instantly share code, notes, and snippets.

@skywalkerisnull
Created January 22, 2024 21:39
Show Gist options
  • Save skywalkerisnull/81eb694cf8ae9f1ef802bd30f5ad9eec to your computer and use it in GitHub Desktop.
Save skywalkerisnull/81eb694cf8ae9f1ef802bd30f5ad9eec to your computer and use it in GitHub Desktop.
Home assistant temp and relative humidity
type: custom:apexcharts-card
yaxis:
- id: first
- id: second
opposite: true
header:
show: true
title: Temp and RH
show_states: true
colorize_states: true
graph_span: 2days
span:
end: minute
all_series_config:
stroke_width: 1
opacity: 1
float_precision: 1
experimental:
brush: true
color_threshold: true
brush:
selection_span: 12hrs
series:
- entity: sensor.gw1100c_v2_2_1_outdoor_temperature
name: Temperature
yaxis_id: first
group_by:
func: avg
duration: 10min
stroke_width: 3
show:
extremas: true
in_brush: true
header_color_threshold: true
color_threshold:
- value: 5
color: darkblue
- value: 10
color: blue
- value: 15
color: lightblue
- value: 20
color: green
- value: 25
color: lightgreen
- value: 30
color: yellow
- value: 35
color: orange
- value: 40
color: red
- entity: sensor.gw1100c_v2_2_1_feels_like_temperature
name: Feels Like
yaxis_id: first
color: green
group_by:
func: avg
duration: 10min
show:
extremas: true
header_color_threshold: true
color_threshold:
- value: 5
color: lightblue
- value: 15
color: steelblue
- value: 20
color: midnightblue
- value: 25
color: orange
- value: 30
color: orangered
- value: 35
color: red
- entity: sensor.gw1100c_v2_2_1_humidity
name: Humidity
yaxis_id: second
type: line
stroke_width: 3
show:
extremas: true
header_color_threshold: true
color_threshold:
- value: 20
color: yellow
- value: 25
color: green
- value: 60
color: green
- value: 65
color: blue
color: '#9dccf5'
group_by:
func: avg
duration: 10min
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment