Appdaemon getting started

Hi I am running app daemon 3
this my yaml basic configuration

secrets: /config/secrets.yaml
log:
  logfile: STDOUT
  errorfile: STDERR
appdaemon:
  threads: 10
  app_dir: /config/appdaemon/apps
  plugins:
    HASS:
      type: hass
      ha_url: http://10.0.1.36:8123
      token: a059deb30b1945a5ab4bfc9b9db9fec466e1887f4d910021ed1c34b3b5288885
hadashboard:
  dash_url: http://10.0.1.36:5050

dash_dir: /config/appdaemon/dashboards

I keep getting this error

2018-12-16 17:31:28.163553 INFO AppDaemon Version 3.0.2 starting
2018-12-16 17:31:28.164420 INFO Configuration read from: /config/appdaemon/appdaemon.yaml
2018-12-16 17:31:28.170089 INFO AppDaemon: Starting Apps
2018-12-16 17:31:28.178989 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-12-16 17:31:28.454570 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-12-16 17:31:28.456530 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-12-16 17:31:28.458453 INFO Starting Dashboards
2018-12-16 17:31:28.885568 INFO API is disabled
2018-12-16 17:31:28.910253 INFO AppDaemon: HASS: Connected to Home Assistant 0.80.3
2018-12-16 17:31:28.922972 WARNING AppDaemon: HASS: Error in authentication
2018-12-16 17:31:28.924345 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-12-16 17:31:33.942573 INFO AppDaemon: HASS: Connected to Home Assistant 0.80.3
2018-12-16 17:31:33.973558 WARNING AppDaemon: HASS: Error in authentication
2018-12-16 17:31:33.976133 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds

can you connect to home assistant when you put this url in a browser?
is the token a long lived token? seems a bit short.
and do you have ssl in HA?
or a set DNS?

HI,
I was able to connect and get it to work. for one panel with sensors and temerature etc…
now I am trying to add a camera on another panel but was not able to. could someone tell me what is wrong with this code:

error is:

camera: Error while parsing dashboard ‘/config/appdaemon/dashboards/camera.dash’:
camera: parser says
camera: in “”, line 21, column 1: ^
camera: found character ‘\t’ that cannot start any token while scanning for the next token

#
# Main arguments, all optional
#
title: Main Panel
widget_dimensions: [122, 120]
widget_margins: [5, 5]
columns: 8
#
# Layout
#    
layout:
    - clock(2x1), weather(2x2), garage(2x1)


clock:
    widget_type: clock

weather:
    widget_type: weather
    units: "°F"
	
garage:
    widget_type: camera
    title: office
    entity_picture: http://10.0.1.36:8123/api/camera_proxy/camera.hikvision_cam_1?api_password=MYpassword
	
reload:
    widget_type: reload
    title: Reload

it seems to me that your editor didnt translate the password you did replace with MYpassword correct.
is it possible you have strange characters in there?

I copied and passed the link with my real password on the web and it gave me an image. So I believe the link is correct.

Any other suggestion. Or is their a way to get live feed from the camera. Thanks.

You have a tab character instead of spaces in your yaml file.

1 Like

thanks man it worked

1 Like