I’m trying to use the new custom state card feature released in .38 to create light dimmers but I’m not fully understanding the documentation. I copied the files in https://github.com/andrey-git/home-assistant-custom-ui to my install so I have these files in /www/custom_ui/
Unfortunately, the controls for these lights just fail to load. I’m sure there’s more to this. Perhaps I’m missing out on some dependencies or I need to make some changes inside the.html files. I’m not really sure. Can anyone offer a little more advanced tutorial that what’s in the documentation? This is a basic AIO install. paging @andrey
I didn’t have Chrome so I installed it to use the console feature you mentioned, and lo-behold, the custom UI is working. It is not working at all in Safari for MacOS or iOS. I tried clearing my cache and no difference. Now I’m wondering what the conflict in Safari might be?
I was having a similar problem on my desktop machine with Chrome - turned out that Chrome was not reloading the controls until I did a hard refresh and then they showed up. Seems silly, but I started digging though my configuration before I thought of to check.
I don’t have any Android or Linux desktops to test but I fired up Windows 7. HA wouldn’t even load up on IE8. It worked on Firefox though. Seems to be an issue affecting iOS and Mac Webkit stuff only.
The console doesn’t have any errors logged. I tried to look through the resources to find “ha-themed-slider.html” or “state-card-custom-light.html” but I can’t find them anywhere. That being said, it is not presented the same way it is in Chrome and I don’t exactly know how to use it so I’m not sure if I’m just overlooking it or not.
Well, please let me know if there’s anything I can test for you. I’d love to see this working on iOS because it’s a really great improvement to the UI. Thanks!
I tried this on emulator of iPhone6s with Safari 9
“Mozilla/5.0 (iPhone; CPU iPhone OS 9_0_2 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13A452 Safari/601.1”
and everything worked fine.
Maybe try to clear browser data (for your hass:8123 location) ?
I tried the user agent emulator as you have it above in Chrome and it renders properly but when I use the same user agent emulation in Safari it doesn’t work. I’ve tried clearing and disabling cache, visiting from devices that have never connected to my HASS, turning off pi-hole, connecting from outside my network, disabling SSL and base_url. Nothing changes.
This is what I get:
iOS Safari: NO
iOS Chrome: NO
iOS Firefox: NO
iOS Dolphin: NO
MacOS Safari: NO
MacOS Chrome: Yes
MacOS Firefox: Yes
No idea what’s up. Are there any other users who can test this? I’d like to know if I have an isolated incident or not. Should I open a ticket on github?
Hey @Stewface, can you try installing it and see if works for you on Safari? As far as I know, I’m the only one bringing this up so it would be nice to know that it is, or is not, just me!