kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
2.89k stars 233 forks source link

Intermittent "Entity not available" error until Device toggled on/off #993

Closed ryanmaule closed 6 months ago

ryanmaule commented 12 months ago

I have a mini-graph for the temperature of a Sonoff TH10, and intermittently the graph will not load and the error "Entity not available" will display. This can be fixed by toggling the switch on the device on/off, which makes the mini-graph appear. This happens for both of my Sonoff TH10 devices.

Before:

Screenshot 2023-08-03 at 11 14 41 AM

After:

Screenshot 2023-08-03 at 11 14 48 AM

It's strange that it's intermittent, and often the mini-graphs will display perfectly without this toggle.

ryanmaule commented 12 months ago

Here is my mini-graph code:

  - type: custom:mini-graph-card
    entities:
      - sensor.10008d0711_t
    name: Crawl Space
    line_color: var(--accent-color)
    line_width: 8
    font_size: 75
    show:
      labels: false
      extrema: true
    aspect_ratio: 1/3
    animate: true

Here is my switch code:

  - entity: switch.10008d0711
    icon: hass:fire
    name: Heater
ildar170975 commented 12 months ago

Here the same card for 2 sensors: -- unavailable -- not existing

image

Seems that your sensor is disappearing sometimes. Test with a standard history-graph.

ildar170975 commented 6 months ago

Explanations were provided. No feedback for 6 months. Closed.