Edge Shelly drivers for Gen1 and Gen2 Devices

Workaround Solution: Shelly 1PM Mini Gen4 with Smart Bulbs (Bypassing 24h PAT limits & Detached Mode issues!) :grin:

Hi everyone,

I wanted to share an update and a final solution to a problem I asked about a few days ago regarding my Shelly 1PM Mini Gen4 and Smart bulbs. My goal was simple: I wanted to use my physical wall switch to control my smart bulbs via SmartThings, without ever cutting the physical power to the bulbs. Initially, I set the Shelly to “Detached” mode. Since Matter and the official Cloud integration currently hide the detached input for Gen4 devices, I tried using a Shelly script with a SmartThings Personal Access Token (PAT) to trigger a virtual switch via the API. It worked perfectly… but PATs expire after 24H! Updating the token in the script every single day was driving me crazy.

I also tried using local Edge Drivers (like TAustin’s amazing LAN triggers), but to no success, since the drivers don’t fully support the Gen4 fingerprint yet.

So, until Shelly releases a firmware update to fix this, I decided to drop the code and fix it with a simple hardware workaround (a quick DIY/bricolage fix). It took me 5 minutes, cost almost nothing, and works flawlessly. Here is how I did it:

Instead of relying on the software “Detached” mode, I bypassed the relay using a 3-way Wago connector:

Hardware:

  1. Turn off the breaker

  2. Remove the load wire (the one going up to the bulbs) from the Shelly’s O (Output) terminal.

  3. Use a Wago connector to splice 3 wires together: The main Live/Phase wire coming from the wall, the Load wire (going to the bulbs), and a small new pigtail wire, that connects into the Shelly’s L (Live) terminal to power the Shelly.

  4. Leave the Shelly’s O (Output) terminal empty.

  5. The physical switch remains wired to the SW terminal as usual.

Software:

  1. In the Shelly Web UI, set the Input Mode to Switch and the Output to Edge.

  2. Create the Routine in smartthings.

And that’s it!

(At least until we have an edge driver solution or a shelly firmware update).

I hope this helps anyone struggling with Gen4 Shellys, Matter limitations, or the 24h PAT token rules. Sometimes, a 50cent Wago connector beats weeks of coding and API debugging! :grin:

Cheers!