Skip to content

Home Assistant credentials#

You can use these credentials to authenticate the following nodes:

Supported authentication methods#

  • API access token

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:

  1. To generate your Access Token, log in to Home Assistant and open your User profile.
  2. In the Long-Lived Access Tokens section, generate a new token.
  3. Copy this token and enter it in n8n as your Access Token.
  4. Enter the URL or IP address of your Home Assistant Host, for example https://your.awesome.home.
  5. For the Port, Home Assistant defaults to 8123. If you've configured Home Assistant to use a different port, enter the correct port.
  6. 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 of http:.