when you want people to help you, you need to place code, logs and for certain YAML in codeblocks as suggested on top of the forum
the url you need to use for the plugin needs to be the same url you use in a browser to go to HASS
if you use a password in HASS then you need to set that too.
untill a few minutes ago i had never heard from vagrant, so its going to be a bit off guessing
i read the HA site about vagrant and it seems to me that its something like docker.
is there any configuration from vagrant itselve?
the reason i ask, is that appdaemon needs to go out of vagrant to go to the HA url and in docker thats needs to be configured.
the url you use probably wont work when you are on another device (a tablet, a phone or another PC)
you need an url whith what you can connect to HA with another device.
@ReneTode the vagrant bottom line is that we have a debian based virtual machine.
The box itself has port forwarding enabled so from your browser’s http://localhost:8123 you have access to the internal port 8123.
FYI, I created a similar line for port 5050.
But that’s not the problem since the appDaemon can’t really go out of the Vagrant box and use the host’s (my computer) localhost, it should use its own, which doesn’t work because:
well… I installed debian’s net-tools and from there:
$ netstat -pln
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8123 0.0.0.0:* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
udp 0 0 0.0.0.0:68 0.0.0.0:* -
setting:
ha_url: http://0.0.0.0:8123
did the trick!
2018-05-02 18:10:14.412007 INFO AppDaemon: HASS: Connected to Home Assistant 0.68.0
2018-05-02 18:10:14.413906 DEBUG AppDaemon: HASS: get_ha_config()
2018-05-02 18:10:14.414049 DEBUG AppDaemon: HASS: get_ha_config: url is http://0.0.0.0:8123/api/config
2018-05-02 18:10:14.417664 DEBUG AppDaemon: HASS: get_ha_state: url is http://0.0.0.0:8123/api/states
2018-05-02 18:10:14.420392 DEBUG AppDaemon: HASS: Got state
I also added:
hadashboard:
dash_url: http://0.0.0.0:5050
so the dashboard is indeed available on my browser @ http://localhost:5050
Now to figure out how the paths work:
ValueError: !secret used but no secrets file found
you need to have a file called secrets.yaml in the same dir as your appdaemon.yaml
thats the default.
if you want another path you need full path, so probably something from the base from your box.
@ReneTode yes, I know.
The problem with non-relative links is that they are not system agnostic.
I.e in my vagrant (dev box) they might not be in the same place as in my final (standalone) setup.