Invalid Config

Hi,

New user, managed to connect my tasmota flashed mqtt devices, as well as enable owntracks after some long struggles. I am not sure why i am getting invalid config for some items(e.g. config, history, logbook, recorder) (see image at the bottom)

my config is as follows:

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: secret
  longitude: secret
  #radius: 50
  temperature_unit: C
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 0
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Africa/Johannesburg
  # Customization file
  customize: !include customize.yaml

zone:
  name: Work
  latitude: secret
  longitude: secret
  radius: 50
  icon: mdi:worker
  
  name: Newscafe
  latitude: secret
  longitude:secret
  radius: 50
  icon: mdi:beer

mqtt:
  broker: secret
  port: secret
  client_id: secret
  keepalive: 60
  username: secret
  password: secret
  protocol: 3.1
  birth_message:
    topic: "tele/hass1/LWT"
    payload: "Online"
    qos: 1
    retain: true
  will_message:
    topic: "tele/hass1/LWT"
    payload: "Offline"
    qos: 1
    retain: true
device_tracker:
  - platform: owntracks   

# Show links to resources in log and frontend
introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config: true

http:
  # Secrets are defined in the file secrets.yaml
  # api_password: !secret http_password
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  # base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Enables a map showing the location of tracked devices
map:

# Track the sun
sun:

# Weather prediction
sensor:
  - platform: yr

# Text to speech
tts:
  - platform: google

# Cloud
cloud:

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
switch:
  - platform: mqtt
    name: "sonofagarage"
    state_topic: "stat/sonofagarage/RESULT"
    value_template: '{{ value_json["POWER"] }}'
    command_topic: "cmnd/sonofagarage/POWER"
    #availability_topic: "stat/sonofagarage/RESULT"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"
    retain: true
#switch:
  - platform: mqtt
    name: "Testchip"
    state_topic: "stat/Testchip/RESULT"
    value_template: '{{ value_json["POWER"] }}'
    command_topic: "cmnd/Testchip/POWER"
    #availability_topic: "stat/sonofagarage/RESULT"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"
    retain: true

Assistance would be appreciated

regards
CN

Remove ‘true’ from config, should just be

config:

thanks, that works for config, the remaining ones are, history, recorder, and logbook

Unless I’m missing something, you don’t have recorder set up, and the other two won’t work without it.

Add

recorder:
  purge_interval: 3
  purge_keep_days: 10

(adjust the numbers as you see fit)

I tried that to no avail, still giving the invalid, there is also this:

INFO:homeassistant.util.package:Attempting install of colorlog==3.1.2 ERROR:homeassistant.util.package:Unable to install package colorlog==3.1.2: Exception: Traceback (most recent call last): File "/srv/homeassistant/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/srv/homeassistant/lib/python3.5/site-packages/pip/commands/install.py", line 360, in run prefix=options.prefix_path, File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_set.py", line 784, in install **kwargs File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_install.py", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files isolated=self.isolated, File "/srv/homeassistant/lib/python3.5/site-packages/pip/wheel.py", line 345, in move_wheel_files clobber(source, lib_dir, True) File "/srv/homeassistant/lib/python3.5/site-packages/pip/wheel.py", line 316, in clobber ensure_dir(destdir) File "/srv/homeassistant/lib/python3.5/site-packages/pip/utils/__init__.py", line 83, in ensure_dir os.makedirs(path) File "/usr/lib/python3.5/os.py", line 241, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/srv/homeassistant/lib/python3.5/site-packages/colorlog-3.1.2.dist-info' Aborting script, could not install dependency colorlog==3.1.2
3:25 PM components/__init__.py (ERROR)
INFO:homeassistant.util.package:Attempting install of colorlog==3.1.2 ERROR:homeassistant.util.package:Unable to install package colorlog==3.1.2: Exception: Traceback (most recent call last): File "/srv/homeassistant/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/srv/homeassistant/lib/python3.5/site-packages/pip/commands/install.py", line 360, in run prefix=options.prefix_path, File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_set.py", line 784, in install **kwargs File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_install.py", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files isolated=self.isolated, File "/srv/homeassistant/lib/python3.5/site-packages/pip/wheel.py", line 345, in move_wheel_files clobber(source, lib_dir, True) File "/srv/homeassistant/lib/python3.5/site-packages/pip/wheel.py", line 316, in clobber ensure_dir(destdir) File "/srv/homeassistant/lib/python3.5/site-packages/pip/utils/__init__.py", line 83, in ensure_dir os.makedirs(path) File "/usr/lib/python3.5/os.py", line 241, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/srv/homeassistant/lib/python3.5/site-packages/colorlog-3.1.2.dist-info' Aborting script, could not install dependency colorlog==3.1.2
3:22 PM components/__init__.py (ERROR)
Error fetching description at http://10.0.0.14:8080/api/discovery.xml
3:19 PM ssdp.py (WARNING)
Setup failed for logbook: Could not setup all dependencies.
3:18 PM setup.py (ERROR)
Unable to setup dependencies of logbook. Setup failed for dependencies: recorder
3:18 PM setup.py (ERROR)
Setup failed for history: Could not setup all dependencies.
3:18 PM setup.py (ERROR)
Unable to setup dependencies of history. Setup failed for dependencies: recorder
3:18 PM setup.py (ERROR)
Setup failed for recorder: Component failed to initialize.
3:18 PM setup.py (ERROR)
Error during connection setup: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds)
3:18 PM components/recorder/__init__.py (ERROR)

Maybe its relevant!!

1 Like

You’ve posted this in the hassio sub-forum, but did you do a manual install per chance?

There are so many errors, when I fix one thing another pops up, at this stage any advise will do, I want to do an install from scratch now, I run Raspberry Pi Zero Stretch, but I’m willing to re-flash it with the relevant OS if it will mean that things run smoothly, after trying to fix the config errors, the mqtt devices stopped working, I’ve spent so much time trouble shooting, please advise on a better hassle free install. I think my install might have been manual, as there were many steps taken.

This being on a pi, can I presume that you have a user called ‘pi’, and a user called ‘homeassistant’ that runs the software?

If so, from your pi user run the following 2 commands and then reboot…

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

sudo chown -R homeassistant:homeassistant /home/homeassistant/

As for a ‘hassle free install’, all installation methods will require you to configure your homeassistant instance, which is where you’re having problems. Installation method won’t affect this, if your having configuration issues, post your yaml and errors and we can help you work through them. Honestly, it’ll suddenly click and you’ll be an expert in no time.

After running the two “sudo chowns” and rebooting pi I get the following:

The errors I get are as follows:

Timer got out of sync. Resetting
4:28 PM core.py (ERROR)
Error fetching description at http://10.0.0.14:8080/api/discovery.xml
4:28 PM ssdp.py (WARNING)
Setup failed for logbook: Could not setup all dependencies.
4:27 PM setup.py (ERROR)
Unable to setup dependencies of logbook. Setup failed for dependencies: recorder
4:27 PM setup.py (ERROR)
Setup failed for history: Could not setup all dependencies.
4:27 PM setup.py (ERROR)
Unable to setup dependencies of history. Setup failed for dependencies: recorder
4:27 PM setup.py (ERROR)
Setup failed for recorder: Component failed to initialize.
4:27 PM setup.py (ERROR)
Error during connection setup: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds)
4:27 PM components/recorder/__init__.py (ERROR)
Error during connection setup: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds)
4:27 PM components/recorder/__init__.py (ERROR)
Error during connection setup: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds)
4:27 PM components/recorder/__init__.py (ERROR)
Error during connection setup: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds)
4:27 PM components/recorder/__init__.py (ERROR)
Error during connection setup: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds)
4:27 PM components/recorder/__init__.py (ERROR)
Error during connection setup: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds)
4:27 PM components/recorder/__init__.py (ERROR)
Error during connection setup: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds)
4:27 PM components/recorder/__init__.py (ERROR)
Setup of frontend is taking over 10 seconds.
4:27 PM bootstrap.py (WARNING)
Error during connection setup: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds)
4:27 PM components/recorder/__init__.py (ERROR)
Setup of recorder is taking over 10 seconds.
4:27 PM bootstrap.py (WARNING)
Error during connection setup: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds)
4:27 PM components/recorder/__init__.py (ERROR)
Error during connection setup: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds)
4:27 PM components/recorder/__init__.py (ERROR)

my config yaml is as follows:

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: my home location
  longitude: my home location
  #radius: 50
  temperature_unit: C
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 0
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Africa/Johannesburg
  # Customization file
  customize: !include customize.yaml

zone:
  name: Work
  latitude: my work location
  longitude: my work location
  radius: 50
  icon: mdi:worker
zone:  
  name: Newscafe
  latitude: my drinking location
  longitude: my drinking location
  radius: 50
  icon: mdi:beer

mqtt:
  broker: my private mqtt  broker
  port: my port in the pvt mqtt broker
  client_id: Homza
  keepalive: 60
  username: my HA user name in the pvt MQTT
  password: my HA pwd in the pvt MQTT
  protocol: 3.1
  birth_message:
    topic: "tele/hass1/LWT"
    payload: "Online"
    qos: 1
    retain: true
  will_message:
    topic: "tele/hass1/LWT"
    payload: "Offline"
    qos: 1
    retain: true
device_tracker:
  - platform: owntracks   

# Show links to resources in log and frontend
introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  # Secrets are defined in the file secrets.yaml
  # api_password: !secret http_password
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  # base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables a map showing the location of tracked devices
map:

# Track the sun
sun:

# Weather prediction
sensor:
  - platform: yr

# Text to speech
tts:
  - platform: google

# Cloud
cloud:

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
switch:
  - platform: mqtt
    name: "sonofagarage"
    state_topic: "stat/sonofagarage/RESULT"
    value_template: '{{ value_json["POWER"] }}'
    command_topic: "cmnd/sonofagarage/POWER"
    #availability_topic: "stat/sonofagarage/RESULT"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"
    retain: true
#switch:
  - platform: mqtt
    name: "Testchip"
    state_topic: "stat/Testchip/RESULT"
    value_template: '{{ value_json["POWER"] }}'
    command_topic: "cmnd/Testchip/POWER"
    #availability_topic: "stat/sonofagarage/RESULT"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"
    retain: true
#THE STUFF THAT RESULT IN AN INVALID CONFIG
recorder:
  purge_interval: 3
  purge_keep_days: 10
  # Enables support for tracking state changes over time
history:
# View all events in a logbook
logbook:

My worries are:

  1. The zones that I see on the map are the home zone and the newscafe zone, the work zone does not appear

  2. My MQTT artefacts are not consistent, meaning that they work some time and they do not work sometime, their default availability also seem to be unavailable, but even if i make them available they do not work now [update -now working again after the chowns]

  3. The config is invalid for the items discussed, history, logbook and recorder, previously this was the case also for mqtt and owntracks but at some point that sorted itself out, not sure how but upon one of the many restarts, it was there

I really wanna crack this so that I can automate my entire house, the house currently runs stock sonoff (esp3286) which relies on manufacturer servers and not open to customization, I want to flash all of them with fasmota, which works perfectly on pvt mqtt and on other apps.

Config check results in:

INFO:homeassistant.util.package:Attempting install of colorlog==3.1.2
ERROR:homeassistant.util.package:Unable to install package colorlog==3.1.2: Exception:
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/commands/install.py", line 360, in run
    prefix=options.prefix_path,
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/wheel.py", line 345, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/wheel.py", line 316, in clobber
    ensure_dir(destdir)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
    os.makedirs(path)
  File "/usr/lib/python3.5/os.py", line 241, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/srv/homeassistant/lib/python3.5/site-packages/colorlog-3.1.2.dist-info'
Aborting script, could not install dependency colorlog==3.1.2

I hope this is not too much information but I really wanted to give an account of what I am facing as you requested.

Because you can’t have 2 zone: definitions. You just need one zone with an array of ‘names’ below it.

You said you ran chown, but obviously the user the service is running as doesn’t have access to that location. You need to make sure it’s owned by the correct UID/account

1 Like

Thanks Mr flamingm0e

I was trying to troubleshoot as it was not giving me the results even with one zone. my initial code had the second zone commented out like so:

zone:
  name: Work
  latitude: my work location
  longitude: my work location
  radius: 50
  icon: mdi:worker
#zone:  
  name: Newscafe
  latitude: my drinking location
  longitude: my drinking location
  radius: 50
  icon: mdi:beer:

Please assist with the ownership, how do I assign this ownership to the correct account.

Even this still yields two zones, the work zone is omitted, after reboot.:

zone:
  name: Work
  latitude: my work location
  longitude: my work location
  radius: 50
  icon: mdi:worker
  name: Newscafe
  latitude: my drinking location
  longitude: my drinking location
  radius: 50
  icon: mdi:beer:

Since you haven’t said who you chowned it as or who the service runs as, it’s impossible to state.

Because you need an array.

In yaml, you need to add a - in front of “name”

I chowned the following from the root of pi:

Homeassistant has its directory, the configuration file is located in home/homeassistant/.homeassistant

But what we need to know is, is the service running as user ‘homeassistant’?

great news, the zones are now all appearing.

I think it is running as home assistant, but as a noob, I might be wrong, how can I check how the service is running? when I do this from pi root (using SSH):

source /srv/homeassistant/bin/activate
hass

image

image

the service runs on SSH, not sure if it answers the question of user, for loging to pi from SSH, I use IP:22 and login as “pi” and “password”

I don’t know how you installed, but it appears your venv is definitely running as user homeassistant, but it clearly states in your error message that it doesn’t have permission to the /srv/homeassistant directory.

chown -R homeassistant:homeassistant /srv/homeassistant

Then try again

‘’’
PermissionError: [Errno 13] Permission denied: ‘/srv/homeassistant/lib/python3.5/site-packages/colorlog-3.1.2.dist-info’
Aborting script, could not install dependency colorlog==3.1.2


The error was persistent even with chown, so i went into the directory that it indicates it has no access to, the file "colorlog-3.1.2.dist-info" does not seem to exist in that directory as shown in the list of files.

pi@raspberrypi:/srv/homeassistant/lib/python3.5/site-packages $ ls -l
total 848
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:15 aiohttp
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 aiohttp-3.0.6.dist-info
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:20 aiohttp_cors
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:20 aiohttp_cors-0.6.0.dist-info
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 astral-1.5.dist-info
-rw-r–r-- 1 homeassistant homeassistant 92200 Mar 11 07:10 astral.py
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:15 async_timeout
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 async_timeout-2.0.0.dist-info
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:15 attr
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 attrs-17.4.0.dist-info
drwxr-xr-x 10 homeassistant homeassistant 4096 Mar 11 07:28 boto3
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:28 boto3-1.6.6.dist-info
drwxr-xr-x 6 homeassistant homeassistant 4096 Mar 11 07:28 botocore
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:28 botocore-1.9.6.dist-info
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:28 cdu
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:15 certifi
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 certifi-2018.1.18.dist-info
drwxr-xr-x 4 homeassistant homeassistant 4096 Mar 11 07:15 chardet
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 chardet-3.0.4.dist-info
drwxr-xr-x 13 homeassistant homeassistant 4096 Mar 11 07:27 Crypto
drwxr-xr-x 5 homeassistant homeassistant 4096 Mar 11 07:27 dateutil
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:24 distro-1.2.0.dist-info
-rw-r–r-- 1 homeassistant homeassistant 39461 Mar 11 07:24 distro.py
drwxr-xr-x 9 homeassistant homeassistant 4096 Mar 11 07:27 docutils
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:27 docutils-0.14.dist-info
-rw-r–r-- 1 homeassistant homeassistant 126 Mar 11 07:32 easy_install.py
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:27 ecdsa
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:27 ecdsa-0.13.dist-info
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:23 enum_compat-0.0.2.dist-info
drwxr-xr-x 4 homeassistant homeassistant 4096 Mar 11 07:27 envs
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:27 envs-1.2.4.dist-info
drwxr-xr-x 10 homeassistant homeassistant 4096 Mar 11 07:27 future
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:27 future-0.16.0.dist-info
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:32 google
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:30 gtts_token
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:30 gTTS_token-1.1.1.dist-info
drwxr-xr-x 8 homeassistant homeassistant 4096 Mar 11 07:21 hass_frontend
drwxr-xr-x 4 homeassistant homeassistant 4096 Mar 11 07:21 hass_frontend_es5
drwxr-xr-x 8 homeassistant homeassistant 4096 Mar 11 07:16 homeassistant
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:16 homeassistant-0.65.2.dist-info
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:21 home_assistant_frontend-20180310.0.dist-info
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:15 idna
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 idna-2.6.dist-info
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 idna_ssl-1.0.1.dist-info
-rw-r–r-- 1 homeassistant homeassistant 666 Mar 11 07:11 idna_ssl.py
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:15 jinja2
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 Jinja2-2.10.dist-info
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:27 jmespath
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:27 jmespath-0.9.3.dist-info
drwxr-xr-x 4 homeassistant homeassistant 4096 Mar 11 07:27 jose
drwxr-xr-x 4 homeassistant homeassistant 4096 Mar 11 07:27 libfuturize
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 30 11:27 libnacl
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 30 11:27 libnacl-1.6.1.dist-info
drwxr-xr-x 4 homeassistant homeassistant 4096 Mar 11 07:27 libpasteurize
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:15 markupsafe
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 MarkupSafe-1.0.dist-info
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:15 multidict
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 multidict-4.1.0.dist-info
drwxr-xr-x 9 homeassistant homeassistant 4096 Mar 11 07:29 mutagen
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:29 mutagen-1.40.0.dist-info
drwxr-xr-x 4 homeassistant homeassistant 4096 Mar 11 07:23 netdisco
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:23 netdisco-1.2.4.dist-info
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:23 netifaces-0.10.6.dist-info
-rwxr-xr-x 1 homeassistant homeassistant 67028 Mar 11 07:23 netifaces.cpython-35m-arm-linux-gnueabihf.so
drwxr-xr-x 4 homeassistant homeassistant 4096 Mar 30 11:26 paho
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 30 11:26 paho_mqtt-1.3.1.dist-info
drwxr-xr-x 8 homeassistant homeassistant 4096 Mar 11 07:27 past
drwxr-xr-x 11 homeassistant homeassistant 4096 Mar 11 07:04 pip
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:04 pip-9.0.1.dist-info
drwxr-xr-x 5 homeassistant homeassistant 4096 Mar 11 07:32 pkg_resources
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:04 pkg_resources-0.0.0.dist-info
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:32 protobuf-3.5.2.dist-info
-rw-r–r-- 1 homeassistant homeassistant 305 Mar 11 07:31 protobuf-3.5.2-nspkg.pth
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:37 pycache
drwxr-xr-x 4 homeassistant homeassistant 4096 Mar 11 07:32 pychromecast
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:32 PyChromecast-2.0.0.dist-info
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:27 pycryptodome-3.3.1.dist-info
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:27 python_dateutil-2.6.1.dist-info
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:27 python_jose_cryptodome-1.3.2.dist-info
drwxr-xr-x 4 homeassistant homeassistant 4096 Mar 11 07:15 pytz
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 pytz-2018.3.dist-info
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 PyYAML-3.12.dist-info
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:15 requests
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 requests-2.18.4.dist-info
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:28 s3transfer
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:28 s3transfer-0.1.13.dist-info
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:36 samsungctl
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:36 samsungctl-0.7.1.dist-info
drwxr-xr-x 5 homeassistant homeassistant 4096 Mar 11 07:32 setuptools
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:32 setuptools-38.5.2.dist-info
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:23 six-1.11.0.dist-info
-rw-r–r-- 1 homeassistant homeassistant 30888 Mar 11 07:23 six.py
drwxr-xr-x 13 homeassistant homeassistant 4096 Mar 11 07:19 sqlalchemy
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:19 SQLAlchemy-1.2.2.dist-info
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 typing-3.6.4.dist-info
-rw-r–r-- 1 homeassistant homeassistant 79842 Mar 11 07:10 typing.py
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:21 ua_parser
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:21 ua_parser-0.7.3.dist-info
drwxr-xr-x 6 homeassistant homeassistant 4096 Mar 11 07:15 urllib3
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 urllib3-1.22.dist-info
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:21 user_agents
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:21 user_agents-1.1.0.dist-info
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:15 voluptuous
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 voluptuous-0.11.1.dist-info
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:37 wakeonlan-1.0.0.dist-info
-rw-r–r-- 1 homeassistant homeassistant 3143 Mar 11 07:37 wakeonlan.py
drwxr-xr-x 5 homeassistant homeassistant 4096 Mar 11 07:28 warrant
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:28 warrant-0.6.1.dist-info
drwxr-xr-x 4 homeassistant homeassistant 4096 Mar 11 07:36 websocket
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:36 websocket_client-0.47.0.dist-info
drwxr-xr-x 5 homeassistant homeassistant 4096 Mar 11 07:08 wheel
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:08 wheel-0.30.0.dist-info
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:24 xmltodict-0.11.0.dist-info
-rw-r–r-- 1 homeassistant homeassistant 17356 Mar 11 07:24 xmltodict.py
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:15 yaml
drwxr-xr-x 3 homeassistant homeassistant 4096 Mar 11 07:15 yarl
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:15 yarl-1.1.1.dist-info
drwxr-xr-x 2 homeassistant homeassistant 4096 Mar 11 07:32 zeroconf-0.20.0.dist-info
-rw-r–r-- 1 homeassistant homeassistant 69475 Mar 11 07:31 zeroconf.py


So, i still don't have history, recorder, and logbook, the mqtt items (owntracks and ESP3286 sensors) are working fine.

![image|281x500](upload://9oksMqQ2oOTTJzZ9kz4T4feOsMz.png)

Sorry, I made an error with the codes above in my reply above

ignore this issue, as it is caused by not being able to install dependencies. your error is a permissions issue on /srv/homeassistant

If you look closely, you will see that none of the *.py files are eXecutable, which seems weird to me.