Got the chart a bit cleaner:
type: custom:apexcharts-card
graph_span: 7d
now:
show: true
header:
show: true
title: Sleep Stats
show_states: true
colorize_states: true
series:
- entity: sensor.oura_ring
name: Score
show:
in_chart: false
color: grey
- entity: sensor.sleep_resting_heart_rate_yesterday
name: HR
show:
in_chart: false
- entity: sensor.time_in_bed_yesterday
name: In Bed
type: area
color: white
group_by:
func: last
duration: 1d
- entity: sensor.total_sleep_yesterday
name: Total Sleep
type: line
color: purple
group_by:
func: last
duration: 1d
- entity: sensor.rem_sleep_yesterday
name: REM
color: '#20bf6b'
group_by:
func: last
duration: 1d
- entity: sensor.deep_sleep_yesterday
name: Deep
color: '#45aaf2'
group_by:
func: last
duration: 1d
- entity: sensor.light_sleep_yesterday
name: Light
color: '#fed330'
group_by:
func: last
duration: 1d
- entity: sensor.time_awake_yesterday
name: Awake
color: '#fc5c65'
group_by:
func: last
duration: 1d