Components and platforms could not be set up

After a long way I was able to set-up Home Assistant on my Raspberry Pi with Raspbian lite Stretch. Therefore, I used the python virtual environment. It now starts up with no issued as far as I can see when using command and I can access it via the webinterface:

sudo systemctl status home-assistant@pi -l
[email protected] - Home Assistant
   Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-10-29 22:30:22 CET; 15min ago
 Main PID: 601 (hass)
    Tasks: 30 (limit: 4915)
   CGroup: /system.slice/system-home\x2dassistant.slice/[email protected]
           └─601 /srv/homeassistant/bin/python /srv/homeassistant/bin/hass -c /home/pi/.homeassistant

Oct 29 22:31:25 raspberrypi hass[601]: 2019-10-29 22:31:25 INFO (SyncWorker_17) [homeassistant.loader] Loaded deconz from homeassistant.components.deconz
Oct 29 22:31:25 raspberrypi hass[601]: 2019-10-29 22:31:25 INFO (SyncWorker_18) [homeassistant.loader] Loaded notion from homeassistant.components.notion
Oct 29 22:31:25 raspberrypi hass[601]: 2019-10-29 22:31:25 INFO (SyncWorker_12) [homeassistant.loader] Loaded geonetnz_quakes from homeassistant.components.geonetnz_quakes
Oct 29 22:31:25 raspberrypi hass[601]: 2019-10-29 22:31:25 INFO (SyncWorker_7) [homeassistant.loader] Loaded toon from homeassistant.components.toon
Oct 29 22:31:25 raspberrypi hass[601]: 2019-10-29 22:31:25 INFO (SyncWorker_3) [homeassistant.loader] Loaded heos from homeassistant.components.heos
Oct 29 22:31:25 raspberrypi hass[601]: 2019-10-29 22:31:25 INFO (SyncWorker_13) [homeassistant.loader] Loaded lifx from homeassistant.components.lifx
Oct 29 22:31:25 raspberrypi hass[601]: 2019-10-29 22:31:25 INFO (SyncWorker_15) [homeassistant.loader] Loaded unifi from homeassistant.components.unifi
Oct 29 22:31:25 raspberrypi hass[601]: 2019-10-29 22:31:25 INFO (SyncWorker_2) [homeassistant.loader] Loaded twentemilieu from homeassistant.components.twentemilieu
Oct 29 22:31:26 raspberrypi hass[601]: 2019-10-29 22:31:26 INFO (SyncWorker_16) [homeassistant.loader] Loaded zha from homeassistant.components.zha
Oct 29 22:31:26 raspberrypi hass[601]: 2019-10-29 22:31:26 INFO (SyncWorker_4) [homeassistant.loader] Loaded hue from homeassistant.components.hue

Next, I started to set-up Zehnder and Tahoma and therefor I changed my configuration.yaml as follows:

# 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

# Text to speech
tts:
  - platform: google_translate

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

comfoconnect:
  host: 192.168.2.30

tahoma:
  username: [email protected]
  password: helloworld

However, they do not show up in the webinterface at “Configuration/Devices”.
Further, the “Notification” reports

Invalid config

The following components and platforms could not be set up:

Please check your config.

Any ideas what missed?
Thanks in advance for any help. I am lost at the moment.

Jan

Look in the log for the error message

Hi Marc,

thanks for the quick response.
I guess it is a permission problem which I guess I solved it. However, the log says:

2019-10-29 22:30:55 ERROR (SyncWorker_0) [homeassistant.util.package] Unable to install package pycomfoconnect==0.3: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/srv/homeassistant/lib/pyth$

Consider using the --user option or check the permissions.

2019-10-29 22:30:55 ERROR (MainThread) [homeassistant.setup] Setup failed for comfoconnect: Requirements for comfoconnect not found: [‘pycomfoconnect==0.3’].

2019-10-29 22:31:03 ERROR (SyncWorker_6) [homeassistant.util.package] Unable to install package tahoma-api==0.0.14: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/srv/homeassistant/lib/pytho$

Consider using the --user option or check the permissions.

2019-10-29 22:31:03 ERROR (MainThread) [homeassistant.setup] Setup failed for tahoma: Requirements for tahoma not found: [‘tahoma-api==0.0.14’].

Any idea how to fix this?

regards,
Jan

There’s an awful lot of variables here, but if we presume that you have a ‘pi’ user on your device, and a ‘homeassistant’ user on your device that you use for the unprivileged running of homeassistant in the venv, then stopping homeassistant and running this…

sudo chown -R homeassistant:homeassistant /srv/homeassistant/

… from the pi user and then starting homeassistant again should do it. If not then we’ll need to know exactly what you’re install method was.

Hello Marc,

I fixed it. I totally go confused w.r.t “YOUR_USER” which has to be set when you are setting up the autostart using systemd according this guide.

I used always “pi” which is my user on the Raspberry instead of “homeassistant” which is the user for which home-assistant is setup.

No all the warnings disappeared.

Thanks again
Jan

1 Like