I try to install AppDaemon on HASSbian on a RPi3B, with logged in user pi.
And i used these steps:
- pi@hassbian:~ $ sudo apt-get update && sudo apt-get upgrade
- pi@hassbian:~ $ sudo pip3 install appdaemon
Which ended with this warning:
Found existing installation: idna 2.2
Not uninstalling idna at /usr/lib/python3/dist-packages, outside environment /usr
Successfully installed appdaemon-3.0.1 idna-2.7
I did not think this should be an issue, so i continued. - Created the appdaemon.yaml file in /home/homeassistant/.homeassistant/conf dir with the following content:
appdaemon:
threads: 10
plugins:
HASS:
type: hass
ha_url: 192.168.178.56:8123
ha_key: <##geheim pw##>
I made user homeassistant owner of all files:
$ ls -al /home/homeassistant/.homeassistant
total 65104
drwxr-xr-x 7 homeassistant homeassistant 4096 Jul 23 15:34 .
drwxr-xr-x 6 homeassistant homeassistant 4096 Jul 23 14:44 …
-rw-r–r-- 1 homeassistant homeassistant 584 Jul 23 11:26 automations.yaml
drwxr-xr-x 2 homeassistant homeassistant 4096 Jul 18 12:39 .cloud
drwxr-xr-x 4 homeassistant homeassistant 4096 Jul 23 15:23 conf
-rw-r–r-- 1 homeassistant homeassistant 2587 Jul 21 19:13 configuration.yaml
-rwxr-xr-x 1 homeassistant homeassistant 216705 Jul 18 13:21 configurator.py
-rw-r–r-- 1 homeassistant homeassistant 1913 Jul 21 11:58 customize.yaml
drwxr-xr-x 2 homeassistant homeassistant 4096 Jul 18 12:35 deps
-rw-r–r-- 1 homeassistant homeassistant 151 Jul 18 12:46 entity_registry.yaml
-rw-r–r-- 1 homeassistant homeassistant 1228 Jul 21 18:33 groups.yaml
-rw-r–r-- 1 homeassistant homeassistant 6 Jul 18 12:35 .HA_VERSION
-rw-r–r-- 1 homeassistant homeassistant 2261 Jul 23 15:06 home-assistant.log
-rw-r–r-- 1 homeassistant homeassistant 66351104 Jul 23 15:34 home-assistant_v2.db
-rw-r–r-- 1 homeassistant homeassistant 0 Jul 18 12:35 scripts.yaml
-rw-r–r-- 1 homeassistant homeassistant 146 Jul 23 14:51 secrets.yaml
-rw-r–r-- 1 homeassistant homeassistant 806 Jul 21 11:02 sensors.yaml
-rw-r–r-- 1 homeassistant homeassistant 673 Jul 19 09:29 settings.conf
-rw-r–r-- 1 homeassistant homeassistant 609 Jul 20 08:00 sonoff-light-b1.yaml
-rw-r–r-- 1 homeassistant homeassistant 1587 Jul 20 07:32 sonoff-lights.yaml
-rw-r–r-- 1 homeassistant homeassistant 1321 Jul 20 07:28 sonoff-switches.yaml
drwxr-xr-x 2 homeassistant homeassistant 4096 Jul 18 12:46 .storage
drwxr-xr-x 2 homeassistant homeassistant 4096 Jul 18 12:38 tts
-rw-r–r-- 1 homeassistant homeassistant 2269 Jul 23 11:23 ui-lovelace.yaml
-rw-r–r-- 1 homeassistant homeassistant 44 Jul 18 12:37 .uuid
-rw-r–r-- 1 homeassistant homeassistant 52 Jul 19 19:33 zones.yaml
Further, i log-in as user homeassistant when starting AppDaemon; this give the following error:
$ appdaemon -c /home/homeassistant/.homeassistant/conf
2018-07-23 15:30:28.497116 INFO AppDaemon Version 3.0.1 starting
2018-07-23 15:30:28.497805 INFO Configuration read from: /home/homeassistant/.homeassistant/conf/appdaemon.yaml
2018-07-23 15:30:28.503396 INFO AppDaemon: Starting Apps
2018-07-23 15:30:28.505224 WARNING config_dir: /home exists, but is not writeable, owner: root
2018-07-23 15:30:28.513373 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-07-23 15:30:28.559107 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-07-23 15:30:28.560254 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-07-23 15:30:28.561201 INFO Dashboards are disabled
2018-07-23 15:30:28.561584 INFO API is disabled
2018-07-23 15:30:28.563608 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-07-23 15:30:33.568383 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-07-23 15:30:38.573231 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-07-23 15:30:43.578092 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
^C2018-07-23 15:30:48.256488 INFO Keyboard interrupt
2018-07-23 15:30:48.582645 INFO AppDaemon: HASS: Disconnecting from Home Assistant
2018-07-23 15:30:48.599316 ERROR AppDaemon: Required attribute not set or obtainable from any plugin: latitude
2018-07-23 15:30:48.600190 ERROR AppDaemon: AppDaemon is terminating
2018-07-23 15:30:48.601028 ERROR AppDaemon: Required attribute not set or obtainable from any plugin: longitude
2018-07-23 15:30:48.601690 ERROR AppDaemon: AppDaemon is terminating
2018-07-23 15:30:48.602406 ERROR AppDaemon: Required attribute not set or obtainable from any plugin: elevation
2018-07-23 15:30:48.603033 ERROR AppDaemon: AppDaemon is terminating
2018-07-23 15:30:48.603705 ERROR AppDaemon: Required attribute not set or obtainable from any plugin: time_zone
2018-07-23 15:30:48.604318 ERROR AppDaemon: AppDaemon is terminating
2018-07-23 15:30:48.606078 INFO AppDeamon Exited
Please, does anyone knows what i am doing wrong?
EDIT. I did try this also with the use of the secrets file for the http_password, without success.