I created a new HACS Integration that connects with Oura ring API and imports that data into HA.
Upon first startup, I get all the historical data and add them to the sensor, then going forward, the data gets added daily.
I want to use an Apex Chart to view lets say the last 30 days worth of info, but it just doesn't want to render.
I simplified the graph I am using, and comparing it to the plain statistics-graph
Apex:
type: custom:apexcharts-card
header:
colorize_states: true
graph_span: 30d
span:
end: day
all_series_config:
type: column
opacity: 0.7
stroke_width: 1
group_by:
func: last
duration: 1d
series:
- entity: sensor.oura_ring_readiness_score
yaxis:
- min: 0
max: 100
apex_config:
tickAmount: 10
statistics-graph:
chart_type: bar
period: day
type: statistics-graph
entities:
- sensor.oura_ring_readiness_score
stat_types:
- mean
days_to_show: 30