

The Shelly 1 Gen3 is a compact and versatile Wi-Fi relay switch designed for smart home automation. Manufactured by Shelly, this device allows users to remotely control electrical appliances and lighting through a smartphone app or integrate it with popular home automation platforms such as Google Home, Amazon Alexa, or MQTT-based systems. Its small form factor and wide voltage input range make it suitable for retrofitting into existing electrical setups without requiring significant modifications.








The Shelly 1 Gen3 is designed to be highly adaptable and reliable. Below are its key technical specifications:
| Parameter | Specification |
|---|---|
| Manufacturer | Shelly |
| Part ID | shelly1g3 |
| Power Supply | 110-240V AC, 50/60Hz or 24-60V DC |
| Maximum Load | 16A (Resistive Load) |
| Wireless Connectivity | Wi-Fi 802.11 b/g/n, 2.4 GHz |
| Operating Temperature | -20°C to +40°C |
| Dimensions | 41mm x 36mm x 17mm |
| Power Consumption | < 1W |
| Control Interfaces | Mobile App (Shelly Cloud), REST API, MQTT, HTTP, and Webhooks |
| Certifications | CE, FCC |
The Shelly 1 Gen3 has a simple pinout for easy integration into electrical systems. Below is the pin configuration:
| Pin Name | Description |
|---|---|
| L | Line input for AC power (110-240V AC) |
| N | Neutral input for AC power |
| O | Output terminal for the connected load (e.g., light, fan) |
| I | Input terminal for the switch (used for manual control or external switches) |
| SW | Switch terminal for connecting a physical switch |
Wiring the Device:
Connecting to Wi-Fi:
Configuring the Device:
The Shelly 1 Gen3 can be controlled via MQTT or HTTP requests. Below is an example of using an Arduino UNO to send an HTTP request to toggle the relay:
#include <WiFi.h>
#include <HTTPClient.h>
// Wi-Fi credentials
const char* ssid = "YourWiFiSSID";
const char* password = "YourWiFiPassword";
// Shelly 1 Gen3 IP address
const char* shellyIP = "192.168.1.100"; // Replace with your Shelly's IP address
void setup() {
Serial.begin(115200);
WiFi.begin(ssid, password);
// Wait for Wi-Fi connection
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.println("Connecting to Wi-Fi...");
}
Serial.println("Connected to Wi-Fi");
}
void loop() {
HTTPClient http;
// URL to toggle the relay
String url = String("http://") + shellyIP + "/relay/0?turn=toggle";
// Send HTTP GET request
http.begin(url);
int httpResponseCode = http.GET();
if (httpResponseCode > 0) {
Serial.print("HTTP Response code: ");
Serial.println(httpResponseCode);
} else {
Serial.print("Error code: ");
Serial.println(httpResponseCode);
}
http.end();
// Wait 5 seconds before toggling again
delay(5000);
}
YourWiFiSSID and YourWiFiPassword with your Wi-Fi credentials.192.168.1.100 with the actual IP address of your Shelly 1 Gen3.Device Not Connecting to Wi-Fi:
Relay Not Switching:
HTTP or MQTT Commands Not Working:
Q: Can I use the Shelly 1 Gen3 with a 3-way switch setup?
A: Yes, the Shelly 1 Gen3 supports 3-way switch configurations. Refer to the Shelly app for wiring diagrams.
Q: Does the Shelly 1 Gen3 support dimming?
A: No, the Shelly 1 Gen3 is a relay switch and does not support dimming functionality.
Q: Can I control the Shelly 1 Gen3 without an internet connection?
A: Yes, the device can be controlled locally via its IP address or through a local MQTT broker.
Q: Is the Shelly 1 Gen3 compatible with Home Assistant?
A: Yes, the Shelly 1 Gen3 can be integrated with Home Assistant using MQTT or the Shelly integration.
Q: How do I reset the Shelly 1 Gen3?
A: Press and hold the reset button for 10 seconds until the LED indicator blinks, indicating a factory reset.
By following this documentation, users can effectively install, configure, and troubleshoot the Shelly 1 Gen3 for their smart home automation needs.