It can happen that you run into trouble while configuring Home Assistant. Perhaps an integration is not showing up or is acting strangely. This page will discuss a few of the most common problems.
Before we dive into common issues, make sure you know where your configuration directory is. Home Assistant will print out the configuration directory it is using when starting up.
Whenever an integration or configuration option results in a warning, it will be stored inthe logs.
When an integration does not show up, many different things can be the case. Before you try any of these steps, make sure to look at thethe logs and see if there are any errors related to your integration you are trying to set up.
If you have incorrect entries in your configuration files you can use the configuration check command (below) to assist in identifying them.
One of the most common problems with Home Assistant is an invalidconfiguration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] or other configuration file.
Home Assistant provides a CLI that allows you to see how it interprets them, each installation type has its own section in the common-tasks about this:
The configuration files, includingconfiguration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] must be UTF-8 encoded. If you see error like'utf-8' codec can't decode byte, edit the offending configuration and re-save it as UTF-8.
You can verify your configuration’sYAMLYAML is a human-readable data serialization language. It is used to store and transmit data in a structured format. In Home Assistant, YAML is used for configuration, for example in theconfiguration.yaml orautomations.yaml files. [Learn more] structure usingthis online YAML parser
To learn more about the quirks ofYAMLYAML is a human-readable data serialization language. It is used to store and transmit data in a structured format. In Home Assistant, YAML is used for configuration, for example in theconfiguration.yaml orautomations.yaml files. [Learn more], readYAML IDIOSYNCRASIES
configuration.yaml does not allow multiple sections to have the same name. If you want to load multiple platforms for one integration, you can append a number or string to the name or nest them:
sensor:-platform:forecast...-platform:bitcoin...Another common problem is that a required configuration setting is missing. If this is the case, the integration will report this inthe logs. You can have a look atthe various integration pages for instructions on how to setup the integrations.
See thelogger integration for instructions on how to define the level of logging you require for specific modules.
If you find any errors or want to expand the documentation, pleaselet us know
Almost all integrations have external dependencies to communicate with your devices and services. Sometimes Home Assistant is unable to install the necessary dependencies. If this is the case, it should show up inthe logs.
The first step is trying to restart Home Assistant and see if the problem persists. If it does, look at the log to see what the error is. If you can’t figure it out, pleasereport it
It can happen that some integrations either do not work right away or stop working after Home Assistant has been running for a while. If this happens to you, pleasereport it
If you are using multiple files for your setup, make sure that the pointers are correct and the format of the files is valid. It’s important to understand the different types of!include and how the contents of each file should be structured - more information on the various methods of splitting your configuration into multiple files can be foundhere.
light:!includedevices/lights.yamlsensor:!includedevices/sensors.yamlContents oflights.yaml (notice it does not containlight:):
-platform:hyperionhost:192.168.1.98...Contents ofsensors.yaml:
-platform:mqttname:"RoomHumidity"state_topic:"room/humidity"-platform:mqttname:"DoorMotion"state_topic:"door/motion"...Whenever you report an issue, be aware that we are volunteers who do not have access to every single device in the world nor unlimited time to fix every problem out there.
The only characters valid in entity names are:
The entity name must not start or end with an underscore. If you create an entity with other characters from the UI, Home Assistant validates the name. If you change the name directly in theYAMLYAML is a human-readable data serialization language. It is used to store and transmit data in a structured format. In Home Assistant, YAML is used for configuration, for example in theconfiguration.yaml orautomations.yaml files. [Learn more] file, then Home Assistant may not generate an error for that entity. However, attempts to use that entity will generate errors (or possibly fail silently).
For instructions on how to change an entity name, refer to the section oncustomizing entities.
The first thing you will need before reporting an issue online is debug logs and diagnostics (if available) for the integration giving you trouble. Getting those ahead of time will ensure someone can help resolve your issue in the fastest possible manner.
To enable debug logging for a specific integration, follow these steps:
Select the integration for which you want to enable debug logging.
In the top right of the page, open the three dots
Screenshot showing theEnable debug logging menu item.
To see the error in the logs, you need to reproduce the error. Continue with the steps ondisabling debug logging and download logs.
Once you enable debug logging, you ideally need to make the error happen. Run your automation, change up your device or whatever was giving you an error and then come back and disable the debug logging. Disabling the debug logging is the same as enabling, but now the menu option saysDisable debug logging. After you disable it, you will be automatically prompted you to download your log file. Save this to a safe location to upload later.
After you download logs, you will also want to download the diagnostics for the integration giving you trouble. If the integration provides diagnostics, it will appear in the three dots
Example of Download Diagnostics.
Suppose you find that Home Assistant unexpectedly restarts or crashes; it’s likely that you have a misbehaving integration impacting system stability. Home Assistant has a built-in debug option that can help find implementation errors. It can also block many unsafe thread operations from crashing the system. Enabling debug has a slight performance impact on the system and is not recommended for long-term use. To enable debug, add the following to yourconfiguration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more]:
homeassistant:debug:trueOnce debug is enabled, periodically checkHome Assistant System Logs for new messages.