Happy new year AD users!
We have a new release for you, and the main additions this time are the new Admin Interface and Entity classes.
The New AUI is an updated version of the admin interface that I teased last release, it is now mainstream instead of just available from the dev branch. Hopefully it gives a new updated look and feel, and is a good basis for future additions.
The second addition is a new entity API that makes it a little cleaner to work entities. For example:
# get light entity class
kitchen_light = self.adapi.get_entity("light.kitchen_ceiling_light", namespace="hass")
if kitchen_ceiling_light.is_state("off"):
kitchen_ceiling_light.turn_on(brightness=200)
Docs are here.
Many thanks to @Odianosen25 for his work on this!
We also have a few breaking changes this release, most importantly we changed the entity
parameter in listen_state
and set_state
to entity_id
for consistency. These are positional parameters so you will only be affected by this if you actually specify them as keyword parameters which would have worked in the past but will now break until you rename the keywords to entity_id
.
Here is the complete list changes:
4.2.0 (2022-01-03)
Features
- Released new AppDaemon Admin User Interface
- Added support for passing a list of events to
listen_event
api - Added support for passing a list of entities to
listen_state
api - Clicking on a sequence name in AUI will now run the sequence
- Added support for entity class alongeside
get_entity
andget_entity_api
functions - Added the
wait_state
command for sequences, so a sequence can be paused until an entity or its attribute has a certain state - Added the
sequence/cancel
service call. So sequences can be cancelled - Added the ability to specify a high level namespace in sequence, so no need specifying per command
- Allowed for running or cancelling sequences using either entity_id or the sequences name
- Added
constrain_state
functionality with support for lambda functions
Fixes
- Pinned socketio modules to fix a version mismatch
- Removed try/catch clause that broke dashboard for iOS 10 users - contributed by
Christian Lyra <https://github.com/clyra>
__ - Fixed the possibility of having
check_app_updates
being a negative value - Fix for Hass services not being captured after startup again
- Fixed issue whereby
.git
paths where being imported into AD and leading to lots of unnecessary messages. - Fixed issue with AD being unable to refresh Pluginâs entities
- Fixed issue with using the
loop
in sequences for certain services - Fixed issue whereby the wrong the wrong timeout error was being captured, when running a coroutine
- Documentation fixes - contributed by
markwmuller <https://github.com/markwmuller>
__ - Documentation fixes - contributed by
JonasPed <https://github.com/JonasPed>
__ - Documentation fixes - contributed by
elandt <https://github.com/elandt>
__ - Documentation fixes - contributed by
marcelblijleven <https://github.com/marcelblijleven>
__ - Documentation fixes - contributed by
scstraus <https://github.com/scstraus>
__ - Fixed a long standing bug in set_state ofr HASS plugin where attributes would get overwritten when setting the main state
- Bumped voluptuous from 0.12.1 to 0.12.2
- Bumped azure-storage-blob from 12.8.1 to 12.9.0
- Bumped azure-mgmt-storage from 17.1.0 to 19.0.0
- Bumped azure-mgmt-resource from 19.0.0 to 20.0.0
- Bumped azure-mgmt-compute from 22.1.0 to 23.1.0
- Bumped iso8601 from 0.1.16 to 1.0.2
- Bumped yarl from 1.6.3 to 1.7.2
- Bumped paho-mqtt from 1.5.1 to 1.6.1
- Bumped jinja2 from 3.0.1 to 3.0.3
- Bumped aiohttp from 3.7.4.post0 to 3.8.1
- Bumped pygments from 2.9.0 to 2.10.0
- Bumped deepdiff from 5.5.0 to 5.7.0
- Bumped pyyaml from 5.4.1 to 6.0
- Bumped pytz from 2021.1 to 2021.3
- Bumped python-engineio from 3.13.2 to 4.3.0
- Bumped feedparser from 6.0.2 to 6.0.8
- Bumped python-socketio from 4.6.1 to 5.5.0
- Bumped websocket-client from 1.2.1 to 1.2.3
- Bumped wheel from 0.37.0 to 0.37.1
Breaking Changes
- Service calls no longer return results by default
-
callback
andreturn_result
are now reserved words for the service call api - If an invalid domain or service is given in a service call, exceptions will now be raised for better error management
- Changed
set_state
andlisten_state
to supportentity_id
and notentity
, to standardise use across api calls