Home Assistant
HTTP auth set up for Home Assistant, so a workflow can turn on a light, run a script or read a sensor through its REST API.
CategoryHTTP
Used byCall a URL node
Secret fields1
TestYes
Set it up
- In Home Assistant, open your profile, then Security › Long-lived access tokens › Create token.
- Add a Home Assistant integration with your instance's address, like your Nabu Casa URL, and the token.
- Press Test. It says which instance answered.
- In a Call a URL node, pick it and call, say,
POST /api/services/light/turn_onwith{ "entity_id": "light.porch" }.
Fields
| Field | Required | What it is |
|---|---|---|
| AddressbaseUrl | Yes | Your instance, reachable from the internet over HTTPS. |
| Access tokentoken | Yes | The long-lived token. Home Assistant only takes bearer tokens. |
Secret fields are encrypted as soon as you save them and never shown again: the console shows their last four characters so you can tell which one is saved. Replace one to rotate it; workflows pick up the new one on their next step.
Test it
Calls /api/config, which needs a valid token, and shows the instance's name.
Problems you might see
| Code | Means |
|---|---|
INTEGRATION_AUTH_FAILED | Home Assistant refused the token. |
INTEGRATION_UNREACHABLE | The address can't be reached from the internet. |
Codes starting INTEGRATION_ come from saving or testing. Every other integration code is on the error codes page.