Announcement: HADashboard v2 Beta3!

When I click on the media player widget, shouldn’t it turn on the media player? It’s not.

DASHBOARD.md in the top level of the repository.

1 Like

It should, when you click on the play button …

If it isn’t can you grab logs from Home Assistant at the time you click it so I can see what is going wrong?

Thank you. Everything just got 100 times easier :smiley:

1 Like

Here is what is shows when I click on the play button in the dashboard.

17-03-27 12:04:55 INFO (MainThread) [homeassistant.components.http] Serving /api/services/media_player/media_play to 192.168.2.26 (auth: True)
17-03-27 12:04:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=media_play, service_data=entity_id=media_player.office_directv, service_call_id=1977783088-493, domain=media_player>
17-03-27 12:04:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1977783088-493>

Here is what it shows when I click on the power icon in the HA frountend

17-03-27 12:07:13 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state media_player.office_directv=playing; media_content_id=6920639, media_content_type=movie, friendly_name=Office_Directv, media_title=DIRECTV CINEMA The Screening Room, supported_features=21425, media_duration=86400, media_channel=CINE (201) @ 2017-03-27T12:07:13.718054-05:00>, entity_id=media_player.office_directv, old_state=<state media_player.office_directv=off; friendly_name=Office_Directv, supported_features=21425 @ 2017-03-26T11:51:12.924107-05:00>>
17-03-27 12:07:13 INFO (Thread-3) [homeassistant.components.device_tracker.nmap_tracker] Scanning...
17-03-27 12:07:14 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state media_player.directv_rid035642660811=playing; media_content_id=6920639, media_content_type=movie, friendly_name=DirecTV_RID-035642660811, media_title=DIRECTV CINEMA The Screening Room, supported_features=21425, media_duration=86400, media_channel=CINE (201) @ 2017-03-27T12:07:14.843835-05:00>, entity_id=media_player.directv_rid035642660811, old_state=<state media_player.directv_rid035642660811=off; friendly_name=DirecTV_RID-035642660811, supported_features=21425 @ 2017-03-26T11:52:09.636023-05:00>>

@ReneTode, How do you do the groups like this. Are they labels, or Iframes?

https://community.home-assistant.io/t/announcement-hadashboard-v2-beta-2/13610/339?u=turboc

I saw you posted the layout, but I don’t see where you defined the widgets?

There should be a call service and state change or error in both cases - I need more context in the log please.

Ok, so I figured it out:

  1. I copied Jeremy.dash to test.dash and loaded it, which worked. I removed Jeremy.dash and copied test.dash to Jeremy.dash, and that worked. It must’ve been some file-level corruption from the old SD Card.

  2. Since I’m using systemd to run my service, I had to add the dash_dir to my appdaemon.cfg file using a static path (/home/pi/appdaemon_dashboard/appdaemon/conf/dashboards) and then it worked. That took a little while to figure out using the systemd command via the CLI.

(edited to remove question, as I figured that out too!!!)

1 Like

all my widgets are placed in seperate files with the name from the entity.
for labels i use filenames like: header.eetkamer.yaml
for navigate i use names like: dashboard.gang.yaml
those are quite simple widgetdefinitions. like:

widget_type: sensor
title: Temperatuur
units: ""
precision: 1
entity: sensor.huiskamer_box_4_1
widget_style: "border-bottom-left-radius: 30px;border-bottom-right-radius: 30px"

that file is called sensor.huiskamer_box_4_1.yaml

for grouping all the work is done in the dashboardfile. just some round corners are made on widget level.

edit: if you leave the round corners alone you can create groups by putting dashboards in iframes.

This is all I get when I push the play button from the HA log file. Nothing in the AD log, or returned to stdout or stderr either.

17-03-27 13:48:08 INFO (MainThread) [homeassistant.components.http] Serving /api/services/media_player/media_play to 192.168.2.26 (auth: True)
17-03-27 13:48:08 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=media_play, service_data=entity_id=media_player.office_directv, service_call_id=1977783088-527, domain=media_player>
17-03-27 13:48:08 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1977783088-527>

If I try to change the volume while it’s off, I get the following, but I didn’t expect it to work since there isn’t anything turned on listening to it.

17-03-27 13:51:01 INFO (MainThread) [homeassistant.components.http] Serving /api/services/media_player/volume_set to 192.168.2.26 (auth: True)
17-03-27 13:51:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=volume_set, service_data=volume_level=NaN, entity_id=media_player.office_directv, service_call_id=1977783088-529, domain=media_player>
17-03-27 13:51:01 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/core.py", line 1010, in _event_to_service_call
    yield from service_handler.func(service_call)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 365, in async_service_handler
    yield from getattr(player, method['method'])(**params)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 586, in set_volume_level
    raise NotImplementedError()
NotImplementedError

zwave stuff works :slight_smile: i have to make template sensorss to extract all data then :frowning:

Looks like you got a spider on your cam, or someone broke it.

spider … thats all :stuck_out_tongue:

stange behaviour with alarm:

can’t input the code …

after update i got an error @aimc

2017-03-27 22:17:38.747198 WARNING ------------------------------------------------------------
2017-03-27 22:17:40.107985 INFO New dashboard connected: Main Panel
2017-03-27 22:17:48.402666 INFO New dashboard connected: Main Panel
2017-03-27 22:19:39.904518 INFO Loading custom skin 'lightgrey'
2017-03-27 22:19:39.968097 INFO Compiling dashboard 'dash_main_grouped_tablet'
2017-03-27 22:19:48.691715 WARNING Variable definition not found in CSS Skin variables: $sensor_text_style
2017-03-27 22:19:52.345139 WARNING ------------------------------------------------------------
2017-03-27 22:19:52.346480 WARNING Unexpected error in CSS file
2017-03-27 22:19:52.347830 WARNING ------------------------------------------------------------
2017-03-27 22:19:52.350922 WARNING Traceback (most recent call last):
  File "/home/pi/appdaemon2/appdaemon/appdaemon/appdash.py", line 86, in load_dash
    dash = dashboard.compile_dash(name, skin, skindir, request.rel_url.query)
  File "/home/pi/appdaemon2/appdaemon/appdaemon/dashboard.py", line 26, in profiled_fn
    dash = fn(*args, **kwargs)
  File "/home/pi/appdaemon2/appdaemon/appdaemon/dashboard.py", line 44, in newfunc
    result = func(*args, **kwargs)
  File "/home/pi/appdaemon2/appdaemon/appdaemon/dashboard.py", line 512, in compile_dash
    dash = get_dash(name, skin, skindir)
  File "/home/pi/appdaemon2/appdaemon/appdaemon/dashboard.py", line 587, in get_dash
    widgets = get_widgets()
  File "/home/pi/appdaemon2/appdaemon/appdaemon/dashboard.py", line 691, in get_widgets
    with open(jspath, 'r') as fd:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/appdaemon2/appdaemon/appdaemon/widgets/slider/slider.js'

2017-03-27 22:19:52.352560 WARNING ------------------------------------------------------------

i deleted all compiled files.
i see you changed naming, but i dont know where this error comes from.

Sorry to be a pest, but I’m still not asking my question right. What I want to know is how to get the light blue border on the top and right of the group shown below?

that are 4 widgets.

the label on the top, the switch left, the inputboolean and then a small label at the right.
the top label has the upper corners rounded
the small label on the right has only the right bottom corner rounded.

I think it is because your are using the same custom_css dashboard.css file.
You should add all the new stuff to it from the default dashboard.css file. For the alarm it will be all the .modalDialog stuff.

It should only be (1x1) when you click it it will show what you are seeing right now.

Ahhhhh,
I see said the blind man. I’ve been beating my head against the wall trying to figure out what you were using to enclose the widgets in and then put a header on top of it. So do you put that group of 4 into it’s own dash file and then just reference it in your layout for the larger dashboard?
Thanks
Chip

you can find it in this part of my dash:

    -                                header.radio(270x30),spacer(65x1),header.allesuit(120x30)
    - empty: 8
    -                                spacer(385x1),switch.hboog2(100x100),switch.hbank2(100x100)                                                                     
    - empty: 20
    -                                input_boolean.swr32,input_slider.radio_volume2, header.empty(30x120),spacer(65x1),input_boolean.allesuit2(120x100)

header radio, input_boolean.swr32,input_slider.radio_volume2 and header.empty

@aimc i found out where my error came from.

the empty directories slider and display (in the widgets directory) were not deleted with the update.
that results in errors.