Skip to content

how to use --api-token? #148

@rccoleman

Description

@rccoleman

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions