Announcement - HADashboard v2 Beta 2!

Actually no; iframes just display what you give them. Without a lot of CSS, they don’t naturally resize the content to fit.

If you use the img variant instead of url it appears to do the resize for you, but it has to be a valid image type.

Do you have to add the google resizer as a prefix to the URL or is that now built in?

I have a camera coming tomorrow (unless Stella messes up the delivery timeframe)…Planned on using zoneminder (its an indoor foscam) unless there is a better option for use with HA.

1 Like

Which server do I install on or does it matter? HA is on one server ADWeb is on another… I would like to be able to get to both.

you can do either but I have found it to be unnecessary when I moved to the img variant, so I stopped using it.

1 Like

Ok tried to install Beta2 seems to be running from the command line, but getting the following error when runing from init.d (yeah still using init style system)

2017-03-13 19:47:07.347115 INFO AppDaemon Version 2.0.0beta2 starting
2017-03-13 19:47:07.347512 INFO Apps are disabled
2017-03-13 19:47:12.518999 INFO Got initial state
2017-03-13 19:47:12.519768 INFO Starting dashboard
2017-03-13 19:47:12.527880 WARNING ------------------------------------------------------------
2017-03-13 19:47:12.528355 WARNING Unexpected error in dashboard thread
2017-03-13 19:47:12.528617 WARNING ------------------------------------------------------------
2017-03-13 19:47:12.531173 WARNING Traceback (most recent call last):
  File "/var/opt/homeassistant/appdaemon/appdaemon/appdash.py", line 243, in run_dash
    srv = loop.run_until_complete(f)
  File "/usr/lib/python3.4/asyncio/base_events.py", line 304, in run_until_complete
    self.run_forever()
  File "/usr/lib/python3.4/asyncio/base_events.py", line 276, in run_forever
    self._run_once()
  File "/usr/lib/python3.4/asyncio/base_events.py", line 1136, in _run_once
    event_list = self._selector.select(timeout)
  File "/usr/lib/python3.4/selectors.py", line 432, in select
    fd_event_list = self._epoll.poll(timeout, max_ev)
OSError: [Errno 22] Invalid argument

2017-03-13 19:47:12.531626 WARNING ------------------------------------------------------------
2017-03-13 19:47:12.536033 INFO Connected to Home Assistant 0.37.1 

Can’t seem to figure out what is the invalid in the arguments…
Using the “stock” appdaemon start file from the scripts directory …

#!/bin/bash
# APPDAEMON Service
# Add this file to /etc/init.d/
# $ sudo cp appdaemon /etc/init.d/
# Update variables PATH to suit your installation
# $ sudo nano /etc/init.d/appdaemon
# Make executable
# $ sudo chmod 755 /etc/init.d/appdaemon
# Update rc.d
# $ sudo update-rc.d appdaemon defaults
# APPDAEMON will start at boot. Check out the boot log for trouble shooting "/var/log/boot.log"
# USAGE: start|stop|status|logs

### BEGIN INIT INFO
# Provides:          appdaemon
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable service provided by daemon.
### END INIT INFO

set -e

# Must be a valid filename
NAME=appdaemon
APPDAEMON_DIR=/var/opt/homeassistant/appdaemon
DAEMON=/usr/local/bin/appdaemon
PIDFILE="$APPDAEMON_DIR/$NAME.pid"
CFGFILE="$APPDAEMON_DIR/conf"
DAEMON_OPTS="-d -p $PIDFILE -c $CFGFILE"

export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

case "$1" in
  start)
    echo -n "Starting daemon: "$NAME
    start-stop-daemon --start --quiet --chdir $APPDAEMON_DIR --exec $DAEMON -- $DAEMON_OPTS
    echo "."
  ;;
  stop)
    echo -n "Stopping daemon: "$NAME
    start-stop-daemon --stop --quiet --signal 9 --oknodo --pidfile $PIDFILE
    echo "."
  ;;
  restart)
    echo -n "Restarting daemon: "$NAME
    start-stop-daemon --stop --quiet --signal 9 --oknodo --retry 30 --pidfile $PIDFILE
    start-stop-daemon --start --quiet --chdir $APPDAEMON_DIR --exec $DAEMON -- $DAEMON_OPTS
    echo "."
  ;;
  logs)
    echo "See the logs of the Dashing."
    tail -f $APPDAEMON_DIR'log/thin.log'
  ;;

  *)
  echo "Usage: "$1" {start|stop|restart}"
  exit 1
esac

exit 0 

It is a standard 64bit ubuntu install, no virtual anything.
What am I overlooking?

tom

Not sure, that is a weird one. Does it run OK from the command line?

Are you running it from github or did you install the full thing?

Someone mentioned cover icons - these ones are nice, and MIT licensed

1 Like

Widget request/question. I have a case where I have some Harmony remote modes, HASS tracks them as an input_select. In Dashboard I’m using a mode widget. Each input_select option has a widget, with the intention of that widget being a toggle. If it’s not in that state, switch to it. If it is already in that state (lit), it would act as the PowerOff option. So there’s some scripts setup to handle that toggle, the scripts are listed on each widget

It works great to turn “on” that option, but it doesn’t fire to turn it “off”. Can I petition to add this into mode.yaml next release so it acts as a toggle, or maybe a split script_on/script_off thing is needed in case people want different scripts? This mod works great for my needs (now more like a toggle). Or maybe there’s another way to go about doing this!

post_service_inactive:
    service: script/turn_on
    entity_id: {{script}}

Should buttons within an iframe work? I have an iframe which uses the link http://media:9000/status_header.html?player=00:04:20:22:86:8f to access my squeezebox. However none of the buttons like volume, pause etc do anything when I click with a mouse. Using firefox.

Is there maybe an error with the climate widget? With the below configuration I get an error “WARNING Widget type not found: text” in my log

climate:
    entity: climate.woonkamer
    title: woonkamer
layout:
    - climate

Already tried the following but with the same result:

climate:
    entity: climate.woonkamer
    title: woonkamer
layout:
    - climate_woonkamer

you forgot

type: climate
and probably you should chose another title.

woonkamer:
    type: climate
    entity: climate.woonkamer
    title: woonkamer
layout:
    - woonkamer

only this:

layout:
  - climate.woonkamer

would work also

ah! cool. was wondering … but time and weather is shwowing up correctly

This is external acces to dashboard

same issue here, dont know if this is by design or not.

This was a bug in Beta2 - will be fixed in the next version.

Should be widget_type but Rene figured out the issue.

1 Like

Show me your config and I can explain why that is.

I think you could probably use a switch to do this if you set some extra secret parameters :slight_smile: In fact, at the widget level you can override anything in the .yaml file so you don’t need to edit it directly.

post_service_active:
    service: script/turn_on
    entity_id: script.turn_it_on
post_service_inactive:
    service: script/turn_on
    entity_id: script.turn_it_off

This would fire the scripts, but would not affect the input_select, so you would need to add code to the script to set the input_select appropriately.

Let me know if that works :slight_smile: