# Carte mini graph card affichant un binaire "nuit"

**URL:** <https://forum.hacf.fr/t/carte-mini-graph-card-affichant-un-binaire-nuit/8313>\
**Category:** Entraide Home Assistant\
**Created:** [Janvier 1, 2022, 2:42 UTC](https://forum.hacf.fr/t/carte-mini-graph-card-affichant-un-binaire-nuit/8313 "2022-01-01T14:42:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Pulpy-Luke](https://forum.hacf.fr/user_avatar/forum.hacf.fr/pulpy-luke/32/137426_2.png) [@Pulpy-Luke](https://forum.hacf.fr/u/Pulpy-Luke)\
**Post date:** [Janvier 1, 2022, 3:23 UTC](https://forum.hacf.fr/t/carte-mini-graph-card-affichant-un-binaire-nuit/8313/2 "2022-01-01T15:23:48Z")

</div>

Essaye comme ça : il faut trouver un moyen d'inverser jour/nuit mais le principe est là

```auto
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

```

 ![image](https://forum.hacf.fr/uploads/default/original/2X/a/ab87492923eb418d0a9682ca485a8ccf26ef1ea6.png)

EDIT: de temps en temps le cache marche mal 😉

---

_[View the full topic](https://forum.hacf.fr/t/carte-mini-graph-card-affichant-un-binaire-nuit/8313)._
