Have just installed HADaboard om my RP3 running Homeassistant 0.63.3
What does it mean that INFO API is disabled?
pi@hassbian:~ $ appdaemon -c /home/pi/.homeassistant/conf
2018-02-20 00:07:57.514087 INFO AppDaemon Version 2.1.12 starting
2018-02-20 00:07:57.514681 INFO Configuration read from: /home/pi/.homeassistant /conf/appdaemon.yaml
2018-02-20 00:07:57.971532 INFO Starting Apps
2018-02-20 00:07:58.270345 INFO Got initial state
2018-02-20 00:07:58.271368 INFO App initialization complete
2018-02-20 00:07:58.272086 INFO Starting dashboard
2018-02-20 00:07:58.283058 INFO API is disabled
2018-02-20 00:07:58.512439 INFO Connected to Home Assistant 0.63.3
Could that be the reason why I cant connect to the lights?
API disabled means that you didnt activate the api server. (a server that can be used to reach appdaemon from inside other programs)
API has nothing to do with the dashboard.
is there anything else in the logs?
did you set an error log in appdaemon.yaml that you can look at?
how does your complete dashboard look?
is there an error in the java console?
STDOUT and STDERR make things go to the screen or the logs from hassbian.
you can set any logfile on those place (just make sure it is on a place where appdaemon has writing rights)
if you didnt make a copy paste error then your dash_url is not a valid url.
i wanted to see what is in the dashboard file, but i think you have an error somewhere in your setup.
best way to check is this:
close appdaemon
set your logfiles so you can view and copy them:
2018-02-21 18:31:26.871449 INFO AppDaemon Version 2.1.12 starting
2018-02-21 18:31:26.874960 INFO Configuration read from: /home/pi/.homeassistant/conf/appdaemon.yaml
2018-02-21 18:31:26.892889 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 18:31:32.141268 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 18:31:37.176948 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 18:31:42.211705 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 18:31:47.250544 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 18:31:52.285669 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 18:32:04.536193 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 18:32:09.578211 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 18:32:14.921108 INFO Starting Apps
2018-02-21 18:32:15.243238 INFO Got initial state
2018-02-21 18:32:15.245194 INFO App initialization complete
2018-02-21 18:32:15.246663 INFO Starting dashboard
2018-02-21 18:32:15.265340 INFO API is disabled
2018-02-21 18:32:15.533459 INFO Connected to Home Assistant 0.63.3
2018-02-21 18:32:15.943155 INFO function [get_dashboard] finished in 160 ms
2018-02-21 18:32:16.219234 INFO New dashboard connected: Main
2018-02-21 18:32:23.876383 INFO New dashboard connected: Main Panel
2018-02-21 18:32:25.188903 INFO function [get_dashboard] finished in 76 ms
2018-02-21 18:32:25.201393 INFO Dashboard disconnected
2018-02-21 18:32:25.375213 INFO New dashboard connected: Main
unless you have setup NGINX correctly, its impossible to reach HA AND appdaemon with https.
the dash_url should be something like:
dash_url: http://your_ip:5050
nginx should redirect the outside url to that address
but lets encrypt must not be inside the ha configuration and HA should also have a local IP.
if you dont want nginx, you only can use dasjboard with local ip and then the ha_url should be without port.
I have no idea what NGINX is So I dont think it is installed
Do you have any idea what can be wrong with the lights?
I can not turn on or off the lights useing HADashboard. If I turn on or dimm the light in HA, and reload HADshboard it shows the correct status.
Looks like HADashboard can recieve but not send information.
Traceback (most recent call last):
File “/usr/local/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/local/lib/python3.5/dist-packages/appdaemon/admain.py”, line 198, in main
config.read_file(open(config_file_conf))
TypeError: invalid file: None
And appdeamon.log:
2018-02-21 22:24:20.544832 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 22:26:38.784904 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 22:28:57.024824 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
I can open HADashboard (on 10.0.0.91:5050) when I add :8123 to my ha_url. But without 8123 site cant be opend.
Next problem is that nothing happens when I try to switch on/off the lights within HADasboard.
If I set “lampe på sub” to 70% and “Gulvlampe” to 80% in HomeAssistant, and reload HADashboard it receives the correct values.
Seems like HADashboard only can receive info, but not send info to HA.
Appdeamon.log
2018-02-21 22:35:51.744858 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 22:37:00.280595 INFO AppDaemon Version 2.1.12 starting
2018-02-21 22:37:00.284010 INFO Configuration read from: /home/pi/.homeassistant/conf/appdaemon.yaml
2018-02-21 22:37:00.302899 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 22:37:05.550358 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 22:37:10.596134 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 22:37:15.630164 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 22:37:20.666574 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 22:37:25.701258 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 22:37:38.510688 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 22:37:43.556556 WARNING Unable to connect to Home Assistant, retrying in 5 seconds
2018-02-21 22:37:48.894552 INFO Starting Apps
2018-02-21 22:37:49.200096 INFO Got initial state
2018-02-21 22:37:49.201378 INFO App initialization complete
2018-02-21 22:37:49.202478 INFO Starting dashboard
2018-02-21 22:37:49.217114 INFO API is disabled
2018-02-21 22:37:49.500252 INFO Connected to Home Assistant 0.63.3
2018-02-21 22:38:07.526035 INFO function [get_dashboard] finished in 115 ms
2018-02-21 22:38:07.788917 INFO New dashboard connected: Main
2018-02-21 22:50:30.778655 INFO function [get_dashboard] finished in 128 ms
2018-02-21 22:50:30.797794 INFO Dashboard disconnected
2018-02-21 22:50:31.115983 INFO New dashboard connected: Main
2018-02-21 23:15:06.552382 INFO function [get_dashboard] finished in 113 ms
2018-02-21 23:15:06.577074 INFO Dashboard disconnected
2018-02-21 23:15:06.926655 INFO New dashboard connected: Main
2018-02-21 23:33:26.654376 INFO function [get_dashboard] finished in 134 ms
2018-02-21 23:33:26.675023 INFO Dashboard disconnected
2018-02-21 23:33:27.007037 INFO New dashboard connected: Main