Control an external device from a light switch with Shelly 1 relay

  • Hi, I'm a bit of a noob, but here goes:

    I have a room with wall lights controlled by a physical switch, and lamps plugged into a socket. I would like to have the socket turn on and off when the light switch is switched. The smart socket I have responds to a simple URL.

    I can make this work on the bench easily by having the Shelly permanently powered and the output of the switch connected to the SW terminal, and using the switch on/off actions to trigger the socket. Really nice and easy...

    However, I just looked at the wiring in this (old) house. There's no neutral at the switch and no live at the wall light (other than the switch output), so it's not easy to power the Shelly while the light is turned off. Is there anything I can do in this case? It seems that the Shelly doesn't have an action for power-on (feature request?!). I also did try wiring as per the diagram for "Turning On/Off 'Special'", but still couldn't get any actions to fire. Before I start tearing up floorboards, is there anything else to try? In particular,

    - might I be able to do something with MQTT?

    - if I had a different Shelly relay (this is a Shelly 1) would anything change?

    - can I get a script to run at startup with the latest firmware?

    - Dave

    Einmal editiert, zuletzt von dcleal (7. Dezember 2021 um 18:50) aus folgendem Grund: More info

  • Hi dcleal , welcome to the forum. :)

    I see 2 options:

    1st and the better will be, to use Shelly1L how written by utschu too.

    2nd is to use shelly1 with "Turning On/Off 'Special", but you are right: If you switch on the power, there are no actions sent. In this case and only if you wantt to switch with app, this way is an option.