I'm trying to automate command line access to the hassio CLI and I can't figure out how to use the --api-token argument. I get an error without it saying that I need to specify a token, but if I create a long-life-access-token in the UI and use it, I get a "403 Forbidden" message in hassio-cli and this in the system log:
19-03-22 19:05:09 ERROR (MainThread) [hassio.api.security] Invalid token for access /homeassistant/info
I can't find that message anywhere in the Hass code, and I've looked through all the auth sections for what could be wrong. It looks like the hassio component may require a username/password? But then I don't know how to specify that to hassio-cli.
Any pointers?
I'm trying to automate command line access to the hassio CLI and I can't figure out how to use the --api-token argument. I get an error without it saying that I need to specify a token, but if I create a long-life-access-token in the UI and use it, I get a "403 Forbidden" message in hassio-cli and this in the system log:
19-03-22 19:05:09 ERROR (MainThread) [hassio.api.security] Invalid token for access /homeassistant/infoI can't find that message anywhere in the Hass code, and I've looked through all the auth sections for what could be wrong. It looks like the hassio component may require a username/password? But then I don't know how to specify that to hassio-cli.
Any pointers?