Community Hass.io Add-on: AppDaemon 3

Good questions @HudsonMC16!

Both add-ons use the same configuration files. So you’d have to choose.
Migrate or start developing on AppDaemon3 or stick with AppDaemon2.

The AppDaemon configuration files are stored in the /config folder. Once files are created there, the add-on will never touch it again. So even on deletion of an add-on, the config (and dashboard/apps) are still there and unharmed.

This also means uninstalling V2 and installing V3 is possible, but V3 will not work, since you’d have to modify/migrate your current configuration.

The reason this add-on is separate, is to enable users to migrate to v3 or stick with v2. Its all about giving the user choices.

Hi,

i just installed v3 right next to v2.
I stoped v2, and started v3.

Now, I get the following error:

ERROR no 'appdaemon' section in /config/appdaemon/appdaemon.yaml

Any idea what to do?
stopping v3 and startvv2 (to continue to use it) is working fine.

Regards

Look here for details on changes Announcement - AppDaemon 3.0 beta 1!

I have appdaemon 2, what is the best way to upgrade, backup and take out existing directories, uninstall previous addon and then install this one?

Or is it possible to keep both?

Agreed, some clear instructions are needed. I removed V2, installed V3 and everything was broken, errors on errors.

upgrading to V3 and its breaking changes can be found here:

and here

the docs for V3 can be found here
http://appdaemon.readthedocs.io/en/latest/index.html
and the docs for V2 can be found here
http://appdaemon.readthedocs.io/en/2.1.12/

and yeah it would be helpfull if the github from the addon would give that information.

1 Like

AppDaemon V3 is still a Beta version, it most likely will have a few issues.

It will take time to finish this release and write the documentation, I am sure help in that area would be appreciated. If nothing else to proof read it. The more we work with it the better (less issues) the finished version will be.

Same. I reverted back to v2

First thing then is to mark the thing as Beta as this is not clear in the Hassio Add-ons, it looks like it’s release.

@anon35356645 and @bucksbass its quite stable and nice as I moved to it fully last night. Had held back for this long as I was scared as I got some “critical” apps running on it (I manage my mother-in-Laws medication remotely with it) so you can imagine.

But once installed, followed up the breaking changes based on what @ReneTode shared and it was all good. Though one thing tripped me off and that was the self.get_state(). now just simply doing something like self.get_state("light.testing","brightness") to get the brightness attributes will break it. Instead one has to specify and that’s by doing self.get_state("light.testing",attributes="brightness").

its all fine there on and its cool so far. The Plugin aspect of it, its awesome to say the least.

Thank you very much this seems really good :))

I just installed it with no apps (just hadashboad panels) and receive this error in log

starting version 3.2.4
[services.d] done.
2018-02-01 17:03:14.893103 INFO AppDaemon Version 3.0.0b2 starting
2018-02-01 17:03:14.893456 INFO Configuration read from: /config/appdaemon/appdaemon.yaml
2018-02-01 17:03:14.895027 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”]
TypeError: ‘NoneType’ object is not subscriptable

nice that you post your question twice, so here the same answer:

read here about the breaking changes:

Thank you for the same answer

happens when you ask twice :wink:
better as when you get 2 completely different answers and dont know which is the right one :wink:

1 Like

I had that problem, the Caps have been removed from hadashboard: and should be indented to the same level as appdaemon: and not as a plugin.
Hope that helps!

Thanks for the useful answer. Will check soon

Although ReneTode’s answer is correct, it’s not particularly friendly or helpful. I made the transition tonight and it’s working well. Here’s what my working config for v3 looks like:

log:
  logfile: /config/appdaemon/appdaemon.log
  errorfile: /config/appdaemon/error.log
  
appdaemon:
  threads: 10
  app_dir: /config/appdaemon/apps
  plugins:
    HASS:
      type: hass
      ha_url: <your URL>
      ha_key: <Your password>
hadashboard:
  dash_url: http://192.168.100.5:5050
  dash_dir: /config/appdaemon/dashboards

So the first thing to notice is that the capitalisation has been removed, do that first.
Now split your logging directives out to be under log:
Finally add the plugins: section and move your HASS: section into it adding type:hass.

If you check the logs you might find it moaning about apps.yaml being in the config directory. Easy fix :slight_smile:

If you are using apps then you do need to read the docs as there is more to do.

2 Likes

sorry, i am normally a bit more friendly and for sure more helpfull (but if you would look up my profile or just read a lot on the forum, you could see that)
but with some people i dont give more then is needed in the hope that they finally start to look for themself before they ask. :wink:
like you noticed, my answer was correct, and for most people more then enough :wink:
so dont let me scare you away, mostly im a friendly guy :wink:

1 Like

I appreciate that Rene but I think one has to remember that Hassio is meant to be an easier point and click / fill in a few parameters way of getting HA up and running. The upgrade to V3 is not straightforward (I get that it’s Beta so expect issues) and your average user is not going to wade through long documents. It’s one of my bugbears with OpenSource that it tends to assume levels of knowledge that people don’t have. If one needed to read a manual from front to back to drive a car, there would be few people driving, the same with a TV or a satellite receiver, plug and go, simple controls, that’s why these are popular.

When someone asks a question that perhaps seems a bit dumb, don’t throw a huge manual at them and say “Read that!”, distill your knowledge, guide them.

That said, we all have off days :wink:

3 Likes