Constant Config file failures

Hey all,

I am relatively new to the HASS community so any help would be greatly appreciated. I installed Home Assistant on a docker image on my Synology NAS and it has been stable ever since. However, when I try to edit the config.yml file, I always get an error massage that the configuration failed when I restart Home Assistant, even though the integrations work when I make the changes in the GUI.

I installed a plain text editor (Text Editor) in diskstation so I wouldn’t have to download the config file every time I wanted to edit it.

What am I doing wrong?

Are you doing a configuration check before you restart?

No I haven’t done a config test before I restart. Another thing I noticed, is that all the integrations that I perform using the GUI, aren’t automatically updating the config file either. So right now I have a roomba, 3 ring cameras with motion sensors, 2 TVs, and a bunch of smart switches, all of which I used the GUI and/or self discovered but none of these are visible in my config file. Is this normal?

Yes that’s normal. All UI configured integrations have their settings stored in the registry rather than the configuration.yaml file.

Do a configuration check before restarting and it will point out what to fix.

You may have to enable advanced mode in your profile before this is visible in the configuration / server controls menu. No idea why it was hidden it like that. It’s pretty much essential.

Where can I find that option? Is it inside the GUI?

You can open your profile by clicking on the round circle with initials bottom left.

Hey Tom, thanks for showing me the advanced mode. I have enabled that option and in the Configuration Validation screen, it keeps reading that these basic configurations, like my Samsung TV for instance, are reading as “not found”

This is my config file below:

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

samsung_tv:
 - host: this is my IP

# Text to speech
tts:
 - platform: google_translate


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

Have you read this?

Yes i have read the instructions. And I can’t seem to get it to work.

Have you tried setting it up using the UI instead of yaml?

I get this error message:

Aborted
This Samsung TV device is currently not supported.

Now, the weird thing is that I had previously been able to add this samsung TV via the UI, with basic controls (on/off and TTS) but now it is sending me this error.

I have also tried to install the samsungtv_custom plug-in via yaml for more control over the TV. https://github.com/roberodin/ha-samsungtv-custom.

And below was my config for that:

samsung_tv:
  - platform: samsungtv_custom
  - host: MY IP ADDRESS
  - mac: MY MAC ADDRESS
  - port: (8001)
  - source_list: '{"XBOX": "KEY_HDMI1", "Switch": "KEY_HDMI2", "Computer": "KEY_HDMI3" "Chromecast": "KEY_HDMI4"}'
  - protocol: ws
  - name: Living_Room_TV

Seems like whenever I try to edit the yaml file, I get a failure message.

You only need the one dash.

samsung_tv:
  - platform: samsungtv_custom
    host: MY IP ADDRESS
    mac: MY MAC ADDRESS
    port: (8001)
    source_list: '{"XBOX": "KEY_HDMI1", "Switch": "KEY_HDMI2", "Computer": "KEY_HDMI3" "Chromecast": "KEY_HDMI4"}'
    protocol: ws
    name: Living_Room_TV

Look at the examples: https://github.com/roberodin/ha-samsungtv-custom#configuration

And I still get the error :slight_smile:

Component error: samsung_tv - Integration ‘samsung_tv’ not found.

How did you install it?

That is the message I get from the configuration check.

I got that. How did you install the custom integration?

Manually or with HACS?

I installed it Manually

Then I would go over the installation instructions again to make sure you have done it correctly.

Taking particular care in how you download the repository. Downloading the whole thing as a zip file is best. Also you need to restart after installing it.

I downloaded the zip file, and made the necessary changes to my configuration file according to the instructions on the webpage. I also always restart the docker image before logging back in for the configuration to populate.

Below is my file structure in synology NAS where home assistant is setup.

And also attached is a screenshot of my config file.