How to view files of a Home Assistant Add-on in Home Assistant OS

Sometimes you need to access internal files of a add-on. In home assistant addons are basically docker containers which managed by Home Assistant Supervisor. We can just connect to these containers and inspect the file system.

Example: Nginx Proxy Manager Let’s Encrypt

You might see this output if something went wrong requesting a Let’s Encrypt certificate.

Unfortunately no details are shown and access to the /tmp/letsencrypt-log/letsencrypt.log is required.

First install the Advanced SSH & Web Terminal addon in home assistant.

Then set a password in the configuration.

Then make sure to enable “Show in sidebar” and disable “Protection mode”

Then access ssh by clicking on Terminal on the side menu.

Then enter docker ps to view the running containers and find nginx proxy manager and copy the container id (e.g. 670148ec515f).

Then execute docker exec -it 670148ec515f cat /tmp/letsencrypt-log/letsencrypt.log to show the content of the log file.

or docker exec -it 670148ec515f bash to login to the container and explore the file system.

If you have found a spelling error, please, notify us by selecting that text and pressing Ctrl+Enter.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Spelling error report

The following text will be sent to our editors: