Home Assistant credentials#
You can use these credentials to authenticate the following nodes:
Supported authentication methods#
- API access token
Related resources#
Refer to Home Assistant's API documentation for more information about the service.
Using API access token#
To configure this credential, you'll need to Install Home Assistant, create a Home Assistant account, and have:
- Your Host
- The Port
- A Long-Lived Access Token
To generate an access token and set up the credential:
- To generate your Access Token, log in to Home Assistant and open your User profile.
- In the Long-Lived Access Tokens section, generate a new token.
- Copy this token and enter it in n8n as your Access Token.
- Enter the URL or IP address of your Home Assistant Host, for example
https://your.awesome.home
. - For the Port, Home Assistant defaults to
8123
. If you've configured Home Assistant to use a different port, enter the correct port. - If you've enabled SSL in Home Assistant in the config.yml map key, turn on the SSL toggle in n8n. If you're not sure, it's best to turn this setting on if your Host begins with
https:
instead ofhttp:
.