Find addon slug

Hi everybody,

Is anybody can tell me whats the simplest way to find an addon slug please ?

Thanks

docker ps

then you’ll see a list of docker containers, with names like addon_a0d7b954_zerotier

The slug is a0d7b954_zerotier

2 Likes

Though the simplest way is to visit the supervisor / addon page. The slug in in the URL:

https://mydomain.duckdns.org/hassio/addon/15ef4d2f_esphome/info
                                          ^^^^^^^^^^^^^^^^
                                          ||||||||||||||||
4 Likes

Thanks a lot !!

I ve got it too with glances !!

Just in case you did not realise, each addon has a different slug.

Hi,

some addon have the same slug for me, like glances, ssh, phpmyadmin, vscode or nodered.
Is it normal situation or a bug in my installation ?

thanks a lot

if that slug is core_<addon_name> no, that is normal.

How is (eg) a0d7b954_appdaemon the same as a0d7b954_esphome?

Hi,

Look with glances

Does someone know how this addon slug prefix is calculated?
To me it looks like an CRC32 hash.
Maybe from the github repo?

It is partially set up in the addon config.yaml, as the docs say Add-On Configuration | Home Assistant Developer Docs

Where the preceding bit comes from, i haven’t discovered.

This describes the slug generation

1 Like

Thanks for your hint @nickrout.

So for completness its simply the first 8 characters of the SHA1 hash of the repository.

Example:

  • Given Github repo
  • → https://github.com/brenner-tobias/ha-addons.
  • Paste the url into http://www.sha1-online.com/ and you will get:
  • → 9074a9fa42d37d9e5aebe73c2cc8ba027572da23
  • First 8 characters are:
  • → 9074a9fa
1 Like

I’m only seeing that work some of the time. Any idea what’s the difference? I’m pulling the URL from the link on the add-on info page.

Here’s my add-ons:

Advanceed SSH: Hostname = a0d7b954-ssh * Not a match *

>>> hashlib.sha1("https://github.com/hassio-addons/addon-ssh".lower().encode()).hexdigest()[:8]
'319a9065'

ESP Home Hostname = 5c53de3b-esphome * Not a match *

>>> hashlib.sha1("https://esphome.io".lower().encode()).hexdigest()[:8]
'64a7cfe9'

Google Drive Backup Hostname = cebe7a76-hassio-google-drive-backup * MATCH *

>>> hashlib.sha1("https://github.com/sabeechen/hassio-google-drive-backup".lower().encode()).
'cebe7a76'

Ring MQTT Hostname = 03cabcc9-ring-mqtt * MATCH *

>>> hashlib.sha1("https://github.com/tsightler/ring-mqtt-ha-addon".lower().encode()).hexdigest()[:8]
'03cabcc9'

Z-Wave JS UI Hostname = a0d7b954-zwavejs2mqtt * Not a match *

>>> hashlib.sha1("https://github.com/hassio-addons/addon-zwave-js-ui".lower().encode()).hexdigest()[:8]
'b6898ad4'

You must use different urls:

URL:
https://github.com/hassio-addons/repository
SHA1:
a0d7b954840a8807d9cf9a06fb8d685f67d1c7ab

URL:
https://github.com/esphome/home-assistant-addon
SHA1:
5c53de3b0e4baaf5d250ed77de4b81e1a2932758

Oh, thanks. I didn’t see those repos listed anywhere so followed the “Visit” links on the add-on’s Info page. Did I miss where the repo is listed for a given add-on?