2.1.9 addresses an issue for Dashbaord only users
If you are running HADashboard with no Apps, you need to do the following:
- Upgrade to 2.1.9
- Make sure that
disable_apps
is either unset or set to0
- create an empty
apps.yaml
file in your config directory
–
Hi there - a minor release, but a lot of work is going on behind the scenes to integrate AppDaemon with HASS, and some nice additional example apps have been contributed by Torkild Retvedt.
Hass.io users - please do not upgrade yet
The changes I have mnade to AppDaemon will not work with the current AppDaemon addon for hass.io. I have informed @vkorn and hopefully he will make the required changes soon.
Breaking Changes to Configuration and Widget API
There are a couple of breaking changes here - the most important is that I have separated the App configuration out from the AppDaemon.yaml
file into it’s own file called apps.yaml
in the configuration directory - this is in preparation for moving AD into HASS where the main config will come from the HASS config itself when we get to that point. For now, both files are required. So, if you have an AppDaemon.yaml
that looks like this:
AppDaemon:
threads: '10'
api_key: !secret ad_key
HASS:
ha_key: !secret ha_key
ha_url: http://192.168.1.20:8123
HADashboard:
dash_url: http://192.168.1.20:5151
#Apps
hello_world:
module: hello
class: HelloWorld
Edit it so that AppDaemon.yaml looks like this:
AppDaemon:
threads: '10'
api_key: !secret ad_key
HASS:
ha_key: !secret ha_key
ha_url: http://192.168.1.20:8123
HADashboard:
dash_url: http://192.168.1.20:5151
And apps.yaml looks like this:
#Apps
hello_world:
module: hello
class: HelloWorld
In addition, there has been a change to the Widget API. In the JavaScript portion of the widgets, when registering for events, there is a new required parameter called action
. This has been added so that widgets can respond to all types of events, not just clicks. To fix any custom widgets, add the new parameter with a value of click
like this:
var callbacks =
[
{"selector": '#' + widget_id + ' > span', "action": "click", "callback": self.OnButtonClick},
{"selector": '#' + widget_id + ' #level-up', "action": "click", "callback": self.OnRaiseLevelClick},
{"selector": '#' + widget_id + ' #level-down', "action": "click", "callback": self.OnLowerLevelClick},
]
Features
- Refactor of dashboard code in preparation for HASS integration
- Addition of check to highlight excessive time in scheduler loop
- Split app configuration out into a separate file in preparation for HASS integration
- Enhance widget API to handle all event types instead of just click
- Add example HADashboard focussed Apps for Oslo City Bikes, Caching of local AppDaemon events, Monitoring events and logging, Google Calendar Feed, Oslo Public Transport, YR Weather - contributed by Torkild Retvedt
Fixes
- Fixed a bug that gave a spurious “text widget not found” error
Breaking Changes
- App configuration is now separate from AppDaemon, HASS and HADashboard configuration
- The Widget API has changed to accommodate different event types and now needs an
action
parameter to specify what the event type to be listened for is