2018-02-01 16:55:58.707792 INFO AppDaemon: Starting Apps
2018-02-01 16:55:58.712683 WARNING AppDaemon: apps.yaml in the Config directory is deprecated. Please move apps.yaml to the apps directory.
Traceback (most recent call last):
File “/usr/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 341, in main
admain.main()
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 337, in main
self.run(appdaemon, hadashboard)
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 59, in run
self.AD = ad.AppDaemon(self.logger, self.error, loop, **appdaemon)
File “/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py”, line 257, in init
basename = self.plugins[name][“type”]
TypeError: ‘NoneType’ object is not subscriptable
read here about the breaking changes:
I red it, and?
the error shows that you dont have a plugin configured, so you havent changed the appdaemon.yaml right.
it also has the link to the docs how to configure the appdaemon.yaml the right way.
Thanks, this is my file. I also put hadashboard section without indentation and was giving error too
appdaemon:
cert_verify: False
logfile: STDOUT
errorfile: STDERR
threads: 10
app_dir: /config/appdaemon/apps
plugins:
HASS:
type: HASS
ha_url: https:// xxx. duckdns.org
ha_key: pi3
hadashboard:
dash_url: http://127.0.0.1:5050
dash_dir: /config/appdaemon/dashboards
rss_feeds:
- feed: http://rss.cnn.com/rss/cnn_topstories.rss
target: news
rss_update: 300
#AppDaemon:
# cert_verify: False
# disable_apps: 0
# logfile: STDOUT
# errorfile: STDERR
# threads: 10
# app_dir: /config/hadaemon/apps
# Apps
hello_world:
module: hello
class: HelloWorld
yours:
in the docs:
plugins:
HASS:
type: hass
ha_url: <some_url>
ha_key: <some key>
cert_path: <path/to/root/CA/cert>
cert_verify: True
namespace: default
Ok, will try, thanks
Still errors
appdaemon:
cert_verify: False
logfile: STDOUT
errorfile: STDERR
threads: 10
app_dir: /config/appdaemon/apps
plugins:
HASS:
type: HASS
ha_url: xxx.duckdns.org
ha_key: xxx
cert_path: /ssl
cert_verify: True
namespace: default
hadashboard:
dash_url: http://127.0.0.1:5050
dash_dir: /config/appdaemon/dashboards
rss_feeds:
- feed: http://rss.cnn.com/rss/cnn_topstories.rss
target: news
rss_update: 300
2018-02-02 12:43:45.487813 INFO AppDaemon Version 3.0.0b2 starting
2018-02-02 12:43:45.488270 INFO Configuration read from: /config/appdaemon/appdaemon.yaml
2018-02-02 12:43:45.489776 INFO AppDaemon: Starting Apps
Traceback (most recent call last):
File “/usr/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 341, in main
admain.main()
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 337, in main
self.run(appdaemon, hadashboard)
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 59, in run
self.AD = ad.AppDaemon(self.logger, self.error, loop, **appdaemon)
File “/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py”, line 257, in init
basename = self.plugins[name][“type”]
type is hass not HASS
yes I did, same errors
you still have your indention wrong.
hadashboard?
look at this from the docs and compare it to yours!
indention beneath HASS
Ok got it. One thing solved, but still can’t connect
2018-02-02 12:50:45.001746 INFO AppDaemon Version 3.0.0b2 starting
2018-02-02 12:50:45.002069 INFO Configuration read from: /config/appdaemon/appdaemon.yaml
2018-02-02 12:50:45.003277 INFO AppDaemon: Starting Apps
2018-02-02 12:50:45.016570 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-02-02 12:50:45.174769 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-02-02 12:50:45.175234 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-02-02 12:50:45.175522 INFO Starting Dashboards
2018-02-02 12:50:45.182065 INFO API is disabled
2018-02-02 12:50:45.183125 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-02-02 12:50:48.016850 INFO HADashboard: New dashboard connected: Media Panel
2018-02-02 12:50:50.185504 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-02-02 12:50:55.188658 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
I changed the config file to this (with https)
plugins:
HASS:
type: hass
ha_url: https://xxx.duckdns.org
2018-02-02 12:55:14.327646 INFO AppDaemon Version 3.0.0b2 starting
2018-02-02 12:55:14.328008 INFO Configuration read from: /config/appdaemon/appdaemon.yaml
2018-02-02 12:55:14.329390 INFO AppDaemon: Starting Apps
2018-02-02 12:55:14.355661 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-02-02 12:55:14.546693 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-02-02 12:55:14.547222 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-02-02 12:55:14.547473 INFO Starting Dashboards
2018-02-02 12:55:14.553453 INFO API is disabled
2018-02-02 12:55:14.794136 INFO AppDaemon: HASS: Connected to Home Assistant 0.62.1
2018-02-02 12:55:15.314881 INFO AppDaemon: Got initial state from namespace default
2018-02-02 12:55:16.903852 INFO AppDaemon: Loading Module: /config/appdaemon/apps/hello.py
2018-02-02 12:55:16.918021 INFO AppDaemon: Loading Object hello_world using class HelloWorld from module hello
2018-02-02 12:55:17.063265 INFO hello_world: Hello from AppDaemon
2018-02-02 12:55:17.064641 INFO hello_world: You are now ready to run Apps!
2018-02-02 12:55:17.065169 INFO AppDaemon: App initialization complete
EDIT
Now it connects but get in Opera Browser
Error getting state, check Java Console for details
check for breaking changes
clear all cash
clear files beneath the compiled dir substructure (leave the subdirs, but clear them)
restart device
use chrome
check Java Console for details
in chrome works … had that error in the past, will check later. Thanks
now continues the quest for variables.yaml, the ghost file …
input_slider are erratic at best.
I put volume at, say, 20 and they go up and down as they want. In appadaemon 2 I had not this behaviour