Custom UI is not working for me

Hello,
sao I decided to try Custom UI but I just doesn’t work for me.
What I did:

  • created folder www/custom_ui

  • copied state-card-custom-ui.html and state-card-custom-ui.html.gz to above folder

  • aded this to my configuration.yaml

    customize: !include includes/customize.yaml
    customize_glob:
      switch.*:
        custom_ui_state_card: custom-ui
      sensor.*:
        custom_ui_state_card: custom-ui
    

And all switches and sensors vanished from Front End without any error message.

What did I screw up this time? :thinking:

Thank you.

Start with only one switch or sensor. I am guessing it is a permission issue. I had a similar problem. Make sure the folder custom_ui and all the files inside have been assigned to the user homeassistant (or whatever it is in your case).

Hello,
‘ls - all’ shows that all folders and files in ‘/.homeassistant’ and ‘custom_ui’ folder has the same user. So it should be ok, right?

Thank you.

I experience the same issue. Rights are ok, freshly downloaded the .html and .html.gz files to /www/custom-ui, but the lights are vanished from the frontend.

Fixed by using the (new) update.sh script.

First deleted the .html and .html.gz files that I downloaded myself before.

so you just copied update.sh to .homeassistant/www/custom_ui and ran with ./update.sh ?

Thank you.

No, in the /.homeassistant/ folder, chmod it, deleted the old custom_ui files in /www/custom_ui, and ran the script, see for instructions: https://github.com/andrey-git/home-assistant-custom-ui/blob/master/docs/installing.md :slight_smile:

1 Like

I am seeing bash: ./update.sh: Permission denied on my Ubuntu box. I deleted the old files, chmod, and then ran the script.

How to change the owner of the custom_ui folder? Actually i have root but it seems i need homeassistant as owner to make custom ui working

Use sudo chown -R homeassistant:homeassistant /home/homeassistant/.homeassistant/. This will change all the files/folders in /home/homeassistant/.homeassistant/ to homeassistant. You may have to change the path depending on your installation method.

1 Like