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:
-
The zones that I see on the map are the home zone and the newscafe zone, the work zone does not appear
-
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]
-
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.