apexcharts-card
apexcharts-card copied to clipboard
Graph sometimes not shown, blank box
Checklist
- [X] I updated the card to the latest version available
- [X] I cleared the cache of my browser
- [X] I verified that I'm really running the lastest version in my browser console
- [X] I checked if there is another issue opened with the same problem
Describe the bug In Firefox on windows and android, the graph is sometimes not shown, only a blank box is rendered. There is no such issue in chrome or in the android companion app.
I've tried to create a simplified example of my lovelace pages to reproduce this issue, but I've not been successful. There's no such issue with simplified pages I've tried.
Version of the card Version: v1.9.0
To Reproduce This is the configuration I used:
type: custom:apexcharts-card
graph_span: 1d
all_series_config:
stroke_width: 2
series:
- entity: sensor.sz_ht_heizung_temperature
name: Temperatur
type: line
yaxis_id: temp
- entity: sensor.sz_ht_heizung_humidity
name: Luftfeuchtigkeit
type: line
yaxis_id: hum
yaxis:
- id: temp
min: ~10
max: ~30
apex_config:
tickAmount: 4
- id: hum
min: ~45
max: ~65
opposite: true
apex_config:
tickAmount: 4
Screenshots After loading/opening lovelace in firefox, the graph is shown:
It is still shown after switching between the pages of the same dashboard.
But it is not shown anymore after switching to another dashboard and back to the first one:
It's shown again after CTRL+R.
Expected behavior I'd expect to see the graph again.
Desktop (please complete the following information):
- Browser: Firefox on windows
- Version: 90.0.2
Smartphone (please complete the following information):
- Device: Xiaomi Mi 9
- OS: Android 10, MIUI 12.0.5
- Browser: Firefox
- Version: 90.1.2
Additional context Add any other context about the problem here.
Uncaught (in promise) TypeError: this._hass is undefined
apexcharts-card.js:829:36325
Do you have the same error as in the previous comment in the javascript console of the browser @breti?
@RomRider I would expect it because I see the same behaviour described by @breti
Btw it's also in 1.10.0-dev.6
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.
Not fixed yet.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.
Not fixed yet.
:tada: This issue has been resolved in version 1.10.0-dev.7 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 1.10.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Hmm... unfortunately I can't confirm this to be fixed :-/ Behaviour has changed a little bit:
Please share the logs, I can't do anything without it
Thanks for looking into this issue.
The error message is gone. Anything else I can do to assist debugging this issue?
Please try the latest beta, I introduced another problem while trying to fix this one haha :)
I've updated to v1.10.1-dev.2 and cleared cache. Unfortunately the bug is not fixed, the box is empty again. There is a new error logged on console: