If it’s a hassos-specific issue there is not much I can do
thanks @andrey, I am using the docker image of homeassistant, I didn’t add any specific python modules to it.
I’ve now commented out :
customizer:
custom_ui: hosted
and it works without errors, thanks for that.
Should the documentation be amended, as I found that syntax on that page activating.md ?
I edited the documentation changing One to Only one
Hmm not sure .
I now notice that in the HomeAssistant app neither Hassio nor Hasso show the attribute .
seems to go hand in hand with the previously mentioned front-end error:
http://hassio-2.local:8123/frontend_latest/app-c65b4028.js:2:32129 TypeError: undefined is not an object (evaluating 't.length')
each time i click an item with the missing attribute, this pops up.
@andrey
See https://github.com/home-assistant/home-assistant/issues/15852#issuecomment-410802738
Resolves the front end error.
Is this caused by custom-ui? If not please ignore.
Seems to have taken care of the attributes issue along the way:
also see https://github.com/home-assistant/home-assistant-polymer/issues/1550#issuecomment-410949612 for a solution being updated in the new Master
HI @andrey
would this be possible:
group.all_lights:
hidden: false
confirm_controls_show_lock: true
Ive tried, but no result:
if not, please could this be a feature request?
@andrey I am running Custom UI as local on a RPI3, HassOS, to minimize data traffic and make my installation as autonomous as possible.
Is there a way to update the Custom UI code easily, with a push of a button running a script, with an addon, or something in that manner?
Now I regularly manually copy and paste the code and files to my installation. Since Custom UI is regularly updated, a one button update- or automatic update functionality as an option, would be so much more user friendly, and helping HA being up to date.
Any advise is appreciated.
see home-assistant-custom-ui/docs/installing.md at master · andrey-git/home-assistant-custom-ui · GitHub
you could easily create a script for that I suppose, to make it even easier…
Thanks!
As the N00b I am, always afraid to corrupt my HA installation using Linux commands, any advise how to do this, using a command line sensor or a script… Code suggestion is appreciated
The instructions for local update suggest installing the file “update.sh” to your homeassistant config dir.
If I want to put the “update.sh” file into “\HASSIO\config\www\custom_ui”,
how will the shell command be “$ .\HASSIO\config\www\custom_ui\update.sh”?
i don’t use that, I simply shell in to the system, then
cd /config hit enter
./update.sh hit enter
thats it
since @andrey s instructions are based on his /update script, which is based on the exact file location, I wouldn’t do that… better ask him if what you want is advisable, and if so, what the script would have to look like.
I am not competent to change the script. @andrey Can you please suggest how to alter the script to custom file location?
It is not possible. The group titles are not directly customizable.
The script also updates itself, so if you were to edit it - you would lose that functionality.
Can’t you put it into the config dir, i.e. \HASSIO\config\
?
ok thanks for the swift reply.
seems to be no reason not to do that.
would this shell_command suffice for running the update script?
shell_command:
sc_update_custom_ui: >
/config/update.sh
I’ll do that.
-
Can I rename the file “update.sh” to “Custom_UI_update.sh”, without corrupting the functionality?
-
Do I have to run the shell command “$ chmod u+x update.sh” every time before I run “update.sh”? (I installed Custom UI manually by copy the files/folders)
UPDATE:
Running the shell commands:
update_custom_ui1: $ chmod u+x update.sh
update_custom_ui2: $ ./HASSIO/config/update.sh
Gives error:
Error running command: $ ./HASSIO/config/update.sh
, return code: 127
10:27 /usr/local/lib/python3.6/site-packages/homeassistant/components/shell_command.py (ERROR)
Error running command: $ chmod u+x update.sh
, return code: 127
10:27 /usr/local/lib/python3.6/site-packages/homeassistant/components/shell_command.py (ERROR)
- “confirm_controls_show_lock: true” does not work with scripts(?) Wold be a nice feature!
Running the commands with errors. Any idea what I am doing wrong (HassOS 1.7/0.75.2)?
simply type
./update.sh
after the prompt and hit enter
(leave out the ‘$’)
Don’t type the $
.
You need to run
chmod u+x update.sh
from the same directory where you downloaded update.sh
Hass.io supervisor 125/HassOS 1.7/Home Assistant 0.75.3
I cant get the Local install-Automatic install to work.
I deleted all my previous manually installed Custom UI. Cleared browser cache. Retarted HA. Then followed the instructions for Local install-Automatic install.
After running the Linux commands, no files where created in HA. Restared HA. Still no new Custom UI files. What am I missing?
As the script warned you - you need to run this from your config dir.