Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Shelly Button & Shelly 1 Switch an/aus schalten

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    16
    1
    297

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    4.7k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.3k

Shelly Button & Shelly 1 Switch an/aus schalten

Scheduled Pinned Locked Moved Blockly
10 Posts 3 Posters 962 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • xadoxX Offline
    xadoxX Offline
    xadox
    wrote on last edited by
    #1

    Ich nutzte einen Shelly 1 für meinen Türgong.
    Nun möchte ich ebenfalls das ein Shelly Button den Türgong triggert.

    Rudimentär habe ich ein Script erzeugt. Aber in diesem Fall wird der Türtaster nicht mehr losgelassen.
    Es müsste somit einmal kurz gedrückt werden und dann wieder umgeschaltet werden.
    Habt ihr da ggf. einen Tipp parat?

    a76f54a9-ad33-4c2f-975c-3daae68b1a0c-image.png

    on({id: 'shelly.0.SHBTN-1#E8DB84AC8A30#1.Button.EventCount', change: "ne"}, async function (obj) {
      var value = obj.state.val;
      var oldValue = obj.oldState.val;
      if (getState("shelly.0.SHBTN-1#E8DB84AC8A30#1.Button.Event").val == 'S') {
        getState("shelly.0.SHSW-1#E8DB84D77942#1.Relay0.Switch", function (err, state) {
            setState("shelly.0.SHSW-1#E8DB84D77942#1.Relay0.Switch"/*Switch*/, state ? !state.val : true);
        });
      }
    });
    
    CinimodC 1 Reply Last reply
    0
    • xadoxX xadox

      Ich nutzte einen Shelly 1 für meinen Türgong.
      Nun möchte ich ebenfalls das ein Shelly Button den Türgong triggert.

      Rudimentär habe ich ein Script erzeugt. Aber in diesem Fall wird der Türtaster nicht mehr losgelassen.
      Es müsste somit einmal kurz gedrückt werden und dann wieder umgeschaltet werden.
      Habt ihr da ggf. einen Tipp parat?

      a76f54a9-ad33-4c2f-975c-3daae68b1a0c-image.png

      on({id: 'shelly.0.SHBTN-1#E8DB84AC8A30#1.Button.EventCount', change: "ne"}, async function (obj) {
        var value = obj.state.val;
        var oldValue = obj.oldState.val;
        if (getState("shelly.0.SHBTN-1#E8DB84AC8A30#1.Button.Event").val == 'S') {
          getState("shelly.0.SHSW-1#E8DB84D77942#1.Relay0.Switch", function (err, state) {
              setState("shelly.0.SHSW-1#E8DB84D77942#1.Relay0.Switch"/*Switch*/, state ? !state.val : true);
          });
        }
      });
      
      CinimodC Offline
      CinimodC Offline
      Cinimod
      Most Active
      wrote on last edited by
      #2

      @xadox

      Ich würde dir auch empfehlen statt "umschalten", "wahr" und "falsch" zu nehmen, das er nicht ausversehen mal auf "wahr" stehen bleibt.

      Bildschirmfoto 2022-03-11 um 07.49.13.png

      Synology DS918+, Fritzbox 6690 Cable, #Docker #Blockly #Vis2 #Deconz #Tasmota

      xadoxX 1 Reply Last reply
      1
      • CinimodC Cinimod

        @xadox

        Ich würde dir auch empfehlen statt "umschalten", "wahr" und "falsch" zu nehmen, das er nicht ausversehen mal auf "wahr" stehen bleibt.

        Bildschirmfoto 2022-03-11 um 07.49.13.png

        xadoxX Offline
        xadoxX Offline
        xadox
        wrote on last edited by
        #3

        @cinimod Vielen Dank. Damit funktioniert es wunderbar.

        da_WoodyD 1 Reply Last reply
        0
        • xadoxX xadox

          @cinimod Vielen Dank. Damit funktioniert es wunderbar.

          da_WoodyD Online
          da_WoodyD Online
          da_Woody
          wrote on last edited by
          #4

          @xadox sorry, aber warum fummelt ihr da mit blocklys rum? IO-actions?

          gruß vom Woody
          HAPPINESS is not a DESTINATION, it's a WAY of LIFE!

          CinimodC 1 Reply Last reply
          0
          • xadoxX Offline
            xadoxX Offline
            xadox
            wrote on last edited by
            #5

            @da_woody weil ich es nicht besser wusste.
            Wie funktioniert das mit io-actions?

            da_WoodyD 1 Reply Last reply
            0
            • xadoxX xadox

              @da_woody weil ich es nicht besser wusste.
              Wie funktioniert das mit io-actions?

              da_WoodyD Online
              da_WoodyD Online
              da_Woody
              wrote on last edited by
              #6

              @xadox naja, du sagst dort, welchen shelly du über die IP wie schalten möchtest...
              17febdac-6ca5-45ce-a90c-a92b2b01a582-grafik.png

              gruß vom Woody
              HAPPINESS is not a DESTINATION, it's a WAY of LIFE!

              xadoxX 1 Reply Last reply
              0
              • da_WoodyD da_Woody

                @xadox sorry, aber warum fummelt ihr da mit blocklys rum? IO-actions?

                CinimodC Offline
                CinimodC Offline
                Cinimod
                Most Active
                wrote on last edited by
                #7

                @da_woody

                Das kenne ich nicht, habe auch keine Shellys auf denen noch OF drauf ist.

                Synology DS918+, Fritzbox 6690 Cable, #Docker #Blockly #Vis2 #Deconz #Tasmota

                da_WoodyD 1 Reply Last reply
                0
                • CinimodC Cinimod

                  @da_woody

                  Das kenne ich nicht, habe auch keine Shellys auf denen noch OF drauf ist.

                  da_WoodyD Online
                  da_WoodyD Online
                  da_Woody
                  wrote on last edited by
                  #8

                  @cinimod tja, dann bin ich raus. gerade bei shelly versteh ich nicht, warum man da tasmota drauftackert...
                  anyway...

                  gruß vom Woody
                  HAPPINESS is not a DESTINATION, it's a WAY of LIFE!

                  1 Reply Last reply
                  0
                  • da_WoodyD da_Woody

                    @xadox naja, du sagst dort, welchen shelly du über die IP wie schalten möchtest...
                    17febdac-6ca5-45ce-a90c-a92b2b01a582-grafik.png

                    xadoxX Offline
                    xadoxX Offline
                    xadox
                    wrote on last edited by
                    #9

                    @da_woody Ich möchte gerne einen Einheitlichen Weg umsetzten und nicht für unterschiedliche Aktoren unterschiedliche Weg nutzten. Daher hätte ich gerne alle Setups in iobroker.

                    Ich hatte mal angedacht hierbei von Blockly auf den Adapter Smart Control umzusteigen. Bisher bin ich aber noch nicht dazu gekommen.

                    da_WoodyD 1 Reply Last reply
                    0
                    • xadoxX xadox

                      @da_woody Ich möchte gerne einen Einheitlichen Weg umsetzten und nicht für unterschiedliche Aktoren unterschiedliche Weg nutzten. Daher hätte ich gerne alle Setups in iobroker.

                      Ich hatte mal angedacht hierbei von Blockly auf den Adapter Smart Control umzusteigen. Bisher bin ich aber noch nicht dazu gekommen.

                      da_WoodyD Online
                      da_WoodyD Online
                      da_Woody
                      wrote on last edited by
                      #10

                      @xadox sagte in Shelly Button & Shelly 1 Switch an/aus schalten:

                      den Adapter Smart Control

                      kann ich dir nur empfehlen... wenn du dich da mal eingewöhnt hast, sind viele dinge möglich.

                      ich versteh schon deine einstellung. ich will auch keinen mix aus allem möglichen. ich hab mich halt für shelly (~80 stk) entschieden und ein paar notwendige gosund sp112 und d1-minis mit tasmota.
                      für mich hat halt die shelly-cloud den vorteil, kackt mir der server ab, hab ich immer noch ein backup für wichtige sachen. auch meine infrarot heizung läuft komplett über die shelly (10x H&T, 1PM) da war ich heuer im winter doch recht froh wie mir die ioB VM probleme gemacht hat... ;)

                      gruß vom Woody
                      HAPPINESS is not a DESTINATION, it's a WAY of LIFE!

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      267

                      Online

                      32.7k

                      Users

                      82.5k

                      Topics

                      1.3m

                      Posts
                      Community
                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                      ioBroker Community 2014-2025
                      logo
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Home
                      • Recent
                      • Tags
                      • Unread 0
                      • Categories
                      • Unreplied
                      • Popular
                      • GitHub
                      • Docu
                      • Hilfe