Announcement: HADasboard beta4 - Release Candidate!

It’s been a while, work and other real life things have kept me busy but I am happy to announce availability of the 4th and final beta for HADashboard! My plan is, if all is well, to make this code base the real v2 and end the beta process since HADashboard v2 now does everything that v1 did and more.

For new users, the installation instructions remain the same as in the original thread.

There is one additional step:

$ pip3 install feedparser

This is necessary for a fresh install and for an upgrade.

If you have already installed HADashboard, to grab the new version just run:

$ git pull origin

from your repository root, e.g. <base_path>/appdaemon_dashboard/appdaemon if you followed the original install.

If you are running directly from the repository as per the instructions, a simple restart should be all that is needed. If you ran the full install you will need to do the following:

$ sudo pip3 uninstall appdaemon
$ sudo pip3 install .

(note the period at the end)

If you are using docker, rerun the steps to create a new docker image.

We have quite a few additions in this version - the biggest change is that I am moving from the cfg style of configuration to yaml. This is for consistency, and also provides far greater flexibility in providing complex parameters to apps. But never fear, I also included an automatic conversion tool, and for now the older cfg style is still supported, although moving forward it may not support specific new features added to the dashboard and AppDaemon.

One Caveat on the media player: I have a Sonos system and it works well for that, however there is a lot of variance in the ways that different media players operate and it will probably take some troubleshooting and a few iterations to make this work well in all cases, especially for players I can’t test against.

Take a look and let me know in this thread of any issues or questions.

2.0.0beta4

Features

  • Migrate timer thread to async
  • Add option to turn off verification for self signed certs (contributed by janwh)
  • AppDaemon configuration now uses YAML, among other things this allows arbitarily complex nested data structures in App parameters
  • Added ability to convert from old cfg file to YAML
  • AppDaemon Apps can now publish arbitary state to other Apps and the dashboard
  • Added Gauge Widget
  • Added RSS Widget
  • Add next and previous track to media player

Fixes

  • Slider now works correctly after changes outside of HADashboard
  • Climate now works correctly after changes outside of HADashboard
  • Media player now works correctly after changes outside of HADashboard
  • ha.log now correctly dumps data structures
  • on_attributes for lights now correctly supports RGB and XY_COLOR
  • Fixed a bug in the scheduler to reduce clock skew messages

Breaking Changes

  • The cfg file style of configuration is now deprecated although it still works for now for most features
  • Argument names passed to Apps are now case sensitive
7 Likes

Everyone note the cfg conversion is not automatic. You have to initiate it. See the readme or:

appdaemon -c /opt/appdaemon-cfg --convertcfg

1 Like

Very nice update! Thank you very much :slight_smile:
I like the new media player with prev/next buttons :+1:
One question: Is it possible to change the step size of the volume up/down buttons? Plus/minus 10% is very much on the SONOS speakers. I’d like to set it to 2%, because that’s how much the SONOS volume buttons change the volume with every click.

Great!
One question: I use HASS with own certificates that are signed by my CA. I can only get Appdaemon working using SSE, websockets does not work. Even if I set cert_path to my ca-bundle. Is this a known issue?
The debug logs say it cannot verify the certificates issuer.

Thanks a lot for those wonderful update.but I miss some features like input slider or input select know by hass interface . I thought u also would work on foscam integration it did u abonden it? But before claiming around I’ll update my version and watch what is new :wink: anyway 10000000 thanks ! Great job like usual

Just updated and tried

python3 -m appdaemon.appdaemon -c /home/pi/appdaemon_dashboard/appdaemon/conf/

Got this error:

Traceback (most recent call last):
File “/usr/lib/python3.4/runpy.py”, line 170, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.4/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/pi/appdaemon_dashboard/appdaemon/appdaemon/appdaemon.py”, line 27, in
import appdaemon.appdash as appdash
File “/home/pi/appdaemon_dashboard/appdaemon/appdaemon/appdash.py”, line 10, in
import feedparser
ImportError: No module named ‘feedparser’

you need to install feedparser

pip3 install feedparser

in the same environment as you have installed appdaemon.

2 Likes

Thanks for the reminder Rene - again! I should have listened to you the first time!

1 Like

HADashboard v1 didn’t have them either - my goal is to meet and exceed what is in v1 and move foprward from there. In fact a huge part of why I rebuilt this thing from scratch is to enable things like these to be more easily added - they are both on the list for after I close out the beta.

Foscam works fine with the HA integration, I have one myself.

I can add this as an option,

I will be looking into this after the beta.

In my case I have this error

Traceback (most recent call last):
File “/usr/lib/python3.4/runpy.py”, line 170, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.4/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/pi/appdaemon_dashboard/appdaemon/appdaemon/appdaemon.py”, line 1807, in
main()
File “/home/pi/appdaemon_dashboard/appdaemon/appdaemon/appdaemon.py”, line 1570, in main
conf.dash_url = config[‘HADashboard’].get(“dash_url”)

add the following to your appdaemon.yaml
HADashboard:
dash_url: http://dash_url:5050

My appdaemon.yaml:

AppDaemon:
logfile: STDOUT
errorfile: STDERR
threads: 10
HASS:
ha_url: http://192.168.0.26:8123
ha_key: MyPassword
dash_url: http://192.168.0.26:3030

hello_world:
module: hello
class: HelloWorld

I’ve tried to replace the port 3030 to 5050 as yo mentioned, but same error :frowning:

for the moment i use switches to turn /& zoom and use preset location for the cam. works nice so far . Do u know tiny cam? was thinking about something like this for controlling the cam.

One question left: What’s the advantage with ONIV for foscam ? I saw new component has been released recently.

Can you add a picture on how the Gauge and RSS widget look like in action (very interesting :slight_smile: ).

i miss

dash_dir: the_path_to_your_dashboards

in your config.

@marksev1 i dont have RSS but the temperature is a gauge widget.

1 Like

Oh yeah super nice! What about a chart widget?

chart widgets are for after the beta.

1 Like

You need a new HADasboard section and the dash URL like this:

... other stuff
...
HADashboard:
  dash_url: <some URL>
1 Like

I can add that to the list but I’m not planning it for now.

Ok, I’m getting there.
But I’ve got some confusion:
The "dash_dir: " must be be the “old” hadashboard, or some thing in the new path /home/pi/appdaemon_dashboard/appdaemon/…
Because I still have an error:
2017-06-20 11:25:34.935938 INFO AppDaemon Version 2.0.0beta4 starting
2017-06-20 11:25:34.936868 INFO Configuration read from: /home/pi/appdaemon_dashboard/appdaemon/conf/appdaemon.yaml
2017-06-20 11:25:35.311352 INFO Got initial state
2017-06-20 11:25:35.313905 INFO Loading Module: /home/pi/appdaemon_dashboard/appdaemon/conf/apps/hello.py
2017-06-20 11:25:35.321083 INFO Loading Object hello_world using class HelloWorld from module hello
2017-06-20 11:25:35.644270 INFO hello_world: Hello from AppDaemon
2017-06-20 11:23:23.913953 INFO hello_world: You are now ready to run Apps!
2017-06-20 11:23:23.914655 INFO App initialization complete
2017-06-20 11:23:23.915849 INFO Starting dashboard
2017-06-20 11:23:23.953875 INFO Connected to Home Assistant 0.47.0
2017-06-20 11:23:23.972394 INFO HADashboard Started
2017-06-20 11:23:23.973411 INFO Listening on (‘192.168.0.26’, 3030)
2017-06-20 11:23:29.127344 INFO Compiling dashboard ‘events’
2017-06-20 11:23:29.730806 WARNING Dashboard ‘events’ not found
2017-06-20 11:23:29.732230 INFO function [compile_dash] finished in 718 ms
2017-06-20 11:23:46.290757 INFO Compiling dashboard ‘events’
2017-06-20 11:23:46.896132 WARNING Dashboard ‘events’ not found
2017-06-20 11:23:46.898184 INFO function [compile_dash] finished in 670 ms
2017-06-20 11:23:47.156901 INFO Compiling dashboard ‘main’
2017-06-20 11:23:47.762055 WARNING Dashboard ‘main’ not found
2017-06-20 11:23:47.763968 INFO function [compile_dash] finished in 669 ms

And the dashboard say:
Your Dashboard has the following errors:

Dashboard has errors or is not found - check log for details