Good morning all,
Here is the latest beta for AppDaemon 4.0.0
As promised, thanks to hard work from the team we now have among other things Async Apps and 3 new and one reworked dashboard widget.
In addition, we have a new feature called sequences - these allow predefined sequences of service calls to be triggered by apps. Initially they are useful for self contained scenes within AppDaemon but also have many other uses as they include the ability to delay execution for periods of time, something that is not recommended in threaded apps (although perfectly fine in the new Async apps!). Sequences are a key building block of the upcoming automation rules engine we are working on for a future version of AppDaemon.
Updated docs for AD 4.0 can be found here .
Installation instructions can be found here - PyPi has a development build available, use appdaemon==4.0.0b2
, there is also a Docker image available on Docker Hub.
Some hints and tips on upgrading can be found here .
Take a look and let us know if you find any issues. The next release will be the official 4.0.0 version!
4.0.0 Beta 2 (2019-10-19)
Features
- Added a
timeout
parameter tolisten_state()
andlisten_event()
to delete the callback after a pre-determined interval. - Added render_template() handling
- global_modules can now be declared in multiple yaml files
- It is now possible to inject arbitrary headers in served http content
- Updated camera widget now supports streams and token refreshing
- Added input_text and input_datetime widgets
- Added the ability to control the number of threadpool workers
- Each time a new service is registered, a
service_registered
event is fired, which can be picked up by apps - Added support for async apps
- Added authorization to stream as well as command semantics for various functions
- Added sequences
- Added sequence widget
- Added app access to dashboard directory using
self.dashboard_dir
- List of available dashes is now alphabetically sorted
- Changed namespaces implementation to use shelve instead of JSON enabling non JSON-serializable objects to be stored and also potential performance increases - contributed by
Robert Schindler <https://github.com/efficiosoft>
__ - MDI updated to version 4.4.95 - contributed by
Roeland Van Lembergen <https://github.com/clayhill>
__
Fixes
- Fixed a bug in global_modules that caused a exception
- Fixed icon bug in weather widget - contributed by
Roeland Van Lembergen <https://github.com/clayhill>
__
Breaking Changes
-
timeout
is now an official parameter tolisten_state()
andlisten_event()
. If you were usingtimeout
in your kwargs section for either you should rename that parameter. - The camera widget has changed parameters - check the docs for details
- Moved the
log events
from global toadmin
namespace. iflisten_log
is just used for listening to logs, it shouldn’t matter - If you have used persistent namespaces in the previous beta it is necessary to delete all saved namespaces by removing all files in the
namespaces
subdirectory under your appdaemon config directory