After appdaemon upgrade dashboard is broken

Hello,

I did the appdaemon 3 upgrade (without noticing at first).
I had to fix some stuff in appdaemon.yaml to make my dashboard load again. HADashboard is loading but all the widgets are displaying “entity not found”.
Appdaemon log seems fine:

Mar 20 22:27:00 raspberrypi appdaemon[391]: 2018-03-20 22:27:00.686955 INFO function [get_dashboard] finished in 115 ms
Mar 20 22:27:00 raspberrypi appdaemon[391]: 2018-03-20 22:27:00.885123 WARNING AppDaemon: Unknown namespace: undefined
Mar 20 22:27:00 raspberrypi appdaemon[391]: 2018-03-20 22:27:00.889936 WARNING AppDaemon: Unknown namespace: undefined
Mar 20 22:27:00 raspberrypi appdaemon[391]: 2018-03-20 22:27:00.894877 WARNING AppDaemon: Unknown namespace: undefined
Mar 20 22:27:00 raspberrypi appdaemon[391]: 2018-03-20 22:27:00.899595 WARNING AppDaemon: Unknown namespace: undefined
Mar 20 22:27:00 raspberrypi appdaemon[391]: 2018-03-20 22:27:00.904890 WARNING AppDaemon: Unknown namespace: undefined
Mar 20 22:27:00 raspberrypi appdaemon[391]: 2018-03-20 22:27:00.908841 WARNING AppDaemon: Unknown namespace: undefined
Mar 20 22:27:00 raspberrypi appdaemon[391]: 2018-03-20 22:27:00.914238 WARNING AppDaemon: Unknown namespace: undefined
Mar 20 22:27:00 raspberrypi appdaemon[391]: 2018-03-20 22:27:00.918262 WARNING AppDaemon: Unknown namespace: undefined
Mar 20 22:27:00 raspberrypi appdaemon[391]: 2018-03-20 22:27:00.928642 INFO HADashboard: New dashboard connected: HADashboard

My dashboard has nothing fancy (part of the .dash file below):

lampadaire:
title: Lampadaire
widget_type: light_with_brightness
entity: light.leviton_dzpd31lw_plugin_dimming_lamp_module_level
icon_on: mdi-lightbulb-on
icon_off: mdi-lightbulb

mouvement:
title: Détection Mouvement
widget_type: input_boolean
entity: input_boolean.pir_status
icon_on: fa-toggle-on
icon_off: fa-toggle-off

layout:
- bureau,chambre,light.leviton_dzpd31lw_plugin_dimming_lamp_module_level,spacer,spacer,spacer,spacer,alycia_presence
- spacer, commode, guirlande, lampadaire
- spacer, mouvement

I’m not sure what to or where to look for.

Thank you for your help.

JP

J’ai eu le même problème mais 1 restart complet (par le menu de HA/hass.io/system) a tout réglé pour moi :confused:

Tu as quand même plusieurs lignes de “Warning” so je dirais pas que t’es log sont fine

j’ai bien sur fait un reboot complet (plusieurs fois). Le warning concerne le namespace qui est optionel selon la documentation.

Translation: I did of course several reboots. And the warning message is about the namespace option which is “optional” according the documentation.

after adding namespace in conf:

appdaemon:
disable_apps: 1
logfile: STDOUT
errorfile: STDERR
threads: 10
api_port: 5000
time_zone: America/Montreal
plugins:
HASS:
type: hass
ha_url: https://ha.mydomain.com
namespace: default

I still get the same warning:

2018-03-20 23:48:10.971505 INFO AppDaemon Version 3.0.0 starting
2018-03-20 23:48:10.972200 INFO Configuration read from: /home/homeassistant/conf/appdaemon.yaml
2018-03-20 23:48:10.974102 INFO AppDaemon: Starting Apps
2018-03-20 23:48:10.979712 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-03-20 23:48:11.014772 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-03-20 23:48:11.015883 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-03-20 23:48:11.016718 INFO Starting Dashboards
2018-03-20 23:48:11.029613 INFO Starting API
2018-03-20 23:48:11.190779 INFO AppDaemon: HASS: Connected to Home Assistant 0.65.5
2018-03-20 23:48:11.579811 INFO AppDaemon: Got initial state from namespace default
2018-03-20 23:48:13.385217 INFO AppDaemon: Adding /home/homeassistant/conf/apps to module import path
2018-03-20 23:48:13.387324 INFO AppDaemon: App initialization complete
2018-03-20 23:48:37.133266 WARNING AppDaemon: Unknown namespace: undefined
2018-03-20 23:48:37.136952 WARNING AppDaemon: Unknown namespace: undefined
2018-03-20 23:48:37.140367 WARNING AppDaemon: Unknown namespace: undefined
2018-03-20 23:48:37.143720 WARNING AppDaemon: Unknown namespace: undefined
2018-03-20 23:48:37.147121 WARNING AppDaemon: Unknown namespace: undefined
2018-03-20 23:48:37.150461 WARNING AppDaemon: Unknown namespace: undefined
2018-03-20 23:48:37.153962 WARNING AppDaemon: Unknown namespace: undefined
2018-03-20 23:48:37.157303 WARNING AppDaemon: Unknown namespace: undefined

please show your complete appdaemon.yaml as codeblock (that way we can see how it really looks)

Here you go:

log:
  accessfile: /home/homeassistant/conf/logs/access.log
  errorfile: /home/homeassistant/conf/logs/error.log
  logfile: /home/homeassistant/conf/logs/appdaemon.log
  log_generations: 3
  log_size: 1000000
appdaemon:
  disable_apps: 1
  logfile: STDOUT
  errorfile: STDERR
  threads: 10
  api_port: 5000
  time_zone: America/Montreal
  plugins:
    HASS:
      type: hass
      ha_url: https://ha.mydomain.com
      namespace: default
hadashboard:
  dash_url: http://192.168.1.12:5050

there are a few lines that you dont need:

  logfile: STDOUT
  errorfile: STDERR
  api_port: 5000 (unless you want to reach AD from other programms)
      namespace: default (should not be neccesary)

do you use a (custom) skin?
do you use custom widgets?

to make sure that appdaemon is running correct please create a new dashboard with only 1 existing sensor and default options like:

title: Actions log
widget_dimensions: [120, 120]
widget_size: [1,1]
widget_margins: [10, 10]
columns: 5
layout:
  - sensor.yoursensor

and open that without a skin in google chrome (on a pc)
check for errors afterwards.

I don’t have custom skin and I removed all custom widgets after upgrading appdaemon. I will try to create a new dashboard later today when I’ll be back home.

I think this may be a caching issue after a quick look through the code - can you try clearing your browser cache as well?

1 Like

I did this and it worked. Strange thing is went I went back to my original dashboard it was working too!
So I guess some black magic involved… thank you for your time and help.

Is the light_with_brightness still a custom widget ?

1 Like

yes it is.

is not black magic, is my white magic :wink:

1 Like