Tons of Errors and not working Custom UI on 0.70.0

Hi,

I got tons of errors in my log because of the frontend. For any reasons the custom UI is sometimes working, then there are no errors. But on most devices and most of the time its not working+errors.

On my iPhone 7 Plus with Home Assistant app, its working fine.

Home Assistant runs on a Pi 3
I updated Custom UI to latest

Thx for helping.

This are the logs:

2018-05-29 10:19:14 ERROR (MainThread) [frontend.js.latest.201805264] http://192.168.2.25:8123/local/custom_ui/state-card-custom-ui.html:1:13969 Uncaught ReferenceError: StateCardDisplay is not defined
2018-05-29 10:19:14 ERROR (MainThread) [frontend.js.latest.201805264] http://192.168.2.25:8123/local/custom_ui/state-card-custom-ui.html:1:20198 Uncaught TypeError: Polymer.mixinBehaviors is not a function
2018-05-29 10:19:14 ERROR (MainThread) [frontend.js.latest.201805264] http://192.168.2.25:8123/local/custom_ui/state-card-custom-ui.html:1:26870 Uncaught TypeError: Cannot read property 'computeDomain' of undefined
2018-05-29 10:19:15 ERROR (MainThread) [frontend.js.latest.201805264] http://192.168.2.25:8123/local/custom_ui/state-card-custom-ui.html:1:26870 Uncaught TypeError: Cannot read property 'computeDomain' of undefined
2018-05-29 10:19:15 ERROR (MainThread) [frontend.js.latest.201805264] http://192.168.2.25:8123/local/custom_ui/state-card-custom-ui.html:1:26870 Uncaught TypeError: Cannot read property 'computeDomain' of undefined
2018-05-29 10:19:15 ERROR (MainThread) [frontend.js.latest.201805264] http://192.168.2.25:8123/local/custom_ui/state-card-custom-ui.html:1:26870 Uncaught TypeError: Cannot read property 'computeDomain' of undefined
2018-05-29 10:19:15 ERROR (MainThread) [frontend.js.latest.201805264] http://192.168.2.25:8123/local/custom_ui/state-card-custom-ui.html:1:26870 Uncaught TypeError: Cannot read property 'computeDomain' of undefined
2018-05-29 10:19:15 ERROR (MainThread) [frontend.js.latest.201805264] http://192.168.2.25:8123/local/custom_ui/state-card-custom-ui.html:1:26870 Uncaught TypeError: Cannot read property 'computeDomain' of undefined
2018-05-29 10:19:15 ERROR (MainThread) [frontend.js.latest.201805264] http://192.168.2.25:8123/local/custom_ui/state-card-custom-ui.html:1:6099 Uncaught TypeError: Cannot read property 'LOGIC_STATE_ATTRIBUTES' of undefined
2018-05-29 10:19:18 ERROR (MainThread) [frontend.js.latest.201805264] http://192.168.2.25:8123/local/custom_ui/state-card-custom-ui.html:1:25057 Uncaught TypeError: Cannot read property 'applyThemesOnElement' of undefined
2018-05-29 10:19:18 ERROR (MainThread) [frontend.js.latest.201805264] http://192.168.2.25:8123/local/custom_ui/state-card-custom-ui.html:1:25057 Uncaught TypeError: Cannot read property 'applyThemesOnElement' of undefined
2018-05-29 10:19:18 ERROR (MainThread) [frontend.js.latest.201805264] http://192.168.2.25:8123/local/custom_ui/state-card-custom-ui.html:1:25057 Uncaught TypeError: Cannot read property 'applyThemesOnElement' of undefined
2018-05-29 10:19:18 ERROR (MainThread) [frontend.js.latest.201805264] http://192.168.2.25:8123/local/custom_ui/state-card-custom-ui.html:1:25057 Uncaught TypeError: Cannot read property 'applyThemesOnElement' of undefined
2018-05-29 10:19:18 ERROR (MainThread) [frontend.js.latest.201805264] http://192.168.2.25:8123/local/custom_ui/state-card-custom-ui.html:1:25057 Uncaught TypeError: Cannot read property 'applyThemesOnElement' of undefined
2018-05-29 10:19:18 ERROR (MainThread) [frontend.js.latest.201805264] http://192.168.2.25:8123/local/custom_ui/state-card-custom-ui.html:1:25057 Uncaught TypeError: Cannot read property 'applyThemesOnElement' of undefined

the same issue.
After updating.

2018-05-29 14:32:06 ERROR (MainThread) [frontend.js.latest.201805264]
2018-05-29 14:32:06 ERROR (MainThread) [frontend.js.latest.201805264] http://hassio.local:8123/frontend_latest/app-653721033e62144d6a686dab25ef1429.js:2:12056 TypeError: undefined is not an object (evaluating 'window.hassUtil.computeDomain')

Github issues here:

2 Likes

Yep. clearing browser cache solve this problem.
thnx

1 Like

thx I will follow on github.

Clearing browser cache solves this for me on chrome. On an iOS I have to delete the app and reinstall. But now its working, too.
Thx for helping

I think removing the iOS app is the only way to guarantee the old files are removed from the cache; they seem to persist on a reboot.

I have exactly this, but I did not understand what’s the solution?. I cleared the cache and still the same.

My errors

2018-05-29 14:39:19 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'applyThemesOnElement' of undefined
2018-05-29 14:39:19 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'computeDomain' of undefined
2018-05-29 14:39:19 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'computeDomain' of undefined
2018-05-29 14:39:20 DEBUG (Thread-8) [xiaomi_gateway] MCAST (report) << {'cmd': 'report', 'model': 'magnet', 'sid': '158d000111a31c', 'short_id': 22669, 'data': '{"status":"close"}'}
2018-05-29 14:39:20 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Door Window Sensor_158d000111a31c: on>: {'status': 'close'}
2018-05-29 14:39:20 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'applyThemesOnElement' of undefined
2018-05-29 14:39:20 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'computeDomain' of undefined
2018-05-29 14:39:20 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'computeDomain' of undefined
2018-05-29 14:39:20 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'applyThemesOnElement' of undefined
2018-05-29 14:39:20 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'computeDomain' of undefined
2018-05-29 14:39:20 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'computeDomain' of undefined
2018-05-29 14:39:20 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'applyThemesOnElement' of undefined
2018-05-29 14:39:20 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'computeDomain' of undefined
2018-05-29 14:39:20 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'computeDomain' of undefined
2018-05-29 14:39:20 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'applyThemesOnElement' of undefined
2018-05-29 14:39:20 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'computeDomain' of undefined
2018-05-29 14:39:20 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'computeDomain' of undefined
2018-05-29 14:39:20 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'applyThemesOnElement' of undefined
2018-05-29 14:39:20 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'computeDomain' of undefined
2018-05-29 14:39:20 ERROR (MainThread) [frontend.js.es5.201805264] http://192.168.1.12:8123/frontend_es5/app-1277c62fbd5787659346fe106c01cc31.js:2:15809 Uncaught TypeError: Cannot read property 'computeDomain' of undefined

try in incognito (private mode) in chrome (safari)

if your using extra htmls urls under frontend in config.yaml, comment them out , this worked for me

extra_html_url:

  • /local/custom_ui/state-card-tiles.html

  • /local/custom_ui/state-card-iframe.html

  • /local/custom_ui/state-card-with-speed.html

  • /local/custom_ui/state-card-custom_fan.html

  • /local/custom_ui/state-card-custom_light.html

  • /local/custom_ui/state-badge-custom.html

  • /local/custom_ui/state-card-value_only.html

  • /local/custom_ui/state-card-text.html

  • /local/custom_ui/state-card-custom_volume.html

    extra_html_url_es5:

    • /local/custom_ui/state-card-tiles_es5.html
    • /local/custom_ui/state-card-custom-ui-es5.html
    • /local/custom_ui/state-card-html_es5.html
    • /local/custom_ui/state-card-custom-ui-dbg-es5.html
    • /local/custom_ui/state-card-value_only.html

you mean like this:

frontend:
  javascript_version: es5
  extra_html_url:
#    - /local/custom_ui/state-card-custom-ui.html
#    - /local/custom_ui/state-card-mini-media-player.html
#    - /local/custom_ui/state-card-tiles.html
  extra_html_url_es5:
#    - /local/custom_ui/state-card-custom-ui-es5.html
#    - /local/custom_ui/state-card-floorplan.html
#    - /local/custom_ui/state-card-mini-media-player_es5.html
#    - /local/custom_ui/state-card-tiles_es5.html

Literally just updating the custom_ui files and force refreshing the page fixed exactly those errors, didn’t touch the config.

Can you elaborate a little?

Just upgraded and got the same issue.

how to do this?

I just downloaded the latest files from the relevant github pages, they’re flagged as fixed for 0.70, and overwrote the older ones in the www/custom_ui folder.

Having said it fixed the errors completely, I do have one Android device that if I access the HA front end via the outside world it throws the errors still but if I access it locally on the same device it works fine.

@Coolie1101 too :slight_smile:

I don’t know where to look

1 Like

@anon35356645 the entire code needs to be commented out.

He is mentioning a 0.71 version??

Saying that those github instructions are confusing is an under statement

Bobby says he did not touch the config… urgh

1 Like