Hi Rene,
Here is my appdaemon.yaml:
title: Main Panel
widget_dimensions: [120, 120]
widget_size: [1, 1]
widget_margins: [5, 5]
columns: 1
rows: 1
global_parameters:
use_comma: 0
precision: 1
use_hass_icon: 1
namespace: default
devices:
media_player:
step: 5
entrance_bulb:
widget_type: switch
title: Entrance
entity: switch.entrance
icon_on: fas-car
icon_off: fas-car
warn: 1
layout:
- entrance_bulb (1X1)
- I am running HA 0.83.1
- and i am not sure which appdaemon version but its the latest version from their docker repository.
here is my logs when i run the dashboard with this layout:
2018-12-02 22:08:41.258553 INFO Compiling dashboard 'main'
2018-12-02 22:08:41.336977 WARNING Unable to find widget definition for 'entrance_bulb(1X1)'
2018-12-02 22:08:41.396261 INFO function [get_dashboard] finished in 137 ms
2018-12-02 22:08:41.600018 INFO HADashboard: New dashboard connected: Main Panel
2018-12-02 22:09:23.333225 INFO HADashboard: Dashboard disconnected
2018-12-02 22:09:23.348644 INFO Compiling dashboard 'main'
and here is the output when the layout is connected directly to the entity:
appdaemon.yaml
title: Main Panel
widget_dimensions: [120, 120]
widget_size: [1, 1]
widget_margins: [5, 5]
columns: 1
rows: 1
global_parameters:
use_comma: 0
precision: 1
use_hass_icon: 1
namespace: default
devices:
media_player:
step: 5
layout:
- switch.entrance (1X1)
and the log with this case is :
2018-12-02 22:09:23.432171 WARNING ------------------------------------------------------------
2018-12-02 22:09:23.432277 WARNING Unexpected error during DASH creation
2018-12-02 22:09:23.432374 WARNING ------------------------------------------------------------
2018-12-02 22:09:23.432806 WARNING Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/appdaemon/dashboard.py", line 818, in get_dashboard
dash = self._conditional_compile(name, skin, recompile)
File "/usr/local/lib/python3.6/site-packages/appdaemon/dashboard.py", line 770, in _conditional_compile
dash = self._get_dash(name, skin, skindir)
File "/usr/local/lib/python3.6/site-packages/appdaemon/dashboard.py", line 573, in _get_dash
dash = self._create_dash(name, css_vars)
File "/usr/local/lib/python3.6/site-packages/appdaemon/dashboard.py", line 455, in _create_dash
dash, layout, occupied, includes = self._create_sub_dash(name, "dash", 0, {}, [], 1, css_vars, None)
File "/usr/local/lib/python3.6/site-packages/appdaemon/dashboard.py", line 545, in _create_sub_dash
self._add_layout(lay, layout, occupied, dash, page, includes, css_vars, global_parameters)
File "/usr/local/lib/python3.6/site-packages/appdaemon/dashboard.py", line 429, in _add_layout
widget["parameters"] = self._load_widget(dash, includes, name, css_vars, global_parameters)
File "/usr/local/lib/python3.6/site-packages/appdaemon/dashboard.py", line 338, in _load_widget
if widget_type in global_parameters["devices"]:
TypeError: argument of type 'NoneType' is not iterable
2018-12-02 22:09:23.432893 WARNING ------------------------------------------------------------
2018-12-02 22:09:23.432990 INFO function [get_dashboard] finished in 84 ms
and the web page in this case shows “500 Internal Server Error”