home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.49k stars 30.33k forks source link

Customize does not work as advertised #9350

Closed onlize closed 7 years ago

onlize commented 7 years ago

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version): I used Python Virtual Env to install it. Command hass does not work for me. It does not work when I used All In One and Python Virtual Env installation. I tried both. After the latest upgrade, HA version is 0.53.0 pi@Home-Assistant:~ $ hass --version -bash: hass: command not found

Python release (python3 --version): Python 3.6.2

Component/platform: Raspberry Pi 3/Raspbian Stretch

Description of problem: Customization does not work. When I select something to configure, it does not show on the screen and no longer available to select. I tried Firefox, IE, and Microsoft Edge browsers.

Expected: Expected to work.

Problem-relevant configuration.yaml entries and steps to reproduce:

customize: !include customize.yaml
  1. Go to Configuration and click on Customization
  2. Select Entity and Select Attribute, for example Icon
  3. Icon entry does not appear on the page and it disappear from the list of the attributes

Traceback (if applicable):

Additional info:

andrey-git commented 7 years ago

There is an icon-specific bug: https://github.com/home-assistant/home-assistant/issues/9348 An another checkbox-specific bug.

Do string entries (like name) work for you?

onlize commented 7 years ago

I do not have option name, or friendly name, or something like this.

image

onlize commented 7 years ago

I have different issue with icon. When I select icon from the list, it does not show me where to type the icon name and icon does not appear on the list. The image that I include is from the same entity as image above, but I selected icon a moment ago. As you can see nowhere to type and icon is no longer on the list: image

andrey-git commented 7 years ago

Do you have custom UI enabled? If yes - please try without it.

Make sure you hard refresh (Ctrl f5) after loading the ui

andrey-git commented 7 years ago

Does it work for you in chrome?

onlize commented 7 years ago

I tried it on someone else's computer with Chrome and it looks like it works.

Does it mean that it will work only in Chrome? I do not want to install it.

onlize commented 7 years ago

I do not know what is the "custom UI" and how to enable/disable it.

andrey-git commented 7 years ago

I developed the UI on chrome, probably missed something. Will debug on Firefox...

aptonline commented 7 years ago

I'm getting:

It seems that your configuration.yaml doesn't properly include customize.yaml Changes made here won't affect your configuration.

I have the following enabled in configuration.yaml

customize: !include customize.yaml and config:

Changes seem to be getting written to customize.yaml but not showing in both Safari and Chrome.

andrey-git commented 7 years ago

@aptonline Is you customize: inside homeassistant: like this: ?

homeassistant:
  customize: !include customize.yaml
config:

Also, I think you need to restart Home Assistant after you added customize: !include customize.yaml to the config.

aptonline commented 7 years ago

Checking the confit it’s showing the following:

`Failed config General Errors:

aptonline commented 7 years ago

@andrey-git That seems to have done the trick. I was adding it in with the rest of the includes. No error now but its not showing the icon changes just a blank icon. Same in Chrome and Safari.

onlize commented 7 years ago

Andrey,

Sorry, this is the first time I submit the problem with HA and I do not understand how to use the fix. It shows that the fix is for two files: panels/config/customize/ha-customize-attribute.html and src/util/hass-util.html.

I cannot find those files, where are they? And, do I add the script you provided or do I replace whatever is in those files?

andrey-git commented 7 years ago

In order to try the fix you need to setup frontend development environment and then run with

http:
  development: 1

to use uncompiled js/html files. You could wait a day or two until the fix is committed an pushed to main repository, then you would be able to try it as part of regular dev version.

onlize commented 7 years ago

Okay, I'll wait. Thank you for your help.