nervetattoo / simple-thermostat

A different take on the thermostat card for Home Assistant ♨️
MIT License
743 stars 112 forks source link

Custom element doesn't exist on kindle fire7 #250

Open ukmgranger opened 3 years ago

ukmgranger commented 3 years ago

I've been using this addon for a while now on my Amazon Kindle Fire7. Been working great unti la couple of days ago. I now get the red box saying 'Custom element doesn't exist: simple-thermostat.'

This only happens on the kindle. I've tried rebooting. I also get the same behaviour using the android app and the 'Wallpanel' app.

Works fine on my other tablets / phones etc.

Any ideas?

nervetattoo commented 3 years ago

Most likely related to browser cache. If not, errors from the browser error log would be helpful

Sundown89 commented 3 years ago

Same here on Nexus 9, on the Android Companion App. So no browser cache issue probably. Cleared cache from the app with no succes. Browser on laptop and Android Companion App on Oneplus 7 Pro works fine. Problem occured after switching from manual installation to HACS for both the Toon component as this Simple Thermostat card.

chikehe commented 3 years ago

same problem with companion app and phone browser, tried reinstall app but no luck

Sundown89 commented 3 years ago

Very strange because it seems to differ per device, at least in my case. Because it only appears to occur on the Android Companion App on a Nexus 9 tablet and not on Chrome browser on the same tablet and Android Companion Oneplus 7 Pro, I can't offer browser logs obviously. What information do we need to troubleshoot this?

I tried switching back to manual install from HACS and back, no success.

Edit: removed irrelevant logging.

Sundown89 commented 3 years ago

Alright, I seemed to have solved it by updating Android System Webview. My Nexus 9 is running a custom ROM and it comes with an outdated Webview. Apparently the old version does not handle .js correctly. Installed the latest from Play Store and selected it through developer tools on my tablet.

I got this from https://community.home-assistant.io/t/wallpanel-wont-show-my-custom-cards/113243/13 and there are more threads on this, especially concerning Amazon Fire devices. That is why I not came across this earlier, as I was focused on my Nexus 9. But it seems related.

In this thread someone also mentions an Amazon Fire. So check it out @ukmgranger. Hope this helps.

gerthass commented 2 years ago

I've the same issue when using the cast function to my Google Nest hub. The cast functionallity from HA gives the following afbeelding

adding this to my config does not fix the issue. Might the tip from HA help you looking for the cause @nervetattoo ?