kalkih / mini-graph-card

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

Safari / MacOS - graph not rendered #985

Closed furstyferret-dev closed 6 months ago

furstyferret-dev commented 1 year ago

I've started seeing an error on Safari (Somona public beta) where the graph is not rendered but the state information is.

image

There are numerous Javascript warnings recorded: [Warning] mini-graph-card: – "value [20.6] not found in state_map" (mini-graph-card-bundle.js, line 1)

It then recovers unpredictably.

ildar170975 commented 1 year ago

No code provided.

furstyferret-dev commented 1 year ago
type: custom:mini-graph-card
name: SOLAR GENERATION
icon: mdi:solar-power-variant-outline
show:
  icon: true
  name: true
  fill: fade
  graph: line
  legend: true
hours_to_show: 6
points_per_hour: 15
line_width: 3
lower_bound: ~0.1
min_bound_range: 1
entities:
  - entity: sensor.pv_power
    show_graph: false
    color: '#ff9933'
    show_legend: false
    show_state: true
  - entity: sensor.pv1_power
    name: East Array
    color: '#66ccff'
  - entity: sensor.pv2_power
    name: West Array
    color: '#bf80ff'
ildar170975 commented 1 year ago

Use formatting when posting a code. Place triple “’”. Please always read the post after posting.

ildar170975 commented 1 year ago

Also, you seem to be using grid. Try remove the grid, using graphs without placing them into grid.

ildar170975 commented 1 year ago

There are numerous Javascript warnings recorded: [Warning] mini-graph-card: – "value [20.6] not found in state_map" (mini-graph-card-bundle.js, line 1)

Some of you mini-graph-card has a state_map option specified (which has a card-wide effect), and some graph(s) on this card has values not covered by this map.

ildar170975 commented 12 months ago

Do you still observe any problems? No feedback so far.

furstyferret-dev commented 12 months ago

Occasionally. It’s unpredictable and happens on the most basic graph on multiple browsers.

I think it may be related to how Home Assistant accesses resources so will see if it improves on the 2023.8 builds.

On Thu, 3 Aug 2023 at 15:25, ildar170975 @.***> wrote:

Do you still observe any problems? No feedback so far.

— Reply to this email directly, view it on GitHub https://github.com/kalkih/mini-graph-card/issues/985#issuecomment-1664085575, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANQ2JXVR3TLWS6B3MCZ2HGDXTOYGXANCNFSM6AAAAAA2PTHQHE . You are receiving this because you authored the thread.Message ID: @.***>

ildar170975 commented 6 months ago

Do you still have issues?

furstyferret-dev commented 6 months ago

No, it’s worked well for some time now, thank you.

On Thu, 18 Jan 2024 at 22:08, ildar170975 @.***> wrote:

Do you still have issues?

— Reply to this email directly, view it on GitHub https://github.com/kalkih/mini-graph-card/issues/985#issuecomment-1899299901, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANQ2JXULTHUGZ3MJZHA7ZSDYPGMPPAVCNFSM6AAAAAA2PTHQHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJZGI4TSOJQGE . You are receiving this because you authored the thread.Message ID: @.***>