getumbrel / umbrel-apps

The official app repository of the Umbrel App Store. Submit apps and updates here. Learn how → https://github.com/getumbrel/umbrel-apps#readme
https://apps.umbrel.com
528 stars 398 forks source link

Home-Assistant won't load automations #29

Closed jardous closed 1 year ago

jardous commented 2 years ago

After today's upgrade to 0.5.0 my home-automation app does not seem to fully work

Automations won't load.

Newly created automations are not added to the empty list.

It seems there is an access right issue:

umbrel@umbrel:~/homeassistant $ ls -la 
total 387752
drwxr-xr-x 10 umbrel umbrel      4096 Jun 11 21:07 .
drwxr-xr-x  8 umbrel umbrel      4096 Jun 11 20:50 ..
-rw-r--r--  1 root   root        4615 Jun 11 21:07 automations.yaml
-rw-r--r--  1 umbrel umbrel      4333 Jun 11 20:57 automations.yaml.orig
drwxr-xr-x  2 root   root        4096 Jun 11 20:51 backups
drwxr-xr-x  4 umbrel umbrel      4096 Aug 22  2021 blueprints
drwxr-xr-x  2 umbrel umbrel      4096 Dec  3  2021 .cloud
-rw-r--r--  1 umbrel umbrel       968 Jan 17 20:24 configuration.yaml
drwxr-xr-x  3 umbrel umbrel      4096 Sep  5  2021 custom_components
drwxr-xr-x  2 umbrel umbrel      4096 Aug 22  2021 deps
-rw-r--r--  1 umbrel umbrel         0 Aug 22  2021 groups.yaml
-rw-r--r--  1 umbrel umbrel         8 Jun 11 20:32 .HA_VERSION
-rw-r--r--  1 root   root       14548 Jun 11 21:02 home-assistant.log
-rw-r--r--  1 umbrel umbrel     18232 Jun 11 21:02 home-assistant.log.1
-rw-r--r--  1 root   root           0 Jun 11 21:02 home-assistant.log.fault
-rw-r--r--  1 umbrel umbrel 392753152 Jun 11 21:02 home-assistant_v2.db
-rw-r--r--  1 umbrel umbrel     32768 Jun 11 21:07 home-assistant_v2.db-shm
-rw-r--r--  1 umbrel umbrel   3675072 Jun 11 21:07 home-assistant_v2.db-wal
-rw-r--r--  1 umbrel umbrel        68 Aug 22  2021 known_devices.yaml
-rw-r--r--  1 umbrel umbrel         3 Aug 22  2021 scenes.yaml
-rw-r--r--  1 umbrel umbrel         0 Aug 22  2021 scripts.yaml
-rw-r--r--  1 umbrel umbrel       161 Aug 22  2021 secrets.yaml
drwxr-xr-x  2 umbrel umbrel      4096 Jun 11 21:06 .storage
drwxr-xr-x  2 umbrel umbrel      4096 Aug 22  2021 tts
drwxr-xr-x  2 umbrel umbrel      4096 Aug 22  2021 www
-rw-r--r--  1 umbrel umbrel    475136 Jun 11 21:03 zigbee.db

automations.yaml is overwritten by root. This might be the issue why it won't load

ShonP40 commented 2 years ago

Do you have automation: !include automations.yaml in your configuration.yaml?

jardous commented 2 years ago

@ShonP40 yes, of course. I am reporting it, because it stopped working after recent upgrade. It was working great for months.

ShonP40 commented 2 years ago

Well, I just installed Umbrel and seems like 0.5 uses the root user by default now

jardous commented 2 years ago

ouch! I wouldn't expect that from SW that I trust with my money... ;)

kroese commented 2 years ago

I think the issue is that on Umbrel it reads configuration.yaml not from the data folder but from the app folder (one level higher).

So the yaml file in the directory you listed will be ignored, see #46 .

jardous commented 2 years ago

@kroese in that case I'd not be able to see entries in my Overview page, right? But I do.

The issue is only with the automations. If I create a new automation, it adds it to the correct automations.yaml, but it does not list it in the UI.

kroese commented 2 years ago

@jardous Im pretty sure HA is totally ignoring your configuration file. Just put some invalid lines in it, and it will not result in an error during startup, because it does not even read that file.

jardous commented 2 years ago

double-checked the paths. Adding invalid lines does not result in an error during Configuration validation.

Weird is, that when I add new automation in UI, I see it appended in the automations.yaml, but it does not show in the UI list...

davidecorradini commented 1 year ago

@jardous I'm facing the same problem right now. Did you manage to solve it?

jardous commented 1 year ago

yes, @davidecorradini. There were unsupported entries in the configuration.yaml

davidecorradini commented 1 year ago

@jardous my configuration file does not have any other entry... I think it is being ignored by HA at all (if I put wrong stuff in it, HA does not complain...)

jardous commented 1 year ago

I stopped running HA as an Umbrel app and running it directly as a docker container...

davidecorradini commented 1 year ago

Yeah, it seems to be the best thing to do. Thanks!