Hi,
I am a newby/noob with Home Assistant, I started to play with it about 3 weeks ago. I installed it on a HP 601 thin client. And I am happy with it. Very surprised with its possibilities and ease of use. Had a lot of integrations and even some custom integrations as SolarEdge Modbus working fine. Played a bit with the dashboards, also fine.
So I decided to use this as my platform and started to try to make t as stable and futureproof as possible. It installed several ‘to do’ plugins and Samba Backup for automatic backups to my Fritzbox Nas etc.
I also wanted to install MariaDb and Fluxdb or a more reliable database and there problem happens…
I didn’t get MariaDb connecting to Recorder and I hope to get help from you.
What I did:
-
I installed MariaDb. → Ok
-
Changed MariaDb config:
databases: -
homeassistant
logins: -
password: PASSWORD: more than 8 character, more than 1 upperace, lowercase, figures and symbols
username: homeassistant
rights: -
database: homeassistant
username: homeassistant -
Changed config,yaml:
Loads default set of integrations. Do not remove.
default_config:
Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
#Change SQlite to MariaDB
recorder:
db_url: mysql://homeassistant:PASSWORD@core-mariadb/homeassistant?charset=utf8mb4 (didn’t use Secret yet)
indent before db_url is 2 spaces
Started MaraDB
Restarted Homeassistant (Option Restart System)
Results:
- MariaDB is running
- Recorder doesn’t connect
Logs:
Logger: homeassistant.setup
Source: setup.py:205
First occurred: 22:01:59 (4 occurrences)
Last logged: 22:02:08
• Setup failed for logbook: (DependencyError(…), ‘Could not setup dependencies: recorder’)
• Setup failed for history: (DependencyError(…), ‘Could not setup dependencies: recorder’)
• Setup failed for energy: (DependencyError(…), ‘Could not setup dependencies: history, recorder’)
• Setup failed for default_config: (DependencyError(…), ‘Could not setup dependencies: energy, history, logbook’)
And it is telling me in the notifications that:
Invalid Configuration, the same problem
Pls give some guidance to make this work
Tnks
Ben