Skip to content

Debug Logging in Home Assistant

shbatm edited this page Feb 16, 2023 · 1 revision

When submitting issues or feature requests, it's important to provide any relevant logs--not only just the error messages, but enable debug logging to capture the details leading up to the error.

Enable Debug Logging in Home Assistant

There are a few ways to enable debug logging in Home Assistant for PyISYoX and the ISY/IoX Integration:

  1. Enable it in your configuration.yaml file (or other yaml package file). This will persist across reboots.
logger:
  default: info
  logs:
    homeassistant.components.isy994: debug
    pyisy: debug
  1. Enable it by calling the logger.set_level Service.
  • Open your Home Assistant instance and show your service developer tools.
  • Click the Switch to YAML mode button.
  • Paste the following and click "Call Service"
service: logger.set_level
data:
  homeassistant.components.isy994: debug
  pyisy: debug

Sharing the log file

Open your Home Assistant instance and show your Home Assistant logs.

https://www.home-assistant.io/integrations/logger/#viewing-logs

Please make sure to use a code block, or save and attach as a text file, when sharing the logs in an issue:

```
Log details go here.
```
Clone this wiki locally