Essaye comme ça : il faut trouver un moyen d’inverser jour/nuit mais le principe est là
type: custom:mini-graph-card
hours_to_show: 48
points_per_hour: 2
update_interval: 1
cache: false
hour24: true
entities:
- entity: sensor.sonde_salon_illuminance_lux
color: orange
- entity: binary_sensor.above_horizon
name: pasjour
color: grey
show_line: false
show_points: false
show_legend: false
y_axis: secondary
state_map:
- value: 'off'
label: Jour
- value: 'on'
label: Nuit
show:
labels_secondary: false
EDIT: de temps en temps le cache marche mal