How to troubleshoot using the logs

Have an automation that is not working properly? Many issues with devices and app code can be identified by using the logs built into your web user interface. Examining your logs can save you a lot of time and frustration by quickly pinpointing the line of code in the device or app that is throwing an error.

Open your logs by clicking the "Logs" button image in the main menu of your web user interface. If you have devices connected and active, you should start seeing log lines appear as those devices check in with the hub. Each log will have one of five codes:


Trace", “Debug”, “Info” and "Warn" logs display routine messages from properly functioning devices or apps. Red “Error” messages are the ones to watch for.

To troubleshoot your hub, try triggering your troubled automation or device while watching the logs for an error (you may need to open the "Logs" in a separate window or tab, if you need to view other sections of the web interface - navigating between pages, clears the "Logs" page).

If you notice an image in your logs, it should be followed by additional information to help you diagnose the issue:

Pay special attention to error logs that say “no method exists” or “caught exception.” The affected device or app code will be listed on the far left side. The error line number tells you which line of code is throwing an error.

Click on the Device or App code and the app or device will be highlighted at the top of the log page. You can also click on the device or app name at the top of the page to only view the logs related to a specific device/app. If the error is in a custom drive, the Error Type can give you clues to start fixing the code (or contact the app developer with this information).

If the error comes from a built-in app or driver, please contact the Hubitat Elevation support team.


How can I tell definitively which app is being referred to by code on extreme left of log entry? For example I have an entry app:2. Is there a list of apps somewhere that defines what 2 is? When I click on app:2 it brings up the dashboard config screen but this doesn't seem related to the error itself.

Same question from me. I have an error that says app 98 but it’s not clickable and can’t determine which app is causing the issue.

Clicking on "type of event" will take you to the app:

1 Like

Seems like the topic of the day... :slight_smile: