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
73.56k stars 30.73k forks source link

Customization in Home Assistant 0.93+ does not work #24538

Closed ricmik closed 5 years ago

ricmik commented 5 years ago

Home Assistant release with the issue:

0.93, 0.94.3

Last working Home Assistant release (if known): This install was done directly on 0.93

Operating environment (Hass.io/Docker/Windows/etc.):

Hass.io on Raspberry Pi

Component/platform:

Customization

Description of problem: After a new install of Home Assistant 0.93 I'm unable to do any customizations via the customization page of the web interface.

Error message in web interface: It seems that your configuration.yaml doesn't properly include customize.yaml Changes made here won't affect your configuration.

The customizations worked in the beginning until a reboot of Hass.io

Sometimes the web interface let me customize the entities, and other times I get the message: The following attributes are already set in customize.yaml

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

Complete configuration.yaml


# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url: example.duckdns.org:8123

# Auto discovery
discovery:

# Sensors
sensor:
  # Weather prediction
  - platform: yr

# Text to speech
tts:
  - platform: google_translate

logger:
  default: info

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

recorder:
  purge_keep_days: 3

device_tracker:

weather:
  - platform: met

homekit:
  filter:
    include_domains:
      - light
      - media_player
    exclude_entities:
      - light.stue
      - light.balkong
      - light.kjokken
      - light.soverom
      - light.innelys
      - light.utelys

  entity_config:
    media_player.stue:
      name: Sonos Stue
      feature_list:
        - feature: play_pause
    media_player.bad:
      name: Sonos Bad
      feature_list:
        - feature: play_pause
    media_player.kjkken:
      name: Sonos Kjøkken
      feature_list:
        - feature: play_pause
    media_player.soverom:
      name: Sonos Soverom
      feature_list:
        - feature: play_pause

input_boolean:
  guest_mode:
    name: Gjestemodus
    icon: mdi:seat-individual-suite
  vacation_mode:
    name: Feriemodus
    icon: mdi:beach
  christmas_mode:
    name: Julemodus
    icon: mdi:ornament
  wakeup_routine:
    name: Morgenstemning
    icon: mdi:weather-sunset-up
  wakeup_weekends:
    name: Aktivert i helg
    icon: mdi:calendar-range
input_datetime:
  wakeup_time:
    name: Stå opp
    has_date: false
    has_time: true

light:
- platform: switch
  name: Balkonglys
  entity_id: switch.balkonglys
- platform: group
  name: Balkong
  entities:
    - light.balkonglys
- platform: group
  name: Stue
  entities:
    - light.leselys_sofahjorne
    - light.taklampe
- platform: group
  name: Kjøkken
  entities:
    - light.kjokkenbord
- platform: group
  name: Soverom
  entities:
    - light.nattbord_1
    - light.nattbord_2
    - light.vindu_soverom
- platform: group
  name: Innelys
  entities:
    - light.stue
    - light.kjokken
    - light.soverom
- platform: group
  name: Utelys
  entities:
    - light.balkong
media_player:
- platform: yamaha
  source_ignore:
    - "AUDIO1"
    - "AUDIO2"
    - "JUKE"
    - "MusicCast Link"
    - "NET RADIO"
    - "Napster"
    - "PHONO"
    - "SERVER"
    - "Spotify"
    - "TUNER"
    - "USB"
    - "V-AUX"
    - "iPod (USB)"
    - "Bluetooth"
    - "AV1"
    - "AV2"
    - "AV3"
    - "AV6"
    - "HDMI4"
    - "HDMI5"
  source_names:
    AV4: "TV"
    AV5: "Sonos"
    HDMI1: "PS4"
    HDMI2: "HTPC"
    HDMI3: "AppleTV"
  zone_ignore:
    - "Zone_2" 

Traceback (if applicable):

Not sure if these log messages are relevant, but they seem to happen when I try customization.

2019-06-14 20:31:44 ERROR (MainThread) [frontend.js.latest.201906040] http://hassio.local:8123/frontend_latest/app.29ef27ad.js:2:59869 Uncaught TypeError: Cannot convert undefined or null to object
2019-06-14 20:31:44 ERROR (MainThread) [frontend.js.latest.201906040] http://hassio.local:8123/frontend_latest/app.29ef27ad.js:2:59869 Uncaught TypeError: Cannot convert undefined or null to object
2019-06-14 20:31:51 ERROR (MainThread) [frontend.js.latest.201906040] http://hassio.local:8123/frontend_latest/app.29ef27ad.js:2:59869 Uncaught TypeError: Cannot convert undefined or null to object
2019-06-14 20:31:51 ERROR (MainThread) [frontend.js.latest.201906040] http://hassio.local:8123/frontend_latest/app.29ef27ad.js:2:59869 Uncaught TypeError: Cannot convert undefined or null to object

Additional information:

customize.yaml

binary_sensor.soveromsvindu_hoyre:
  device_class: window
binary_sensor.soveromsvindu_venstre:
  device_class: window
binary_sensor.kjokkenvindu_hoyre:
  device_class: window
binary_sensor.balkongdor:
  device_class: door
binary_sensor.inngangsdor:
  device_class: door
ghost commented 5 years ago

This issue was moved by OttoWinter to home-assistant/home-assistant-polymer#3277.