Multiple DDD

  • I recently installed multiple Shelly1 and 1PM for controlling various things in my appartment mostly by using momentary switch type, and I am very happy with them. However, I would like to add a functionality to one of my switches which is near apartment door and controlls lights in entryway. I want it to turn off all the shelly relays on long press. So for example when I or somebody else leaves the appartment, to switch everything off with one long press. I am aware of DDD and long press option, but there I can supply a URL to only 1 device. Is there a way to send multiple commands this way, or a way to do this via cloud? Now I already have google assistant connected, so I can also use that, but I wanted this just as a sort of backup, and for members of my family who are not quite fluent in english (so google assistant cant really understand them all the time).

    Appreciate any sugestions

    • Offizieller Beitrag

    Hello Belthazor , welcome to the forum ??

    Via DDD you can only switch another Shelly. Unfortunately there is no possibility to control multiple devices here.

    Also over scenes in the cloud no long push is supported.

    What you can do is to use an additional shelly, behind an additional switch, as a dummy and trigger a scene.

    Or replace a normal light switch with a double character and control a 2-channel Shelly 2.5 behind it. Channel for original light, and channel 2 as dummy for the scene.

    LG Michael

    Einsteigertipps / Tips for beginners

    Meine Shellys:

    In Betrieb:

    Zur Zeit über 150 Shellys, in der Regel alle Cloudverbunden

    Testboard mit fast jedem Shellytyp auf dem Markt.

    Fast 5 Jahre kein übergeordnete System. Nur mit App und WebUI mit Cloudverbindung. Sprachsteuerung mit Alexa:)

    Seit Anfang 2024 ist HomeAssistant mit am Start. Was Shelly Cloud nicht kann, bzw. Lokal gesteuert werden soll, übernimmt da übergeordnete System.

  • So I ended up writing a little applet in php which can, based on supplied parameters, do what I need.

    So for example when I go out, I want to switch everything off on long press:

    http://<serverip>/switch.php?type=all&relay=0

    The script will then fetch current state of relay that sent the request and based on it's state will set the state of other switches.

    I only added an exception, when I return home and longpress the switch, it will only turn the lights on, not everything else.

    It's a little scrible of code, I did not have enought time to play with it more and add more features and some sort of AI :)