Package Details: home-assistant 0.84.2-1

Git Clone URL: https://aur.archlinux.org/home-assistant.git (read-only)
Package Base: home-assistant
Description: Open-source home automation platform running on Python 3
Upstream URL: https://home-assistant.io/
Keywords: automation home python
Licenses: Apache
Replaces: python-home-assistant
Submitter: kamaradclimber
Maintainer: etskinner
Last Packager: etskinner
Votes: 33
Popularity: 1.867994
First Submitted: 2016-10-09 12:17
Last Updated: 2018-12-14 16:11

Latest Comments

1 2 3 4 5 6 ... Next › Last »

etskinner commented on 2018-11-29 04:13

@NicoHood: Apologies for the delay. I've implemented your suggestion about tmpfile, but I agree that the move to /etc may not work well given that it would be constantly writing there. For anyone that wants to store configs there, it may be better just to set up some symlinks.

NicoHood commented on 2018-11-24 09:39

@etskinner

For better security: Please change the tmpfile to:

d /var/lib/hass 0750 hass hass -

NicoHood commented on 2018-11-20 16:53

I made all changes, you can find the diff here: https://gist.github.com/NicoHood/fb1a14cc2ee844b130252a5a7f7b2af0

Homeassistant does dot carefully separate config files (yaml) from other data, as the /etc directory gets trashed as well. To me it seems just everything is placed into /etc/hass nothing in /var/lib/hass. It might be useless to do that change.

But I recommend changing the directories permission to 750, so not everyone can read the secrets.yaml and other stuff!

etskinner commented on 2018-11-15 22:56

Where did you see the error saying that it failed to import dicttoxml? Wherever you saw that message is the log I'm asking for. One of these should be appropriate depending on where you saw it:

  • /var/lib/hass/home-assistant.log
  • output of "# journalctl -u home-assistant"
  • output of makepkg or your AUR helper

tschiex commented on 2018-11-13 22:00

@etskinner I just had to install it or home assistant would not even start. I had a clear failing 'import dicttoxml' so I installed the package. It started. No log...

etskinner commented on 2018-11-13 03:06

@tschiex: From my understanding, any dependencies that aren't in hass's setup.py[1] (with very few exceptions) are downloaded at run-time and live in /var/lib/hass/deps, and shouldn't need to be added here. It's possible that it really is needed, but the error you described doesn't show up on my setup, so I'm guessing it's config-specific. Can anyone else replicate?

You should be able to just install python-dicttoxml[2] separately and be okay. If you're not happy with that, post your config files and log so that we can inspect. It should be clear which component is using it, and from there we can decide whether it's crucial enough to add.

[1] https://github.com/home-assistant/home-assistant/blob/0.81.6/setup.py

[2] https://aur.archlinux.org/packages/python-dicttoxml/

tschiex commented on 2018-11-12 09:02

Dear etskinner and Nico,

I just installed the AUR package on my Odroid XU4 and noticed that a python dependency was missing. From memory, it's python-dicttoxml (or xmltodict if this exists).

In all cases, thanks for the packaging! I'll be waiting for the 0.82 that should contain a new "Météo-France" sensor I will immediately set up.

Thomas

etskinner commented on 2018-11-11 22:14

I hadn't thought about it until you mentioned, but yes, hass will need to be able to make changes to those files (assuming people want to change config from the web interface). From what I've read, it should be acceptable to make /etc/hass owned by hass:hass anyway. But I don't see any directories in /etc/ owned by anyone but root on my system, so maybe someone could correct me on that.

Good points about scripting the config move, I can see how that could be dangerous. I'm on board with doing a reminder to manually move them instead.

NicoHood commented on 2018-11-11 21:59

Okay I will try to prepare something. /etc/hass was also my first though, maybe that is better. We have to make sure it is owned by the hass user though.

About the upgrade process I would add a notice to the .install file and some simple manual instructions. You cannot cover every usecase so I would not put something automated in there. That is how arch works, you always should check the upgrade log. And if the user does not, he will very likely check the aur and find out he forgot to read about the config move and then fix it. hass breaks often enough after a version update, so what...

etskinner commented on 2018-11-11 21:23

Waiting to update until python-ruamel-yaml updates to 0.15.72, which is a requirement for 0.82.0.