kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
2.87k stars 231 forks source link

Mini-graph-card displays an empty chart when viewed on an android tablet #1005

Closed ncd7 closed 9 months ago

ncd7 commented 10 months ago

I’m viewing my dashboard on an android tablet and the mini-graph-card is not showing any date, just blank. The same dashboard shows fine on my Pixel (android) phone and on an iPhone as well.

ildar170975 commented 10 months ago

Provide some details. HA version. Code for mini-graph-card. Test with ONE graph card an a dashboard.

ncd7 commented 10 months ago

Thanks for the reply!

Home Assistant 2023.9.1 Supervisor 2023.08.3 Operating System 10.5 Frontend 20230908.0 - latest

This reproduces the issue (had a more complicated two-axis card but even this simplest setup seems broken).

views:
  - title: Home
    cards:
      - type: custom:mini-graph-card
        name: Temperature and Humidity
        entities:
          - entity: sensor.living_room_display_sensor_temperature
            name: Temperature

The card renders the box, the temperature, the title and the icon but there is no actual graph. The same dashboard works fine on my laptop, an android phone and an apple phone.

ildar170975 commented 10 months ago

Try reseting browser cache

ncd7 commented 10 months ago

I'm viewing this directly in the mobile app running on the tablet, not sure how to reset the cache on that...?

ildar170975 commented 10 months ago

iOS companion app has a “reset fronted cache» button, may be Android has it as well.

ncd7 commented 10 months ago

So some very interesting info. Seems the android app can only be reset by going into the android app settings and clearing cache but not sure if i did it right. Even more interestingly - if I log into HA directly through Chrome on the tablet and view the card there - the chart displays properly! So there must be something in the android app that doesn't work with this card :(. For now as a workaround I'll just create a tile bookmark on the tablet screen and start it from there. It looks as good as in the app if i play with the settings. But it might be worth eventually getting to the bottom of this. It seems others have had this issue before from googling a few days ago. Thanks for responding to this bug report btw!

ildar170975 commented 10 months ago

But I do not see in your post about results after clearing cache. Did resetting a cache in Android companion app help? Also, if you still see no graphs - test with same entity and a standard “history-graph” card, check if a graph is displayed.

Alfons-Hetler commented 9 months ago

I try it too and it did not worked. It says: Custom element doesn´t exist: plothy-graph. I deleted the app and begin from new but the error stay there.

ildar170975 commented 9 months ago

plothy-graph.

Not related to this Repo.

ncd7 commented 9 months ago

Apologies, I did not reply earlier. Yes, the issue was fixed, I'm so happy! Steps were to go to the App and click on "Clear Cache" (NOT clear data as that will also delete your user data and you'll need to relog) and everything worked.