That’s a good idea. What I’ve done was:
- Uninstalled AD3
- Deleted the
appdaemon
folder completely
- Reinstalled AD3 (frenck’s)
- Started AD3
On the log i could see AD complaining about the the folder not beeing there and created it. I think this is the line:
INFO: ha_key is missing in the AppDaemon configuration, fixing...
And then this:
2018-03-08 12:02:43.290924 INFO AppDaemon Version 3.0.0b5 starting
2018-03-08 12:02:43.291995 INFO Configuration read from: /config/appdaemon/appdaemon.yaml
2018-03-08 12:02:43.296337 INFO AppDaemon: Starting Apps
2018-03-08 12:02:43.309498 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-03-08 12:02:43.436144 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-03-08 12:02:43.438028 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-03-08 12:02:43.440423 INFO Starting Dashboards
2018-03-08 12:02:43.479128 INFO API is disabled
2018-03-08 12:02:43.521039 INFO AppDaemon: HASS: Connected to Home Assistant 0.64.3
2018-03-08 12:02:45.603249 INFO AppDaemon: Got initial state from namespace default
2018-03-08 12:02:46.155206 INFO AppDaemon: Reading config
2018-03-08 12:02:46.170210 INFO AppDaemon: /config/appdaemon/apps/apps.yaml added or modified
2018-03-08 12:02:46.172676 INFO AppDaemon: /config/appdaemon/apps/apps.yaml added or modified
2018-03-08 12:02:46.173705 INFO AppDaemon: App 'hello_world' added
2018-03-08 12:02:46.175648 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2018-03-08 12:02:46.178251 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/hello.py
2018-03-08 12:02:46.254758 INFO AppDaemon: Initializing app hello_world using class HelloWorld from module hello
2018-03-08 12:02:46.949837 INFO hello_world: Hello from AppDaemon
2018-03-08 12:02:46.961247 INFO hello_world: You are now ready to run Apps!
2018-03-08 12:02:46.963341 INFO AppDaemon: App initialization complete
2018-03-08 12:02:52.986258 INFO HADashboard: New dashboard connected: Test Panel
Then, opened the test dashboard and could see the hello world
dash.
But the AD addon log shows:
2018-03-08 12:06:24.851444 INFO function [get_dashboard] finished in 713 ms
Error handling request
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 416, in start
resp = yield from self._request_handler(request)
File "/usr/lib/python3.6/site-packages/aiohttp/web.py", line 325, in _handle
resp = yield from handler(request)
File "/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 93, in impl
return (yield from handler(request))
File "/usr/lib/python3.6/site-packages/appdaemon/rundash.py", line 50, in wrapper
return await myfunc(*args)
File "/usr/lib/python3.6/site-packages/appdaemon/rundash.py", line 253, in load_dash
return web.Response(text=response, content_type="text/html")
File "/usr/lib/python3.6/site-packages/aiohttp/web_response.py", line 471, in __init__
type(text))
TypeError: text argument must be str (<class 'dict'>)
2018-03-08 12:06:26.180715 INFO Compiling dashboard 'robots.txt'
2018-03-08 12:06:27.832370 WARNING Dashboard 'robots.txt' not found
2018-03-08 12:06:27.870765 WARNING ------------------------------------------------------------
2018-03-08 12:06:27.885316 WARNING Unexpected error during DASH creation
2018-03-08 12:06:27.891740 WARNING ------------------------------------------------------------
2018-03-08 12:06:27.899650 WARNING Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/appdaemon/dashboard.py", line 822, in get_dashboard
with open(include_path, "r") as include_file:
FileNotFoundError: [Errno 2] No such file or directory: '/config/appdaemon/compiled/html/default/robots.txt_head.html'
2018-03-08 12:06:27.905454 WARNING ------------------------------------------------------------
2018-03-08 12:06:27.907186 INFO function [get_dashboard] finished in 2000 ms
Error handling request
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 416, in start
resp = yield from self._request_handler(request)
File "/usr/lib/python3.6/site-packages/aiohttp/web.py", line 325, in _handle
resp = yield from handler(request)
File "/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 93, in impl
return (yield from handler(request))
File "/usr/lib/python3.6/site-packages/appdaemon/rundash.py", line 50, in wrapper
return await myfunc(*args)
File "/usr/lib/python3.6/site-packages/appdaemon/rundash.py", line 253, in load_dash
return web.Response(text=response, content_type="text/html")
File "/usr/lib/python3.6/site-packages/aiohttp/web_response.py", line 471, in __init__
type(text))
TypeError: text argument must be str (<class 'dict'>)
2018-03-08 12:06:27.959026 INFO Compiling dashboard 'robots.txt'
2018-03-08 12:06:28.575948 WARNING Dashboard 'robots.txt' not found
2018-03-08 12:06:28.577614 WARNING ------------------------------------------------------------
2018-03-08 12:06:28.578374 WARNING Unexpected error during DASH creation
2018-03-08 12:06:28.579001 WARNING ------------------------------------------------------------
2018-03-08 12:06:28.580207 WARNING Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/appdaemon/dashboard.py", line 822, in get_dashboard
with open(include_path, "r") as include_file:
FileNotFoundError: [Errno 2] No such file or directory: '/config/appdaemon/compiled/html/default/robots.txt_head.html'
2018-03-08 12:06:28.580851 WARNING ------------------------------------------------------------
2018-03-08 12:06:28.581572 INFO function [get_dashboard] finished in 650 ms
Error handling request
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 416, in start
resp = yield from self._request_handler(request)
File "/usr/lib/python3.6/site-packages/aiohttp/web.py", line 325, in _handle
resp = yield from handler(request)
File "/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 93, in impl
return (yield from handler(request))
File "/usr/lib/python3.6/site-packages/appdaemon/rundash.py", line 50, in wrapper
return await myfunc(*args)
File "/usr/lib/python3.6/site-packages/appdaemon/rundash.py", line 253, in load_dash
return web.Response(text=response, content_type="text/html")
File "/usr/lib/python3.6/site-packages/aiohttp/web_response.py", line 471, in __init__
type(text))
TypeError: text argument must be str (<class 'dict'>)
2018-03-08 12:06:28.604239 INFO Compiling dashboard 'Hello'
2018-03-08 12:06:29.459935 INFO Compiling dashboard 'robots.txt'
2018-03-08 12:06:31.612488 WARNING Dashboard 'robots.txt' not found
2018-03-08 12:06:31.645461 WARNING ------------------------------------------------------------
2018-03-08 12:06:31.652063 WARNING Unexpected error during DASH creation
2018-03-08 12:06:31.658192 WARNING ------------------------------------------------------------
2018-03-08 12:06:31.670327 WARNING Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/appdaemon/dashboard.py", line 822, in get_dashboard
with open(include_path, "r") as include_file:
FileNotFoundError: [Errno 2] No such file or directory: '/config/appdaemon/compiled/html/default/robots.txt_head.html'
2018-03-08 12:06:31.678046 WARNING ------------------------------------------------------------
2018-03-08 12:06:31.679045 INFO function [get_dashboard] finished in 3082 ms
Error handling request
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 416, in start
resp = yield from self._request_handler(request)
File "/usr/lib/python3.6/site-packages/aiohttp/web.py", line 325, in _handle
resp = yield from handler(request)
File "/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 93, in impl
return (yield from handler(request))
File "/usr/lib/python3.6/site-packages/appdaemon/rundash.py", line 50, in wrapper
return await myfunc(*args)
File "/usr/lib/python3.6/site-packages/appdaemon/rundash.py", line 253, in load_dash
return web.Response(text=response, content_type="text/html")
File "/usr/lib/python3.6/site-packages/aiohttp/web_response.py", line 471, in __init__
type(text))
TypeError: text argument must be str (<class 'dict'>)
2018-03-08 12:06:32.159121 INFO function [get_dashboard] finished in 3726 ms
2018-03-08 12:06:32.620295 INFO HADashboard: New dashboard connected: Hello Panel
Is it safe to say that there is nothing wrong on my side but a problem with the addon or AD itself?