Hey I am trying to get ad3 up and running and having what I assume is a pretty basic issue. On setup Im a little confused about the layout of appdaemon.yaml
I dont really do much with apps (yet) but Im hoping to dive into that and should have alot more time come april 1. If someone could please point me in the right direction here. I have a new vm setup runnin ubuntu 16.04 server and installed ad. I followed the docs but im confused on type…here is my issue, thanks for checking!
da@appd:~$ appdaemon -c /home/homeassistant/conf
2018-03-07 22:45:54.797878 INFO AppDaemon Version 3.0.0b5 starting
2018-03-07 22:45:54.798259 INFO Configuration read from: /home/homeassistant/conf/appdaemon.yaml
2018-03-07 22:45:54.799073 INFO AppDaemon: Starting Apps
2018-03-07 22:45:54.802332 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-03-07 22:45:54.818899 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-03-07 22:45:54.819326 INFO AppDaemon: HASS: HASS Plugin initialization complete
Traceback (most recent call last):
File "/usr/local/bin/appdaemon", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/appdaemon/admain.py", line 365, in main
admain.main()
File "/usr/local/lib/python3.6/site-packages/appdaemon/admain.py", line 361, in main
self.run(appdaemon, hadashboard)
File "/usr/local/lib/python3.6/site-packages/appdaemon/admain.py", line 60, in run
self.AD = ad.AppDaemon(self.logger, self.error, self.diag, loop, **appdaemon)
File "/usr/local/lib/python3.6/site-packages/appdaemon/appdaemon.py", line 259, in __init__
basename = self.plugins[name]["type"]
KeyError: 'type'
i cant see it, because you dont present the yaml as codeblock, but i suspect that you have your indention from the yaml wrong.
type should be a sublevel from HASS:
This actaually works I believe. But I cant access the the web ui
da@appd:/home/homeassistant/conf$ appdaemon -c /home/homeassistant/conf
2018-03-08 12:30:52.521619 INFO AppDaemon Version 3.0.0b5 starting
2018-03-08 12:30:52.521844 INFO Configuration read from: /home/homeassistant/conf/appdaemon.yaml
2018-03-08 12:30:52.522358 INFO AppDaemon: Starting Apps
2018-03-08 12:30:52.524304 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-03-08 12:30:52.530049 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-03-08 12:30:52.530289 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-03-08 12:30:52.530463 INFO AppDaemon: Loading Plugin hadashboard using class HassPlugin from module hassplugin
2018-03-08 12:30:52.530614 INFO AppDaemon: hadashboard: HASS Plugin Initializing
2018-03-08 12:30:52.530810 INFO AppDaemon: hadashboard: HASS Plugin initialization complete
2018-03-08 12:30:52.530988 WARNING AppDaemon: error loading plugin: hadashboard - ignoring
2018-03-08 12:30:52.531133 WARNING AppDaemon: ------------------------------------------------------------
2018-03-08 12:30:52.531944 WARNING AppDaemon: Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/appdaemon/appdaemon.py”, line 293, in init
raise ValueError(“Duplicate namespace: {}”.format(namespace))
ValueError: Duplicate namespace: default
2018-03-08 12:30:52.532208 WARNING AppDaemon: ------------------------------------------------------------
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7fa5bf484518>
2018-03-08 12:30:52.532671 INFO Dashboards are disabled
2018-03-08 12:30:52.532827 INFO API is disabled
2018-03-08 12:30:52.632488 INFO AppDaemon: HASS: Connected to Home Assistant 0.64.1
2018-03-08 12:30:52.672885 INFO AppDaemon: Got initial state from namespace default
2018-03-08 12:30:54.705603 INFO AppDaemon: Reading config
2018-03-08 12:30:54.707785 INFO AppDaemon: /home/homeassistant/conf/apps/apps.yaml added or modified
2018-03-08 12:30:54.708100 INFO AppDaemon: /home/homeassistant/conf/apps/apps.yaml added or modified
2018-03-08 12:30:54.708379 INFO AppDaemon: App ‘hello_world’ added
2018-03-08 12:30:54.708766 INFO AppDaemon: Adding /home/homeassistant/conf/apps to module import path
2018-03-08 12:30:54.709249 INFO AppDaemon: Loading App Module: /home/homeassistant/conf/apps/hello.py
2018-03-08 12:30:54.718420 INFO AppDaemon: Initializing app hello_world using class HelloWorld from module hello
2018-03-08 12:30:54.797867 INFO hello_world: Hello from AppDaemon
2018-03-08 12:30:54.799178 INFO hello_world: You are now ready to run Apps!
2018-03-08 12:30:54.799943 INFO AppDaemon: App initialization complete