Announcement - HADashboard v2 Beta 2!

the only issues there are is when i ask the most impossible things from Andrew again :stuck_out_tongue:

2 Likes

You mean every day??

1 Like

l’ll be releasing Beta 3 early tomorrow

1 Like

exciting!!! one feature request … very important: Z-Wave info. ATM we have this changed in hass like this:

with entity_id like: zwave.multisensor_upstairs_8

can we PLEASE PLEASE PLEAE add this in dashboard???

Waitng excited for beta 3 … JihaAaaAA

Haven’t tried it but I am sure if you use a sensor with the entity set to zwave.whatever it will work fine.

I really can’t get this working on my Rpi3 with the AIO installer…I followed the instructions by @quadportnick here but when I try to start it I just get:

pi@raspberrypi:~/appdaemon_dashboard/appdaemon $ python3 -m appdaemon.appdaemon -c ./conf
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 20, in
from sseclient import SSEClient
ImportError: No module named ‘sseclient’

Read some more posts and commented out the line in appdaemon.py readin #from sseclient import SSEClient and tried running it again but then I get:

pi@raspberrypi:~/appdaemon_dashboard/appdaemon $ python3 -m appdaemon.appdaemon -c ./conf
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 28, in
import astral
ImportError: No module named ‘astral’

ok… doing a “pip3 install astral” should fix that but seems that my pip3 is nuts to…

pi@raspberrypi:~/appdaemon_dashboard/appdaemon $ pip3 install astral
Traceback (most recent call last):
File “/usr/bin/pip3”, line 9, in
load_entry_point(‘pip==1.5.6’, ‘console_scripts’, ‘pip3’)()
File “/usr/lib/python3/dist-packages/pkg_resources.py”, line 356, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/lib/python3/dist-packages/pkg_resources.py”, line 2476, in load_entry_point
return ep.load()
File “/usr/lib/python3/dist-packages/pkg_resources.py”, line 2190, in load
[‘name’])
File “/usr/lib/python3/dist-packages/pip/init.py”, line 74, in
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File “/usr/lib/python3/dist-packages/pip/vcs/mercurial.py”, line 9, in
from pip.download import path_to_url
File “/usr/lib/python3/dist-packages/pip/download.py”, line 25, in
from requests.compat import IncompleteRead
ImportError: cannot import name ‘IncompleteRead’

After that I’ve tried upgrading, uninstalling, reinstalling pip3 but nothing seems to help so I’m at my wits end here… any suggestions from you clever people?

–edit–
Managed to upgrade pip3 by using sudo easy_install3 -U pip, so I installed astral but still no go, now I’m getting

pi@raspberrypi:~/appdaemon_dashboard/appdaemon $ python3 -m appdaemon.appdaemon -c ./conf
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 30, in
import appdaemon.homeassistant as ha
File “/home/pi/appdaemon_dashboard/appdaemon/appdaemon/homeassistant.py”, line 9, in
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
NameError: name ‘InsecureRequestWarning’ is not defined

–edit 2–
1 in the morning now but finally got it kind of working… did all the pip3 installs in the docs (thought that was done with the docker install) and now I’m getting this (YEY!)

pi@raspberrypi:~/appdaemon_dashboard/appdaemon $ python3 -m appdaemon.appdaemon -c ./conf
2017-03-27 00:55:27.583645 INFO AppDaemon Version 2.0.0beta2 starting
2017-03-27 00:55:27.584189 INFO Apps are disabled
2017-03-27 00:55:27.609630 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2017-03-27 00:55:32.658172 WARNING Unable to connect to Home Assistant, retrying in 5 seconds

not sure why it can’t connect, this is the content of my cfg and I know it’s the correct ha_url…:

[AppDaemon]
ha_url = http://192.168.1.106:8123
logfile = STDOUT
errorfile = STDERR
dash_url = http://192.168.1.106:5050
disable_apps = 1
threads = 10
latitude =
longitude =
elevation =
time_zone =

Great!! An excuse not to work tomorrow!!! :slight_smile:

1 Like

Run it with -D DEBUG for more info.

Hmmmm mm… Which sensor are u thinking of? Binary won’t work … Mqtt neither… Maybe template sensor ?

Hadasboard widget type with the zwave entity should work.

@aimc Can you pin the aiohttp version in the requirements.txt to what HASS uses (aiohttp==1.3.5), or lower, for the next beta? As it stands now it pulls in 2.X.X and breaks things.

U mean just widget_type: zwave ?

… It’s morning for me … :joy::joy::joy::joy::joy: Just joking! (New release related “joke”

Then it gives me this

pi@raspberrypi:~/appdaemon_dashboard/appdaemon $ python3 -m appdaemon.appdaemon -c ./conf -D DEBUG 2017-03-27 09:54:26.482271 INFO AppDaemon Version 2.0.0beta2 starting
2017-03-27 09:54:26.482847 DEBUG get_ha_config()
2017-03-27 09:54:26.509933 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2017-03-27 09:54:26.510477 WARNING ------------------------------------------------------------
2017-03-27 09:54:26.510958 WARNING Unexpected error:
2017-03-27 09:54:26.511438 WARNING ------------------------------------------------------------
2017-03-27 09:54:26.522950 WARNING Traceback (most recent call last):
File “/home/pi/appdaemon_dashboard/appdaemon/appdaemon/appdaemon.py”, line 1733, in main
ha_config = ha.get_ha_config()
File “/home/pi/appdaemon_dashboard/appdaemon/appdaemon/homeassistant.py”, line 234, in get_ha_config
r.raise_for_status()
File “/usr/local/lib/python3.4/dist-packages/requests/models.py”, line 909, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: http://192.168.1.106:8123/api/config

2017-03-27 09:54:26.523586 WARNING ------------------------------------------------------------

Opening that adress in a browser gives me “401: Unauthorized”
Hmm… also get a failed loginattempt in the HA dashboard

alt text

username and password missung dude.

[AppDaemon]
ha_url = http://192.168.1.22:8123
ha_key = yourpasswordhere
logfile = STDOUT
errorfile = STDERR
threads = 10
dash_url = http://192.168.1.22:5050
disable_apps = 1
dash_force_compile = 1
# Apps
[hello_world]
module = hello
class = HelloWorld

Sweet, thanks @thundergreen I thought that was some api key it wanted!

does it work?

hm no :frowning: it seems that it can connect anyway now to HA but still throwing some errors, this time in aiohttp

2017-03-27 11:03:39.775213 INFO Got initial state
2017-03-27 11:03:39.777005 INFO Loading Module: /conf/apps/hello.py
2017-03-27 11:03:39.783609 INFO Loading Object hello_world using class HelloWorld from module hello
2017-03-27 11:03:39.969793 INFO hello_world: Hello from AppDaemon
2017-03-27 11:03:39.973333 INFO hello_world: You are now ready to run Apps!
2017-03-27 11:03:39.973801 INFO App initialization complete
2017-03-27 11:03:39.974918 INFO Starting dashboard
2017-03-27 11:03:39.996032 INFO Connected to Home Assistant 0.41.0
2017-03-27 11:03:40.010437 WARNING ------------------------------------------------------------
2017-03-27 11:03:40.010912 WARNING Unexpected error in dashboard thread
2017-03-27 11:03:40.011251 WARNING ------------------------------------------------------------
2017-03-27 11:03:40.022549 WARNING Traceback (most recent call last):
  File "/usr/src/app/appdaemon/appdash.py", line 241, in run_dash
    handler = app.make_handler()
  File "/usr/local/lib/python3.4/site-packages/aiohttp/web.py", line 224, in make_handler
    self._set_loop(loop)
  File "/usr/local/lib/python3.4/site-packages/aiohttp/web.py", line 110, in _set_loop
    loop = asyncio.get_event_loop()
  File "/usr/local/lib/python3.4/asyncio/events.py", line 626, in get_event_loop
    return get_event_loop_policy().get_event_loop()
  File "/usr/local/lib/python3.4/asyncio/events.py", line 572, in get_event_loop
    % threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'Thread-12'.

2017-03-27 11:03:40.023026 WARNING ------------------------------------------------------------

And trying to connect to the ip:5050 gives me a ERR_CONNECTION_REFUSED

try another port :slight_smile: but give me a sec… I will watch something … it look fine so far … it is connected to hass but dashboard wont start correctly

try first: pip3 show aiohttp

if version is above 1.2.0 please proceed:

pip3 install aiohttp==1.2.0