Community Hass.io Add-on: AppDaemon 3

:tada: Release v4.0.3

Full Changelog

This is a general maintenance release.

Changed

  • :arrow_up: Upgrades add-on base image to v4.1.1

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

i think you should ask your question in the shedy topic.
because this problem is not with the addon, that is working as expected.

OK thank you

:tada: Release v4.1.0

Full Changelog

This is a general maintenance release.

Changed

  • :sparkles: Adds yq
  • :arrow_up: Upgrades add-on base image to v5.0.1

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

Thanks for the great addon :slight_smile: I’m getting some weird behaviour though; when using the same icon_on icon_off code (mdi-lamp), it works on 2 switch widgets which are coupled to a hass light object, but another switch widgets that’s coupled to a hass switch object ignores it. The same line also doesn’t work on script widgets.

This works:

light_piano:
  widget_type: switch
  title: PIANO LIGHT
  entity: light.living_piano
  icon_on: mdi-lamp
  icon_off: mdi-lamp
  icon_style_active: "font-size: 400%; margin-top: 15px; color: yellow;"
  icon_style_inactive: "font-size: 400%; margin-top: 15px; color: white;"

This doesn’t:

light_hallway:
  widget_type: switch
  title: HALLWAY LIGHT
  entity: switch.sb04
  icon_on: mdi-lamp
  icon_off: mdi-lamp
  icon_style_active: "font-size: 400%; margin-top: 15px; color: yellow;"
  icon_style_inactive: "font-size: 400%; margin-top: 15px; color: white;"

Nor this:

activate_lights:
  widget_type: script
  title: ILLUMINATE
  entity: script.activate_living_room_lights
  icon_on: mdi-lamp
  icon_off: mdi-lamp
  icon_style_active: "font-size: 400%; margin-top: 15px; color: green;"
  icon_style_inactive: "font-size: 400%; margin-top: 15px; color: white;"

Any idea?

Hi
I am trying AppDaemon for the first time to create histograms of some MQTT received data in a page in HASSIO and I need to have numpy and matplotlib installed to make histograms.
I had compiling problem on kiwsolver which is I solved by adding gcc and g++ in the system packages. But now I have another problem… I put the log at the end of the message. I am using HA 101.3 on a Rapsberry Pi 3 and AppDaemon is version 4.1.0. Any idea on how to solve ?

Thanks,
Edoardo

Here is my config

{
  "disable_auto_token": false,
  "system_packages": [
    "gcc",
    "g++"
  ],
  "python_packages": [
    "numpy",
    "matplotlib"
  ]
}
Log
 System: HassOS 2.12  (armv7 / raspberrypi3)
 Home Assistant version: 0.101.3
 Supervisor version: 192
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] appdaemon.sh: executing... 
[11:09:10] INFO: Updating Hass.io API token in AppDaemon with the current one...
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/armv7/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/armv7/APKINDEX.tar.gz
v3.10.3-36-g7cacb7930a [http://dl-cdn.alpinelinux.org/alpine/v3.10/main]
v3.10.3-20-g9fd7505b58 [http://dl-cdn.alpinelinux.org/alpine/v3.10/community]
v20191114-25-g2ca161d1bd [http://dl-cdn.alpinelinux.org/alpine/edge/main]
v20191114-21-g5295833160 [http://dl-cdn.alpinelinux.org/alpine/edge/community]
v20191114-19-g4d1df62185 [http://dl-cdn.alpinelinux.org/alpine/edge/testing]
OK: 24442 distinct packages available
(1/9) Installing binutils (2.32-r0)
(2/9) Installing gmp (6.1.2-r1)
(3/9) Installing isl (0.18-r0)
(4/9) Installing libgomp (8.3.0-r0)
(5/9) Installing libatomic (8.3.0-r0)
(6/9) Installing mpfr3 (3.1.5-r1)
(7/9) Installing mpc1 (1.1.0-r0)
(8/9) Installing libstdc++ (8.3.0-r0)
(9/9) Installing gcc (8.3.0-r0)
Executing busybox-1.30.1-r2.trigger
OK: 121 MiB in 43 packages
(1/3) Installing musl-dev (1.1.22-r3)
(2/3) Installing libc-dev (0.7.1-r0)
(3/3) Installing g++ (8.3.0-r0)
Executing busybox-1.30.1-r2.trigger
OK: 177 MiB in 46 packages
Looking in links: https://wheels.hass.io/alpine-3.10/armv7/
Collecting numpy
  Downloading https://wheels.hass.io/alpine-3.10/armv7/numpy-1.17.4-cp37-none-any.whl (14.1MB)
Installing collected packages: numpy
Successfully installed numpy-1.17.4
You are using pip version 19.0.3, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Looking in links: https://wheels.hass.io/alpine-3.10/armv7/
Collecting matplotlib
  Downloading https://files.pythonhosted.org/packages/12/d1/7b12cd79c791348cb0c78ce6e7d16bd72992f13c9f1e8e43d2725a6d8adf/matplotlib-3.1.1.tar.gz (37.8MB)
Collecting cycler>=0.10 (from matplotlib)
  Downloading https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl
Collecting kiwisolver>=1.0.1 (from matplotlib)
  Downloading https://files.pythonhosted.org/packages/16/e7/df58eb8868d183223692d2a62529a594f6414964a3ae93548467b146a24d/kiwisolver-1.1.0.tar.gz
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib)
  Downloading https://files.pythonhosted.org/packages/c0/0c/fc2e007d9a992d997f04a80125b0f183da7fb554f1de701bbb70a8e7d479/pyparsing-2.4.5-py2.py3-none-any.whl (67kB)
Collecting python-dateutil>=2.1 (from matplotlib)
  Downloading https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227kB)
Requirement already satisfied: numpy>=1.11 in /usr/lib/python3.7/site-packages (from matplotlib) (1.17.4)
Requirement already satisfied: six in /usr/lib/python3.7/site-packages (from cycler>=0.10->matplotlib) (1.12.0)
Requirement already satisfied: setuptools in /usr/lib/python3.7/site-packages (from kiwisolver>=1.0.1->matplotlib) (40.8.0)
Installing collected packages: cycler, kiwisolver, pyparsing, python-dateutil, matplotlib
  Running setup.py install for kiwisolver: started
    Running setup.py install for kiwisolver: finished with status 'error'
    Complete output from command /usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-_7eb00fh/kiwisolver/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-0bhwj9wa/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'kiwisolver' extension
    creating build
    creating build/temp.linux-armv7l-3.7
    creating build/temp.linux-armv7l-3.7/py
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -I. -I/usr/include/python3.7m -c py/kiwisolver.cpp -o build/temp.linux-armv7l-3.7/py/kiwisolver.o
    py/kiwisolver.cpp:8:10: fatal error: Python.h: No such file or directory
     #include <Python.h>
              ^~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-_7eb00fh/kiwisolver/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-0bhwj9wa/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-_7eb00fh/kiwisolver/
You are using pip version 19.0.3, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[11:12:02] FATAL: Failed installing package matplotlib
[cont-init.d] appdaemon.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
-----------------------------------------------------------
                Oops! Something went wrong.

 We are so sorry, but something went terribly wrong when
 starting or running this add-on.
 
 Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] appdaemon.sh: executing... 
[cont-finish.d] appdaemon.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

:tada: Release v5.0.0

Full Changelog

This is a general maintenance release, however, we gave it a major version bump, because of the upgrade to Python 3.8.

Furthermore, support for providing your own init_commands via the add-on configuration has been added, allowing you to customize the environment AppDaemon runs in.

Changed

  • :arrow_up: Upgrades add-on base image to v5.0.2
  • :arrow_up: Upgrades python3 to 3.7.5-r1
  • :fireworks: Updates maintenance/license year to 2020
  • :pencil2: Funding adjustments
  • :books: Adjust add-on installation instructions
  • :pencil2: Fixes some spelling and grammar
  • :arrow_up: Upgrades add-on base image to v6.0.1
  • :arrow_up: Upgrades gcc to 9.2.0-r3
  • :arrow_up: Upgrades libc-dev to 0.7.2-r0
  • :pencil2: Fixes some spelling and grammar
  • :arrow_up: Upgrades python3 to 3.8.1-r0
  • :sparkles: Adds support for startup init commands

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck

Will there ever be appdaemon 4 available?

You are asking the question in the wrong place @thundergreen. You should ask the maintainers of AppDaemon that question.

appdaemon is not fully compatible with python 3.8

so i would advise everybody not to use this release.

Got an example of that? besides some warnings, I haven’t found breaking things.
Are those documented issues? If not, I’m happy help and raise them so we can get them fixed.

i just asked other devs that know more about it then i do.
something with aiohttp.

even AD 4 is not compatible yet.
and i dont think that Andrew will make AD 3 updates anymore.

we are to close to releasing AD 4

In the same paragraph! :smiley:

correct.

AD 4 will probably be released for python max 3.7.5

If that is true, Hass.io users will be excluded from using AppDaemon.

i am talking about initial release.
but its possible that those updates will be in the beta before release.

I installed v5.0.0 in my Hassio installation, it’s working but i have problem with using python-telegram-bot package. If I set it in the python package (even with the app that uses this package unloaded), it fails to start, if i remove it, it starts.

Full Changelog

This add-on is in a deprecated state!

This add-on is powered by AppDaemon 3.x, which has been replaced by AppDaemon 4.x.

Are you looking for installing AppDaemon or upgrading to the new AppDaemon 4.x add-on?

Or search for “AppDaemon” in the Hass.io add-on store.

Changed

  • :warning: Adds deprecation notices

Questions? Join our Discord server! Community Hass.io Add-ons | Discord Me
Enjoying my add-ons? Consider supporting my work:
Sponsor @frenck on GitHub Sponsors · GitHub or Franck Nijhof | creating opensource, high quality, add-ons for Home Assistant's | Patreon

Been running AD4 for a few weeks sadly I need to go back to AD3 until my issue gets resolved.
https://github.com/home-assistant/appdaemon/issues/852

Has AD3 been removed from the official repo ?
https://addons.community

I can only find AD4 as an install option.

Same…that issue effects me too but looks like I can’t even downgrade to AD3 anymore :cry:

1 Like