Skip to content
  • 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
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. Hardware
  4. Howto: Shelly Pro2 ohne MQTT steuern

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.1k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.1k

Howto: Shelly Pro2 ohne MQTT steuern

Scheduled Pinned Locked Moved Hardware
2 Posts 1 Posters 185 Views 1 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.
  • spicerS Online
    spicerS Online
    spicer
    wrote on last edited by spicer
    #1

    Hatte nach einem Firmware Update Probleme mit dem Shelly Adapter.
    Wahrscheinlich liegt das Problem am MQTT Protokoll (glaube Version 5) und nicht am Adapter selbst.

    Die Zustände (True, False) wurden nicht oder nur für einen Kanal des Shellys gesendet/empfangen.

    Meine Lösung will ich euch nicht vorenthalten.
    Blockly Script mit folgendem Inhalt:

    Auswahl_002.png

    Hier der Export vom Blockly Code:

    <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
        <variable id="E[*Zo^$tgAM,^`rYg^])">kanal0</variable>
        <variable id="TQ)gbSh^wT5;8tF}T^nr">kanal1</variable>
      </variables>
      <block type="comment" id="e#VgNJXbRZJ)ut1?V=wc" x="138" y="-37">
        <field name="COMMENT">Hier IP anpassen!</field>
        <next>
          <block type="variables_set" id="vwmNLz78:enU^Y:p[WaN">
            <field name="VAR" id="E[*Zo^$tgAM,^`rYg^])">kanal0</field>
            <value name="VALUE">
              <block type="text" id="b[X6$Wnn*z0OlyT|wp`)">
                <field name="TEXT">http://192.168.88.17/relay/0?turn=</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="r3#,g~P[,fBs.mL9Qs67">
                <field name="VAR" id="TQ)gbSh^wT5;8tF}T^nr">kanal1</field>
                <value name="VALUE">
                  <block type="text" id="dQQ|]=4-yyKz`TI;FN:1">
                    <field name="TEXT">http://192.168.88.17/relay/1?turn=</field>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </next>
      </block>
      <block type="request" id="}xUrxnT9{NF.dsq4y6/#" x="138" y="88">
        <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
        <field name="WITH_STATEMENT">FALSE</field>
        <field name="LOG"></field>
        <value name="URL">
          <shadow type="text" id="h%#$4IJ-^|:ZnmzPK|/F">
            <field name="TEXT">http://192.168.88.17/relay/0?turn=on</field>
          </shadow>
          <block type="text_join" id="D(ym5Q:XQuO#:ZGv3{gA">
            <mutation items="2"></mutation>
            <value name="ADD0">
              <block type="variables_get" id="*[](iu^7hov;{JkB3L[0">
                <field name="VAR" id="E[*Zo^$tgAM,^`rYg^])">kanal0</field>
              </block>
            </value>
            <value name="ADD1">
              <block type="text" id="Y?M[JsG[2na$BE-OYz@z">
                <field name="TEXT">on</field>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="request" id="Jb@k?nyg=CUL*?~#D2JZ">
            <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
            <field name="WITH_STATEMENT">FALSE</field>
            <field name="LOG"></field>
            <value name="URL">
              <shadow type="text" id="Xsi|KVs1[eQp)f-@Av/3">
                <field name="TEXT">http://192.168.88.17/relay/0?turn=off</field>
              </shadow>
              <block type="text_join" id="WuAWD/Mn$HeFI+*hy}*.">
                <mutation items="2"></mutation>
                <value name="ADD0">
                  <block type="variables_get" id="i~g~7F7uAKZ3+G$%dto)">
                    <field name="VAR" id="TQ)gbSh^wT5;8tF}T^nr">kanal1</field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="text" id="uQaY[`M{9$Eqj]=.$#wH">
                    <field name="TEXT">off</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </next>
      </block>
    </xml>
    

    Wenn es mehrere Möglichkeiten gibt, eine Aufgabe zu erledigen, und eine davon in einer Katastrophe endet oder sonstwie unerwünschte Konsequenzen nach sich zieht, dann wird es jemand genau so machen. Alles, was schiefgehen kann, wird auch schiefgehen.
    (Murphys Gesetz)

    1 Reply Last reply
    0
    • spicerS Online
      spicerS Online
      spicer
      wrote on last edited by spicer
      #2

      Analog dem obigen, hier das Auslesen des Status.
      Die Datenpunkte (bei mir Boiler EG... und Boiler OG... ) sind vorgängig zu erstellen.

      Auswahl_001.png

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="E[*Zo^$tgAM,^`rYg^])">kanal0</variable>
          <variable id="TQ)gbSh^wT5;8tF}T^nr">kanal1</variable>
          <variable id="!/hGvij;~a#eXf/@WeQ7">result</variable>
        </variables>
        <block type="comment" id="e#VgNJXbRZJ)ut1?V=wc" x="138" y="-37">
          <field name="COMMENT">Hier IP anpassen!</field>
          <next>
            <block type="variables_set" id="vwmNLz78:enU^Y:p[WaN">
              <field name="VAR" id="E[*Zo^$tgAM,^`rYg^])">kanal0</field>
              <value name="VALUE">
                <block type="text" id="b[X6$Wnn*z0OlyT|wp`)">
                  <field name="TEXT">http://192.168.88.17/relay/0</field>
                </block>
              </value>
              <next>
                <block type="variables_set" id="r3#,g~P[,fBs.mL9Qs67">
                  <field name="VAR" id="TQ)gbSh^wT5;8tF}T^nr">kanal1</field>
                  <value name="VALUE">
                    <block type="text" id="dQQ|]=4-yyKz`TI;FN:1">
                      <field name="TEXT">http://192.168.88.17/relay/1</field>
                    </block>
                  </value>
                </block>
              </next>
            </block>
          </next>
        </block>
        <block type="schedule" id="Os$n~Pf|//l((B`LiMpv" x="138" y="88">
          <field name="SCHEDULE">10 * * * * *</field>
          <statement name="STATEMENT">
            <block type="request" id="}xUrxnT9{NF.dsq4y6/#">
              <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="true"></mutation>
              <field name="WITH_STATEMENT">TRUE</field>
              <field name="LOG"></field>
              <value name="URL">
                <shadow type="text" id="h%#$4IJ-^|:ZnmzPK|/F">
                  <field name="TEXT">http://192.168.88.17/relay/0?turn=on</field>
                </shadow>
                <block type="variables_get" id="*[](iu^7hov;{JkB3L[0">
                  <field name="VAR" id="E[*Zo^$tgAM,^`rYg^])">kanal0</field>
                </block>
              </value>
              <statement name="STATEMENT">
                <block type="update" id="zvA`Um(v7L{n71nJf{yM">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">0_userdata.0.Boiler_OG_(0)_Status</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="get_attr" id="D(ChWXyo]pxGJ4aE|us!">
                      <value name="PATH">
                        <shadow type="text" id="2@qCbaz-URm4t#Hczh#+">
                          <field name="TEXT">ison</field>
                        </shadow>
                      </value>
                      <value name="OBJECT">
                        <block type="convert_json2object" id="z?p_Wgj@;]:?zWa~B.|5">
                          <value name="VALUE">
                            <block type="variables_get" id="lN26(0oW7K!!kD-yn[e.">
                              <field name="VAR" id="!/hGvij;~a#eXf/@WeQ7">result</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                </block>
              </statement>
              <next>
                <block type="request" id="~apZB$?HGqB%2`5{)Yds">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="true"></mutation>
                  <field name="WITH_STATEMENT">TRUE</field>
                  <field name="LOG"></field>
                  <value name="URL">
                    <shadow type="text" id="h%#$4IJ-^|:ZnmzPK|/F">
                      <field name="TEXT">http://192.168.88.17/relay/0?turn=on</field>
                    </shadow>
                    <block type="variables_get" id="c#$N_,}o#kE?^YY1%6|=">
                      <field name="VAR" id="TQ)gbSh^wT5;8tF}T^nr">kanal1</field>
                    </block>
                  </value>
                  <statement name="STATEMENT">
                    <block type="update" id=":ir}AMj5X`8@yNEA,s$c">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">0_userdata.0.Boiler_EG_(1)_Status</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="get_attr" id="cqGT[uj(e`.N8)K|O98(">
                          <value name="PATH">
                            <shadow type="text" id="i(qBYW$*2]+ub_2eBIST">
                              <field name="TEXT">ison</field>
                            </shadow>
                          </value>
                          <value name="OBJECT">
                            <block type="convert_json2object" id="{A$H@`H|RrC7#EPk(i%4">
                              <value name="VALUE">
                                <block type="variables_get" id="y{_s^{4]Wu3u7E7-cz~D">
                                  <field name="VAR" id="!/hGvij;~a#eXf/@WeQ7">result</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </statement>
        </block>
      </xml>
      

      Wenn es mehrere Möglichkeiten gibt, eine Aufgabe zu erledigen, und eine davon in einer Katastrophe endet oder sonstwie unerwünschte Konsequenzen nach sich zieht, dann wird es jemand genau so machen. Alles, was schiefgehen kann, wird auch schiefgehen.
      (Murphys Gesetz)

      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

      414

      Online

      32.4k

      Users

      81.4k

      Topics

      1.3m

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

      • Don't have an account? Register

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