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, without the
http://
orhttps://
protocol, for exampleyour.awesome.home
. - For the Port, enter the appropriate port:
- If you've made no port changes and access Home Assistant at
http://
, keep the default of8123
. - If you've made no port changes and access Home Assistant at
https://
, enter443
. - If you've configured Home Assistant to use a specific port, enter that port.
- If you've made no port changes and access Home Assistant at
- 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 you access your home assistant UI using
https://
instead ofhttp://
.