Dashboard help

can someone please help me with this i do not know what is going on with this every time i go and fix on thing another thing pops up preventing the dash from being created. it was working yesterday but it has stopped working today

title: Dorm
widget_dimensions: [125, 145]
widget_size: [1, 1]
widget_margins: [5, 10]
columns: 6
global_parameters:
    use_comma: 0
    precision: 1
    use_hass_icon: 1
away: 
    entity:script.1548212477606
    icon_on:mdi-home-lock
    icon_off:mdi-home-lock
    #icon_style_active:"color: red; font-size: 500%; margin-top: -10px;"
    #icon_style_inactive:"color: black; font-size: 500%; margin-top: -10px;"
    title: Away
    title_style:"color: grey"
    widget_style:"background-color: black"
    widget_type:s cript
clock:
    date_style:"color: grey"
    time_style:"color: blue"
    widget_style:"background: black"
    widget_type: clock
fans_on 
    entity:script.1548210809889
    icon_on:mdi-fan
    icon_off:mdi-fan
    #icon_style_active:
    #icon_style_inactive: 
    title: Fans on
    title_style:"color: black"
    widget_style:"background-color: #292929"
    widget_type: script
fans_off:
    entity:script.1548210857253
    icon_on:mdi-fan-off
    icon_off:mdi-fan-off
    #icon_style_active:
    #icon_style_inactive: 
    title: Fans off
    title_style:"color: black"
    widget_style:"background-color: #292929"
    widget_type: script
google:
    entity:media_player.zacs_room_mini
    title: Google Home Speaker
    title_style:"color: black"
    widget_style:"background-color: #292929"
    widget_type:media_player
home:
    entity:script.1548212099040
    icon_on:mdi-home-lock-open
    icon_off:mdi-home-lock-open
    icon_style_active:"color: black; font-size: 500%; margin-top: -10px;"
    icon_style_inactive:"color: green; font-size: 500%; margin-top: -10px;"
    title:Home
    title_style:"color: grey"
    widget_style:"background-color: black"
    widget_type:script
lamp_on:
    entity:script.1548209227920
    icon_on:mdi-lightbulb-on
    icon_off:mdi-lightbulb-on
    #icon_style_active: 
    #icon_style_inactive: 
    title:Lamp on
    title_style:"color: black"
    widget_style:"background-color: #292929"
    widget_type:script
lamp_off:
    entity:script.1548209299323
    icon_on:mdi-lightbulb-outline
    icon_off:mdi-lightbulb-outline
    #icon_style_active:
    #icon_style_inactive: 
    title:Lamp off
    title_style:"color: black"
    widget_style:"background-color: #292929"
    widget_type:script
weather:
    widget_type:sensor
    title:Temperature
    entity:sensor.dark_sky_temperature
3D_printers_on:
    entity:script.1548211117830
    icon_on:mdi-printer-3d
    icon_off:mdi-printer-3d
    #icon_style_active:
    #icon_style_inactive: 
    title:3D Printers on
    title_style:"color: black"
    widget_style:"background-color: #292929"
    widget_type:script
3D_printers_off:
    entity:script.1548211163102
    icon_on:mdi-printer-3d
    icon_off:mdi-printer-3d
    #icon_style_active:
    #icon_style_inactive:  
    title: 3D Printers off
    title_style:"color: black"
    widget_style:"background-color: #292929"
    widget_type:script
layout:
    - clock(2x1), weather, home, away
    - fans_on, lamp_on, 3D_printers_on, google(2x2)
    - fans_off, lamp_off, 3D_printers_off

sorry, but noone is able to help you if you dont show your yaml as codeblock as shown above every forum.
if you present the yaml as code i am happy to help.

and it is helpfull if you say what you mean with not working.

1 Like

still no readable yaml

at the top of the forum is this link

nope still no codeblock.
just look at how it should look

3D_printers_off:
    entity:script.1548211163102
    icon_on:mdi-printer-3d
    icon_off:mdi-printer-3d
    #icon_style_active:
    #icon_style_inactive:
    title: 3D Printers off
    title_style:"color: black"

and edit your previous postings untill it looks like that.

you need the sign
`
3 times on an empty line before and after your code

okay sorry now i got it on the 3rd time lol i edited the original one

Actually change that i went to look under the log and i found this i am new to coding and i do not understand what any of this means and i do not understand why i was working fine and just stopped working.

2019-01-22 22:04:08.608504 INFO Compiling dashboard 'Dormroom'
2019-01-22 22:04:09.151469 WARNING Error while parsing dashboard '/config/appdaemon/dashboards/Dormroom.dash':
2019-01-22 22:04:09.152007 WARNING parser says
2019-01-22 22:04:09.152604 WARNING   in "<unicode string>", line 26, column 11:
        entity:
              ^
2019-01-22 22:04:09.153083 WARNING could not find expected ':' while scanning a simple key
2019-01-22 22:04:09.608758 INFO function [get_dashboard] finished in 1023 ms
2019-01-22 22:04:30.756647 INFO Compiling dashboard 'Dormroom'
2019-01-22 22:04:31.318159 WARNING Error while parsing dashboard '/config/appdaemon/dashboards/Dormroom.dash':
2019-01-22 22:04:31.318721 WARNING parser says
2019-01-22 22:04:31.319495 WARNING   in "<unicode string>", line 26, column 11:
        entity: script.1548210809889
              ^
2019-01-22 22:04:31.320082 WARNING could not find expected ':' while scanning a simple key
2019-01-22 22:04:31.777242 INFO function [get_dashboard] finished in 1043 ms
2019-01-22 22:06:44.300415 INFO Compiling dashboard 'Dormroom'
2019-01-22 22:06:44.821258 WARNING Error while parsing dashboard '/config/appdaemon/dashboards/Dormroom.dash':
2019-01-22 22:06:44.821781 WARNING parser says
2019-01-22 22:06:44.822628 WARNING   in "<unicode string>", line 12, column 12:
        icon_on: mdi-home-lock
               ^
2019-01-22 22:06:44.823328 WARNING mapping values are not allowed here
2019-01-22 22:06:45.275566 INFO function [get_dashboard] finished in 997 ms
2019-01-22 22:07:45.343234 INFO function [get_dashboard] finished in 105 ms
2019-01-22 22:07:45.635537 INFO HADashboard: New dashboard connected: HADashboard
2019-01-22 22:07:53.925449 INFO Compiling dashboard 'Dormroom'
2019-01-22 22:07:54.450108 WARNING Error while parsing dashboard '/config/appdaemon/dashboards/Dormroom.dash':
2019-01-22 22:07:54.450817 WARNING parser says
2019-01-22 22:07:54.451710 WARNING   in "<unicode string>", line 12, column 12:
        icon_on: mdi-home-lock
               ^
2019-01-22 22:07:54.452388 WARNING mapping values are not allowed here
2019-01-22 22:07:54.896696 INFO function [get_dashboard] finished in 997 ms
2019-01-22 22:07:54.907133 INFO HADashboard: Dashboard disconnected
2019-01-22 22:08:29.693528 INFO Compiling dashboard 'Dormroom'
2019-01-22 22:08:30.253516 WARNING Error while parsing dashboard '/config/appdaemon/dashboards/Dormroom.dash':
2019-01-22 22:08:30.254847 WARNING parser says
2019-01-22 22:08:30.256401 WARNING   in "<unicode string>", line 14, column 22:
        icon_style_active: "color: red; font-size: 500%;  ... 
                         ^
2019-01-22 22:08:30.258243 WARNING mapping values are not allowed here
2019-01-22 22:08:30.709924 INFO function [get_dashboard] finished in 1042 ms
2019-01-22 22:11:25.663176 INFO Compiling dashboard 'Dormroom'
2019-01-22 22:11:26.204280 WARNING Error while parsing dashboard '/config/appdaemon/dashboards/Dormroom.dash':
2019-01-22 22:11:26.204814 WARNING parser says
2019-01-22 22:11:26.205753 WARNING   in "<unicode string>", line 14, column 29:
        icon_style_active:"color: red; font-size: 500%; margin-t ... 
                                ^
2019-01-22 22:11:26.206430 WARNING mapping values are not allowed here
2019-01-22 22:11:26.661559 INFO function [get_dashboard] finished in 1018 ms
2019-01-22 22:12:12.682482 INFO Compiling dashboard 'Dormroom'
2019-01-22 22:12:13.209200 WARNING Error while parsing dashboard '/config/appdaemon/dashboards/Dormroom.dash':
2019-01-22 22:12:13.209894 WARNING parser says
2019-01-22 22:12:13.210709 WARNING   in "<unicode string>", line 16, column 5:
        title:Away
        ^
2019-01-22 22:12:13.211359 WARNING expected <block end>, but found '<scalar>' while parsing a block mapping
2019-01-22 22:12:13.653556 INFO function [get_dashboard] finished in 993 ms
2019-01-22 22:22:11.402070 INFO Compiling dashboard 'Dormroom'
2019-01-22 22:22:11.943649 WARNING Error while parsing dashboard '/config/appdaemon/dashboards/Dormroom.dash':
2019-01-22 22:22:11.944261 WARNING parser says
2019-01-22 22:22:11.945428 WARNING   in "<unicode string>", line 16, column 5:
        title: Away
        ^
2019-01-22 22:22:11.946215 WARNING expected <block end>, but found '<block mapping start>' while parsing a block mapping
2019-01-22 22:22:12.403852 INFO function [get_dashboard] finished in 1022 ms
Fatal read error on socket transport
protocol: <RequestHandler none:none connected>
transport: <_SelectorSocketTransport fd=8 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
  File "/usr/lib/python3.6/asyncio/selector_events.py", line 727, in _read_ready
    data = self._sock.recv(self.max_size)
TimeoutError: [Errno 110] Operation timed out
2019-01-22 22:45:56.770324 INFO HADashboard: Dashboard disconnected
2019-01-23 00:43:48.921457 INFO HADashboard: New dashboard connected: Dorm
2019-01-23 00:59:59.009794 INFO HADashboard: Dashboard disconnected
Fatal read error on socket transport
protocol: <RequestHandler none:none connected>
transport: <_SelectorSocketTransport fd=8 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
  File "/usr/lib/python3.6/asyncio/selector_events.py", line 727, in _read_ready
    data = self._sock.recv(self.max_size)
OSError: [Errno 113] Host is unreachable
2019-01-23 10:17:02.203835 INFO HADashboard: Dashboard disconnected
2019-01-23 10:17:05.500053 INFO HADashboard: New dashboard connected: Dorm
2019-01-23 10:20:39.554188 INFO HADashboard: Dashboard disconnected
2019-01-23 10:24:16.116713 INFO function [get_dashboard] finished in 104 ms
2019-01-23 10:24:16.757045 INFO HADashboard: New dashboard connected: HADashboard
2019-01-23 10:24:23.469165 INFO HADashboard: Dashboard disconnected
2019-01-23 10:24:25.583564 INFO function [get_dashboard] finished in 111 ms
2019-01-23 10:24:25.852884 INFO HADashboard: New dashboard connected: HADashboard
2019-01-23 11:30:31.045740 INFO HADashboard: Dashboard disconnected
2019-01-23 19:23:59.266718 INFO HADashboard: New dashboard connected: HADashboard
2019-01-23 19:24:00.424977 INFO function [get_dashboard] finished in 104 ms
2019-01-23 19:24:00.435851 INFO HADashboard: Dashboard disconnected
2019-01-23 19:24:00.535216 INFO HADashboard: New dashboard connected: HADashboard
2019-01-23 19:24:01.681467 INFO function [get_dashboard] finished in 115 ms
2019-01-23 19:24:01.692338 INFO HADashboard: Dashboard disconnected
2019-01-23 19:24:01.782234 INFO HADashboard: New dashboard connected: HADashboard

it probably never worked fine.
you need to correct your yaml.

after a : you always need to put a space
i see things like:

widget_type:s cript

that will also break things

the logs show that you have been editing stuff and that you made errors and then saved it.
YAML is very unforgiving, when it comes to typos, using tabs instead of spaces, alignment, etc.

after you have cleaned up all code the nest way to go is to clear the logs, clear all cache (browsers), restart your devices (the one with appdaemon on it and the one you use to view dashboards) and see in the logs if you still got errors.

okay i will try that thank you

okay so after some work of going through and adding spaces and fixed some spelling i got this

Dormroom: parser says 
Dormroom: in "", line 26, column 11: entity: script.1548210809889 ^ 
Dormroom: could not find expected ':' while scanning a simple key

so inspect the lines 25 and 26 and see what there is wrong there.

i did and fixed it but quick question is there any way i can change the background of the dashboard i’ve been looking through the docs and i cannot find anything for it

that can only be done by creating a custom skin.

have you ever got this before now it stopped working again

2019-01-24 21:05:56.465111 INFO AppDaemon Version 3.0.2 starting
2019-01-24 21:05:56.465700 INFO Configuration read from: /config/appdaemon/appdaemon.yaml
2019-01-24 21:05:56.469513 INFO AppDaemon: Starting Apps
2019-01-24 21:05:56.477607 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2019-01-24 21:05:56.713195 INFO AppDaemon: HASS: HASS Plugin Initializing
2019-01-24 21:05:56.714558 INFO AppDaemon: HASS: HASS Plugin initialization complete
2019-01-24 21:05:56.715966 INFO Starting Dashboards
2019-01-24 21:05:56.735473 INFO API is disabled
2019-01-24 21:05:56.752575 INFO AppDaemon: HASS: Connected to Home Assistant 0.85.1
2019-01-24 21:05:56.938666 INFO AppDaemon: Got initial state from namespace default
2019-01-24 21:05:58.997843 INFO AppDaemon: Reading config
2019-01-24 21:05:59.009311 INFO AppDaemon: /config/appdaemon/apps/apps.yaml added or modified
2019-01-24 21:05:59.009901 INFO AppDaemon: /config/appdaemon/apps/apps.yaml added or modified
2019-01-24 21:05:59.010776 INFO AppDaemon: App 'hello_world' added
2019-01-24 21:05:59.015786 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2019-01-24 21:05:59.017874 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/hello.py
2019-01-24 21:05:59.158099 INFO AppDaemon: Initializing app hello_world using class HelloWorld from module hello
2019-01-24 21:05:59.423408 INFO hello_world: Hello from AppDaemon
2019-01-24 21:05:59.427403 INFO hello_world: You are now ready to run Apps!
2019-01-24 21:05:59.429309 INFO AppDaemon: App initialization complete
2019-01-24 21:06:00.716712 INFO Compiling dashboard 'Dormroom'
2019-01-24 21:06:01.557739 WARNING ------------------------------------------------------------
2019-01-24 21:06:01.558283 WARNING Unexpected error during DASH creation
2019-01-24 21:06:01.558730 WARNING ------------------------------------------------------------
2019-01-24 21:06:01.561676 WARNING Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/appdaemon/dashboard.py", line 818, in get_dashboard
    dash = self._conditional_compile(name, skin, recompile)
  File "/usr/lib/python3.6/site-packages/appdaemon/dashboard.py", line 770, in _conditional_compile
    dash = self._get_dash(name, skin, skindir)
  File "/usr/lib/python3.6/site-packages/appdaemon/dashboard.py", line 573, in _get_dash
    dash = self._create_dash(name, css_vars)
  File "/usr/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/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/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/lib/python3.6/site-packages/appdaemon/dashboard.py", line 362, in _load_widget
    final_widget["static_css"][key] = final_widget["static_css"][key] + ";" + instantiated_widget[key]
TypeError: must be str, not NoneType
2019-01-24 21:06:01.562181 WARNING ------------------------------------------------------------
2019-01-24 21:06:01.563059 INFO function [get_dashboard] finished in 870 ms
Error handling request
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 416, in start
    resp = yield from self._request_handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web.py", line 325, in _handle
    resp = yield from handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 93, in impl
    return (yield from handler(request))
  File "/usr/lib/python3.6/site-packages/appdaemon/rundash.py", line 51, in wrapper
    return await myfunc(*args)
  File "/usr/lib/python3.6/site-packages/appdaemon/rundash.py", line 269, in load_dash
    return web.Response(text=response, content_type="text/html")
  File "/usr/lib/python3.6/site-packages/aiohttp/web_response.py", line 471, in __init__
    type(text))
TypeError: text argument must be str (<class 'dict'>)

with the

500 Internal Server Error

you probably have extra spaces in front of a line somewhere.