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.51k stars 30.71k forks source link

customize.yaml Issues - Latest build 0.111.3 #36846

Closed jdedfamily closed 4 years ago

jdedfamily commented 4 years ago

The problem

I cannot get the customize capability to work . Even when i add the !include customize.yaml to the configuration.yaml file.** Error "It seems that your configuration.yaml doesn't properly include customize.yaml. Changes made here are written in it, but will not be applied after a configuration reload unless the include is in place" ## Environment
rch x86_64
chassis vm
dev false
docker true
docker_version 19.03.8
hassio true
host_os HassOS 4.10
installation_type Home Assistant
os_name Linux
os_version 5.4.44
python_version 3.7.7
supervisor 227
timezone Australia/Melbourne
version 0.111.3
virtualenv false

Problem-relevant configuration.yaml

# Configure a default setup of Home Assistant (frontend, api, etc) default_config: # Text to speech tts: - platform: google_translate group: !include groups.yaml automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml customize: !include customize.yaml media_player: - platform: yamaha_musiccast host: 192.168.5.153 port: 5005 - platform: yamaha_musiccast host: 192.168.5.192 port: 5006 - platform: yamaha_musiccast host: 192.168.5.56 port: 5007 - platform: yamaha_musiccast host: 192.168.5.143 port: 5008 wake_on_lan: webostv: host: 192.168.5.99 name: KitchenTV turn_on_action: service: wake_on_lan.send_magic_packet data: mac: C8:08:E9:D4:FA:BC broadcast_address: 255.255.255.255 ```yaml ``` ## Traceback/Error logs 2020-06-16 17:25:04 ERROR (SyncWorker_4) [homeassistant.util.yaml.loader] mapping values are not allowed here in "/config/configuration.yaml", line 37, column 11 2020-06-16 17:34:37 ERROR (SyncWorker_2) [homeassistant.util.yaml.loader] mapping values are not allowed here in "/config/configuration.yaml", line 38, column 11 ```txt ``` ## Additional information
gambith commented 4 years ago

Try this:

configuration.yaml

homeassistant: customize: !include customize.yaml

gambith commented 4 years ago

Hmm, and use some spaces for the customize: !include customize.yaml line.

spacegaier commented 4 years ago

Which are the lines mentioned as problematic in the trace (lines 37 & 38)? Can you perhaps put your configuration YAML into code tags, so it's easier to follow.

Mariusthvdb commented 4 years ago

probably the wake_on_lan: that should be on its own line aligned left, and not below platform Yamaha. see https://www.home-assistant.io/integrations/wake_on_lan/

but yes, use the proper format please

jdedfamily commented 4 years ago

Thanks guys . Worked it out bad code on my side .. noob . Cheers for the help.