Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Hardware
    4. Howto: Shelly Pro2 ohne MQTT steuern

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Howto: Shelly Pro2 ohne MQTT steuern

    This topic has been deleted. Only users with topic management privileges can see it.
    • spicer
      spicer last edited by spicer

      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>
      
      1 Reply Last reply Reply Quote 0
      • spicer
        spicer last edited by spicer

        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>
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Support us

        ioBroker
        Community Adapters
        Donate

        597
        Online

        31.7k
        Users

        79.8k
        Topics

        1.3m
        Posts

        1
        2
        140
        Loading More Posts
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes
        Reply
        • Reply as topic
        Log in to reply
        Community
        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
        The ioBroker Community 2014-2023
        logo