andrey-git / home-assistant-custom-ui

Custom UI elements for https://home-assistant.io
https://home-assistant.io
MIT License
528 stars 97 forks source link

All Group Cards Blank #158

Open Coolie1101 opened 5 years ago

Coolie1101 commented 5 years ago

Checklist

Browser + Version:

  1. Chrome 69.0.3497.100 (Official Build) (64-bit)
  2. Microsoft Edge 42.17134.1.0 / Microsoft EdgeHTML 17.17134
  3. Internet explorer 11.34517134.0

CustomUI version: 2018-08-31

Home Assistant release (hass --version): 0.81.1

Problem-relevant configuration.yaml entries:

frontend:
  themes: !include_dir_named themes
  extra_html_url:
    - /local/custom_ui/state-card-custom-ui.html
    - /local/custom_ui/state-card-hline.html
    - /local/custom_ui/state-card-iframe.html

  extra_html_url_es5:
    - /local/custom_ui/state-card-custom-ui-es5.html

  javascript_version: latest

Problem-relevant customize_glob.yaml entries:

"*.*":
  custom_ui_state_card: state-card-custom-ui

Problem-relevant Home Assistant log entries:

2018-10-28 23:05:14 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'camera' of undefined
2018-10-28 23:05:14 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'camera' of undefined
2018-10-28 23:05:14 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'camera' of undefined
2018-10-28 23:05:14 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'camera' of undefined
2018-10-28 23:05:14 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'sensor' of undefined
2018-10-28 23:05:14 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'sun' of undefined
2018-10-28 23:05:14 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'sensor' of undefined
2018-10-28 23:05:14 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'sensor' of undefined
2018-10-28 23:05:14 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'sensor' of undefined
2018-10-28 23:05:14 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'sensor' of undefined
2018-10-28 23:05:14 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'sensor' of undefined
2018-10-28 23:05:14 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'sensor' of undefined
2018-10-28 23:05:14 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'sensor' of undefined
2018-10-28 23:05:15 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'sensor' of undefined
2018-10-28 23:05:15 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'sensor' of undefined
2018-10-28 23:05:15 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'sensor' of undefined
2018-10-28 23:05:15 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'sensor' of undefined
2018-10-28 23:05:15 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'sensor' of undefined
2018-10-28 23:05:15 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'sensor' of undefined
2018-10-28 23:05:15 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'sensor' of undefined
2018-10-28 23:05:15 ERROR (MainThread) [frontend.js.latest.201810261] http://192.168.200.210:8123/local/custom_ui/state-card-custom-ui.html:239:3174 Uncaught TypeError: Cannot read property 'sensor' of undefined

Any errors from browser Javascript console:

Did not check prior to disabling.

After disabling customize.glob, cards show up.

image

image

Mikeinnc commented 5 years ago

I have exactly the same problem. Everything was working on v0.79 - updated to v0.82.0 - many cards went blank. It was suggested to me that I turn off custom-ui (https://github.com/home-assistant/home-assistant/issues/18398) and everything works! I haven't had time to investigate further, but it's clear that this latest version doesn't want to play with custom-ui. I'll check if there is a newer custom-ui version and see what the effect is.

Mikeinnc commented 5 years ago

So, I've updated custom-ui to 2018-03-01 and it appears to fix the problem. I've reset the configuration file, and allowed custom-ui again; restarted the system and all appears to be well. Cards are showing devices exactly as I'd expect.

bratanon commented 5 years ago

So, I've updated custom-ui to 2018-03-01....

Updated to an old version? The current is 2018-08-31.

Mariusthvdb commented 5 years ago

is this still the case with the latest update of custom-ui? All groups in my HA instances are back, both on desktop and mobile devices.

bratanon commented 5 years ago

Not for me. I updated to 20181217 and it works.

artomka commented 5 years ago

Hi, I still have the same problem. I updated Custom UI to 20181217 and I have 0.84.3 version of Hass.io.

EDIT: In my case fixed by deleting my browser’s cache.

jonydebu commented 5 years ago

Hi , same problem , custom UI 2018-12-17 and 0.84.5 of Hass.io

matthewcky2k commented 5 years ago

same problem here also groups randomly disappear. 84.6

Spirituss commented 4 years ago

Still have the problem in 0.102.2