Skip to content

Finding a device ID

Alexander Ryden edited this page Apr 17, 2022 · 4 revisions

A device ID of a next generation Shelly device consists of the model name and a 12 digit hexadecimal number (0-9 and a-f), separated by a dash (-), for example shellyplus1-c4dd57877294 or shellypro4pm-f008d1d8b8b8. Lower or upper case letters doesn’t matter.

Below are some ways to find out what ID a device has.

IP Address

If you know the IP address of your device, you can visit the following URL in your browser:

http://<ip-address>/shelly

This page will return some JSON encoded data, such as:

{"name":null,"id":"shellyplus1-c4dd57877294","mac":"C4DD57877294","model":"SNSW-001X16EU","gen":2,"fw_id":"20220117-162816/0.9.3-g354c141","ver":"0.9.3","app":"Plus1","auth_en":true,"auth_domain":"shellyplus1-c4dd57877294"}

The device ID is what comes after "id": (but without the quotes).

Homebridge Log

If your device has been automatically discovered by this plugin, you can look in the Homebridge log for lines like this:

... [Shelly NG] [device-id] Device added

where device-id is the ID you are looking for.

Shelly App

You can also find the device ID in the Shelly app, under Settings -> Device Information -> Device ID.

Unfortunately only the second part of the ID is shown, so you will need to prefix it with the device’s model name. Here are the prefixes:

Model Prefix
Shelly Plus 1 shellyplus1-
Shelly Plus 1 PM shellyplus1pm-
Shelly Plus 2 PM shellyplus2pm-
Shelly Plus I4 shellyplusi4-
Shelly Pro 1 shellypro1-
Shelly Pro 1 PM shellypro1pm-
Shelly Pro 2 shellypro2-
Shelly Pro 2 PM shellypro2pm-
Shelly Pro 4 PM shellypro4pm-
Clone this wiki locally