vkorn / hassio-addons

Hass.io add-ons
58 stars 73 forks source link

Hadashboard Error Getting State #9

Open DankRadon opened 6 years ago

DankRadon commented 6 years ago

When I reload my dashboard I get a dialog box saying "Error getting state, check Java console for details".

It's entirely possible I have my configuration completely messed up...

appdaemon.yaml

AppDaemon:
  cert_verify: False
  disable_apps: 1
  logfile: STDOUT
  errorfile: STDERR
  threads: 10
  app_dir: /config/hadaemon/apps
HASS:
  ha_url: http://192.168.1.254:8123
HADashboard:
  dash_url: http://cp.local.io
  dash_dir: /config/hadaemon/dashboards

Add-on Options

{
  "domain": "cp.local.io"
}

Network Host 3030

Dashboard

#
# Main arguments, all optional
#
title: Main Panel
widget_dimensions: [122, 120]
widget_margins: [5, 5]
columns: 2
#
# Layout
#    
layout:
    - Back, Lamp

Back:
  widget_type: light
  title: Back
  title2: Light
  entity: light.back

Lamp:
   widget_type: light
   entity: light.living_room_lamp
   title: Lamp
awillems commented 6 years ago

I have the same problem and opened an issue on it it seems that even if we specify ha_url: http://192.168.1.254:8123 with the correct port when the js post is called it does not include the port we specified in the config and the post ends up looking like this Request URL:http://192.168.1.254/call_service instead of what it should be like this Request URL:http://192.168.1.254:8123/call_service