Using installation in a docker instructions
with hass-apps
in a requirements.txt
file (created via Samba so I wonder about permissions) I get the following log on startup…
LOG with requirements text
-----------------------------------------------------------
Hass.io Add-on: AppDaemon v1.6.0
Python Apps and HADashboard using AppDaemon 3.x for Home Assistant
From: Community Hass.io Add-ons
By: Franck Nijhof <[email protected]>
-----------------------------------------------------------
amd64 / Debian GNU/Linux 9 (stretch) / HA 0.82.1 / SU 139 / stable
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 02-updates.sh: executing...
INFO: You are running the latest version of this add-on
[cont-init.d] 02-updates.sh: exited 0.
[cont-init.d] 20-init-configuration.sh: executing...
[cont-init.d] 20-init-configuration.sh: exited 0.
[cont-init.d] 21-compiled-dir.sh: executing...
[cont-init.d] 21-compiled-dir.sh: exited 0.
[cont-init.d] 30-auto-token.sh: executing...
INFO: Updating Hass.io API token in AppDaemon with the current one...
[cont-init.d] 30-auto-token.sh: exited 0.
[cont-init.d] 31-ha-url.sh: executing...
[cont-init.d] 31-ha-url.sh: exited 0.
[cont-init.d] 50-compiled-symlink.sh: executing...
[cont-init.d] 50-compiled-symlink.sh: exited 0.
[cont-init.d] 80-system-packages.sh: executing...
[cont-init.d] 80-system-packages.sh: exited 0.
[cont-init.d] 81-python-packages.sh: executing...
[cont-init.d] 81-python-packages.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2018-11-18 18:53:14.026028 INFO AppDaemon Version 3.0.2 starting
2018-11-18 18:53:14.026655 INFO Configuration read from: /config/appdaemon/appdaemon.yaml
2018-11-18 18:53:14.034256 INFO AppDaemon: Starting Apps
2018-11-18 18:53:14.042429 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-11-18 18:53:14.539289 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-11-18 18:53:14.540212 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-11-18 18:53:14.540717 INFO Starting Dashboards
2018-11-18 18:53:14.574667 INFO API is disabled
2018-11-18 18:53:14.628175 INFO AppDaemon: HASS: Connected to Home Assistant 0.82.1
2018-11-18 18:53:14.854236 INFO AppDaemon: Got initial state from namespace default
2018-11-18 18:53:16.740577 INFO AppDaemon: Reading config
2018-11-18 18:53:16.797889 INFO AppDaemon: /config/appdaemon/apps/schedy.yaml added or modified
2018-11-18 18:53:16.798437 INFO AppDaemon: /config/appdaemon/apps/apps.yaml added or modified
2018-11-18 18:53:16.798694 INFO AppDaemon: /config/appdaemon/apps/schedy.yaml added or modified
2018-11-18 18:53:16.798901 INFO AppDaemon: /config/appdaemon/apps/apps.yaml added or modified
2018-11-18 18:53:16.799086 INFO AppDaemon: App 'schedy' added
2018-11-18 18:53:16.799295 INFO AppDaemon: App 'hello_world' added
2018-11-18 18:53:16.799590 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2018-11-18 18:53:16.800258 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/hass_apps_loader.py
2018-11-18 18:53:16.806953 WARNING AppDaemon: ------------------------------------------------------------
2018-11-18 18:53:16.807514 WARNING AppDaemon: Unexpected error loading module: /config/appdaemon/apps/hass_apps_loader.py:
2018-11-18 18:53:16.807710 WARNING AppDaemon: ------------------------------------------------------------
2018-11-18 18:53:16.853065 WARNING AppDaemon: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py", line 2026, in check_app_updates
self.read_app(mod["name"], mod["reload"])
File "/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py", line 1809, in read_app
self.modules[module_name] = importlib.import_module(module_name)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/config/appdaemon/apps/hass_apps_loader.py", line 3, in <module>
from hass_apps.loader import *
ModuleNotFoundError: No module named 'hass_apps'
2018-11-18 18:53:16.853439 WARNING AppDaemon: ------------------------------------------------------------
2018-11-18 18:53:16.853670 WARNING AppDaemon: Removing associated apps:
2018-11-18 18:53:16.854118 WARNING AppDaemon: schedy
2018-11-18 18:53:16.854377 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/hello.py
2018-11-18 18:53:16.921043 INFO AppDaemon: Initializing app hello_world using class HelloWorld from module hello
2018-11-18 18:53:17.028939 INFO hello_world: Hello from AppDaemon
2018-11-18 18:53:17.030543 INFO hello_world: You are now ready to run Apps!
2018-11-18 18:53:17.031957 INFO AppDaemon: App initialization complete
2018-11-18 18:53:17.193501 INFO HADashboard: New dashboard connected: Main Panel
With the hass-apps
in the python-packages
it just complains that it cannot find Schedy (as I would expect).
However
If I add the github URL to the python-packages
config as below…
{
"log_level": "info",
"system_packages": [],
"python_packages": [
"https://github.com/efficiosoft/hass-apps/archive/master.zip"
]
}
AppDaemon loads the package!!
A simple configuration later and I am in business.
schedy:
module: hass_apps_loader
class: SchedyApp
actor_type: thermostat
rooms:
masterbedroom:
schedule:
- value: 25
start: "05:30"
end: "19:30"
name: Fancy Rule
- value: 14
actors:
climate.masterbedroom:
This really is a great addition to HA. No idea why the requirements.txt
is not working for me but Schedy is working .