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. Blockly schalten von Steckdose durch befehl(Gelöst).

NEWS

  • Neuer ioBroker-Blog online: Monatsrückblick März/April 2026
    BluefoxB
    Bluefox
    6
    1
    221

  • Verwendung von KI bitte immer deutlich kennzeichnen
    HomoranH
    Homoran
    8
    1
    218

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    891

Blockly schalten von Steckdose durch befehl(Gelöst).

Scheduled Pinned Locked Moved Blockly
22 Posts 6 Posters 3.1k Views 5 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.
  • S Sammy0608

    Re: Blockly schalte von Steckdose durch befehl.

    Hallo

    hier der Screenshot
    Iobroker.PNG

    Theoretisch müsste es doch auch funktionieren mit der Button Methode.
    Es sollte über 2 Tasten gelöst werden. "UP" für an und "Down" für aus.

    Habe es auch mit schalte im Blokly probiert.

    LG Sammy

    dslraserD Offline
    dslraserD Offline
    dslraser
    Forum Testing Most Active
    wrote on last edited by dslraser
    #7

    @Sammy0608

    wenn das Button sind, dann nimm mal im Trigger wurde aktualisiert. Und anstatt aktualisiere nimm steuere zum schalten.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sammy0608
      wrote on last edited by
      #8

      Hallo
      so hab jetzt mit "wurde aktualisiert" und "Steuere" probiert.
      Aber leider immer noch kein erfolg.
      im log der Ereignisse auch zu sehen das ich key "UP" betätigt habe.

      So als frage : Ist es normal das die Instanz nach speichern des Script immer anzeigt , Instanz ist deaktiviert.
      Ich sehe im Log das java script beendet und gestartet wurde. Nicht das am Java script modul irgendetwas kommisch ist.

      iobroker2.PNG

      stateChange	fakeroku.0.ioBroker.keys.Up	false	true	fakeroku.0	2020-03-16 19:28:22.014	2020-03-16 19:28:22.014
      stateChange	fakeroku.0.ioBroker.keys.Up	true	true	fakeroku.0	2020-03-16 19:28:21.964	2020-03-16 19:28:21.964```
      1 Reply Last reply
      0
      • L Offline
        L Offline
        leonracer
        wrote on last edited by
        #9

        Hi,

        Also, wie schon gesagt, würde ich es über die einzelnen Aktivitäten machen. Ich steuere so meine Leinwand per Shelly (je nach Aktivität fährt die runter oder rauf). Je nach Aktivität schalte ich auch meinen Bass hinzu, damit der nicht permanent Strom zieht. Mit dem Datenpunkt Current Aktivity kannst du doch triggern was du brauchst.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Sammy0608
          wrote on last edited by Sammy0608
          #10

          Hallo

          ich werde es mal mit den Datenpunkt Current Aktivity probieren.
          Und berichte ob das dann bei mir so funktioniert.
          Muss ich aber ertsmal warten bis meine frau kein TV guckt.

          Sie ist meistens nicht erfreut wen ich am TV etwas mache
          Dann kann sie ihre serien usw nicht gucken.🤐

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Sammy0608
            wrote on last edited by
            #11

            Hallo

            konnte es jetzt teste mit dem Datenpunkt Current Aktivity.
            Ich habe mir aus folgenden das script kopiert und abgeändert.

            https://forum.iobroker.net/topic/26700/kino-steuerung-mit-blockly-und-harmony/21
            Es wurde von mir stark abgekürzt und mit meinen Geräten ersetzt.

            Doch wieder keine Schaltung der Dose weder an noch aus.

            Hier das Script und ein Screenshot

            Langsam glaube ich , ich bin zu doof dafür.. :\

            LG Sammy

            iobroker3.PNG

            <block xmlns="http://www.w3.org/1999/xhtml" type="on_ext" id="55@yN/Bd.4.Zl:.QX]zj" x="88" y="38">
              <mutation items="1"></mutation>
              <field name="CONDITION">any</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id="W^r22S90au(LBao+qr~s">
                  <field name="oid">harmony.0.Harmony_Hub.activities.currentStatus</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="controls_if" id="BHRn[yZNyldRzla7iWi7">
                  <mutation elseif="1"></mutation>
                  <value name="IF0">
                    <block type="logic_compare" id="hSKY3oe-1s!pfEfae3vD">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="HV{kF[O[D7L0Uw_^opDj">
                          <field name="ATTR">val</field>
                          <field name="OID">harmony.0.Harmony_Hub.activities.currentStatus</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="Wx[1a#`-x24d#?+-W][b">
                          <field name="NUM">2</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id="*M]#SFj-0gE[Q}k9M(l~">
                      <mutation delay_input="true"></mutation>
                      <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-AN</field>
                      <field name="WITH_DELAY">TRUE</field>
                      <field name="DELAY_MS">500</field>
                      <field name="UNIT">ms</field>
                      <field name="CLEAR_RUNNING">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="v(}|]nYb]d9^2y;P`F56">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                  <value name="IF1">
                    <block type="logic_compare" id="3;+raTJp+N2F(F%@,4,m">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="YT%VBl5Rq`0!3w_Gw*D~">
                          <field name="ATTR">val</field>
                          <field name="OID">harmony.0.Harmony_Hub.activities.currentStatus</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="6j(-PID3I3ML;ZbrH`*y">
                          <field name="NUM">0</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO1">
                    <block type="control" id=";#+0-^],ErtHu0Ytap[A">
                      <mutation delay_input="true"></mutation>
                      <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-Aus</field>
                      <field name="WITH_DELAY">TRUE</field>
                      <field name="DELAY_MS">500</field>
                      <field name="UNIT">ms</field>
                      <field name="CLEAR_RUNNING">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="_(]CC?AVC%ep~|N#4I%r">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
            
            1 Reply Last reply
            0
            • opossumO Offline
              opossumO Offline
              opossum
              wrote on last edited by opossum
              #12

              Hallo,
              hast Du mal getestet, ob der Trigger mit "wurde geändert" zieht?
              703bee1f-dd7b-4945-bcbb-5dc11a2b449c-grafik.png

              Bei mir funktioniert dieses Script :
              b4e74400-41c6-48e1-b53d-0d3d1bf3f562-grafik.png

              https://www.schlepper-petersdorf.de

              1 Reply Last reply
              0
              • L Offline
                L Offline
                leonracer
                wrote on last edited by
                #13

                Hi,

                Ist die Steckdose überhaupt erreich- und schaltbar? Ich würde mal probieren den Steuere-Baustein 3 oder 4 mal zu setzen mit verschiedenen Timeouts und schauen ob überhaupt eingeschaltet wird.

                Im Falls Baustein mal die 2 als Textbaustein und nicht Mathematik testen. Irgendwie muss es ja klappen.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Sammy0608
                  wrote on last edited by Sammy0608
                  #14

                  Hallo

                  so habe es jetzt mit Textfeldern probiert leider wieder Fehlanzeige.
                  Habe in dem zuge mehre aneinander gepackt auch ohne erfolg.

                  Habe auch einen neuen Ansatz probiert siehe unten auch ohne erfolg.

                  Mit Wurde Aktuallsiert oder Wurde Geändert auch probiert kein veränderung.

                  Ich denke, irgendwas ist in meiner Installation defekt.

                  Ich werde die Tage mal versuchen den Raspberry neu aufzusetzen.
                  und Iobroker neu installieren. Updates habe ich heute auch durchgeführt.

                  Beim Schalten von TV-Schalter-C-AN unter objekte schaltet die dose auch an.

                  LG Sammy und danke für die vielen mühen ich berichtet ob das neuinstallieren geholfen hat.

                  iobroker4.PNG

                  
                  BlocklyJavascriptTypeScript
                  Protokoll
                  Ausgewählte Blöcke exportieren
                  <xml xmlns="http://www.w3.org/1999/xhtml">
                    <block type="on_ext" id="55@yN/Bd.4.Zl:.QX]zj" x="88" y="38">
                      <mutation items="1"></mutation>
                      <field name="CONDITION">ne</field>
                      <field name="ACK_CONDITION"></field>
                      <value name="OID0">
                        <shadow type="field_oid" id="W^r22S90au(LBao+qr~s">
                          <field name="oid">harmony.0.Harmony_Hub.activities.currentStatus</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="t+Ke{Pk2f$w[7Fj3rsm2">
                          <mutation elseif="1"></mutation>
                          <value name="IF0">
                            <block type="logic_compare" id="6z*G9nWc)Ev;DED,zFX!">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="field_oid" id="I?p,3y)YpTe/@go=o7F?">
                                  <field name="oid">harmony.0.Harmony_Hub.activities.currentActivity</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="text" id="PWiyTa#nDNOq=Mu9?duw">
                                  <field name="TEXT">"TV"</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="+%,LyB:O#bq~hHdQkKQq">
                              <mutation delay_input="true"></mutation>
                              <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-AN</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">1</field>
                              <field name="UNIT">sec</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="i_;NK`/V*.-qoe_O2oq1">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                              <next>
                                <block type="toggle" id="KV?[yKzl8FHbR7LKv%]b">
                                  <mutation delay_input="true"></mutation>
                                  <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-AN</field>
                                  <field name="WITH_DELAY">TRUE</field>
                                  <field name="DELAY_MS">2</field>
                                  <field name="UNIT">sec</field>
                                  <field name="CLEAR_RUNNING">FALSE</field>
                                  <next>
                                    <block type="update" id="-99#Wc8Gr[3GRD%!9H*}">
                                      <mutation delay_input="true"></mutation>
                                      <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-AN</field>
                                      <field name="WITH_DELAY">TRUE</field>
                                      <field name="DELAY_MS">3</field>
                                      <field name="UNIT">sec</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="_(]CC?AVC%ep~|N#4I%r">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <value name="IF1">
                            <block type="logic_compare" id="w2Itp]6bGxbHPntaH{w#">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="field_oid" id="cJj*a9:_+q2|#QD(/*YT">
                                  <field name="oid">harmony.0.Harmony_Hub.activities.currentActivity</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="text" id="}t?K1`t(OIbUrTkXg2Ru">
                                  <field name="TEXT">"PowerOff"</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO1">
                            <block type="control" id="$u}^((CwaO2Q745.MGpd">
                              <mutation delay_input="true"></mutation>
                              <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-Aus</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">1</field>
                              <field name="UNIT">sec</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="5kpTuham,Jvh`gXPg`H-">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                              <next>
                                <block type="toggle" id="I5It8-AT$%:N3/~)I2p6">
                                  <mutation delay_input="true"></mutation>
                                  <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-Aus</field>
                                  <field name="WITH_DELAY">TRUE</field>
                                  <field name="DELAY_MS">2</field>
                                  <field name="UNIT">sec</field>
                                  <field name="CLEAR_RUNNING">FALSE</field>
                                  <next>
                                    <block type="update" id="Ny.#/OKhf`:d$UgLnJO^">
                                      <mutation delay_input="true"></mutation>
                                      <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-Aus</field>
                                      <field name="WITH_DELAY">TRUE</field>
                                      <field name="DELAY_MS">3</field>
                                      <field name="UNIT">sec</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="q}ltpsLR]|@1o#{F#PiU">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </statement>
                    </block>
                  </xml>
                  <xml xmlns="http://www.w3.org/1999/xhtml">
                    <block type="on_ext" id="55@yN/Bd.4.Zl:.QX]zj" x="88" y="38">
                      <mutation items="1"></mutation>
                      <field name="CONDITION">ne</field>
                      <field name="ACK_CONDITION"></field>
                      <value name="OID0">
                        <shadow type="field_oid" id="W^r22S90au(LBao+qr~s">
                          <field name="oid">harmony.0.Harmony_Hub.activities.currentStatus</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="t+Ke{Pk2f$w[7Fj3rsm2">
                          <mutation elseif="1"></mutation>
                          <value name="IF0">
                            <block type="logic_compare" id="6z*G9nWc)Ev;DED,zFX!">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="field_oid" id="I?p,3y)YpTe/@go=o7F?">
                                  <field name="oid">harmony.0.Harmony_Hub.activities.currentActivity</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="text" id="PWiyTa#nDNOq=Mu9?duw">
                                  <field name="TEXT">"TV"</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="+%,LyB:O#bq~hHdQkKQq">
                              <mutation delay_input="true"></mutation>
                              <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-AN</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">1</field>
                              <field name="UNIT">sec</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="i_;NK`/V*.-qoe_O2oq1">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                              <next>
                                <block type="toggle" id="KV?[yKzl8FHbR7LKv%]b">
                                  <mutation delay_input="true"></mutation>
                                  <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-AN</field>
                                  <field name="WITH_DELAY">TRUE</field>
                                  <field name="DELAY_MS">2</field>
                                  <field name="UNIT">sec</field>
                                  <field name="CLEAR_RUNNING">FALSE</field>
                                  <next>
                                    <block type="update" id="-99#Wc8Gr[3GRD%!9H*}">
                                      <mutation delay_input="true"></mutation>
                                      <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-AN</field>
                                      <field name="WITH_DELAY">TRUE</field>
                                      <field name="DELAY_MS">3</field>
                                      <field name="UNIT">sec</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="_(]CC?AVC%ep~|N#4I%r">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <value name="IF1">
                            <block type="logic_compare" id="w2Itp]6bGxbHPntaH{w#">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="field_oid" id="cJj*a9:_+q2|#QD(/*YT">
                                  <field name="oid">harmony.0.Harmony_Hub.activities.currentActivity</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="text" id="}t?K1`t(OIbUrTkXg2Ru">
                                  <field name="TEXT">"PowerOff"</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO1">
                            <block type="control" id="$u}^((CwaO2Q745.MGpd">
                              <mutation delay_input="true"></mutation>
                              <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-Aus</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">1</field>
                              <field name="UNIT">sec</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="5kpTuham,Jvh`gXPg`H-">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                              <next>
                                <block type="toggle" id="I5It8-AT$%:N3/~)I2p6">
                                  <mutation delay_input="true"></mutation>
                                  <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-Aus</field>
                                  <field name="WITH_DELAY">TRUE</field>
                                  <field name="DELAY_MS">2</field>
                                  <field name="UNIT">sec</field>
                                  <field name="CLEAR_RUNNING">FALSE</field>
                                  <next>
                                    <block type="update" id="Ny.#/OKhf`:d$UgLnJO^">
                                      <mutation delay_input="true"></mutation>
                                      <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-Aus</field>
                                      <field name="WITH_DELAY">TRUE</field>
                                      <field name="DELAY_MS">3</field>
                                      <field name="UNIT">sec</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="q}ltpsLR]|@1o#{F#PiU">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </statement>
                    </block>
                  </xml>
                  
                  
                  dslraserD 1 Reply Last reply
                  0
                  • S Sammy0608

                    Hallo

                    so habe es jetzt mit Textfeldern probiert leider wieder Fehlanzeige.
                    Habe in dem zuge mehre aneinander gepackt auch ohne erfolg.

                    Habe auch einen neuen Ansatz probiert siehe unten auch ohne erfolg.

                    Mit Wurde Aktuallsiert oder Wurde Geändert auch probiert kein veränderung.

                    Ich denke, irgendwas ist in meiner Installation defekt.

                    Ich werde die Tage mal versuchen den Raspberry neu aufzusetzen.
                    und Iobroker neu installieren. Updates habe ich heute auch durchgeführt.

                    Beim Schalten von TV-Schalter-C-AN unter objekte schaltet die dose auch an.

                    LG Sammy und danke für die vielen mühen ich berichtet ob das neuinstallieren geholfen hat.

                    iobroker4.PNG

                    
                    BlocklyJavascriptTypeScript
                    Protokoll
                    Ausgewählte Blöcke exportieren
                    <xml xmlns="http://www.w3.org/1999/xhtml">
                      <block type="on_ext" id="55@yN/Bd.4.Zl:.QX]zj" x="88" y="38">
                        <mutation items="1"></mutation>
                        <field name="CONDITION">ne</field>
                        <field name="ACK_CONDITION"></field>
                        <value name="OID0">
                          <shadow type="field_oid" id="W^r22S90au(LBao+qr~s">
                            <field name="oid">harmony.0.Harmony_Hub.activities.currentStatus</field>
                          </shadow>
                        </value>
                        <statement name="STATEMENT">
                          <block type="controls_if" id="t+Ke{Pk2f$w[7Fj3rsm2">
                            <mutation elseif="1"></mutation>
                            <value name="IF0">
                              <block type="logic_compare" id="6z*G9nWc)Ev;DED,zFX!">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="field_oid" id="I?p,3y)YpTe/@go=o7F?">
                                    <field name="oid">harmony.0.Harmony_Hub.activities.currentActivity</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id="PWiyTa#nDNOq=Mu9?duw">
                                    <field name="TEXT">"TV"</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="+%,LyB:O#bq~hHdQkKQq">
                                <mutation delay_input="true"></mutation>
                                <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-AN</field>
                                <field name="WITH_DELAY">TRUE</field>
                                <field name="DELAY_MS">1</field>
                                <field name="UNIT">sec</field>
                                <field name="CLEAR_RUNNING">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="i_;NK`/V*.-qoe_O2oq1">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="toggle" id="KV?[yKzl8FHbR7LKv%]b">
                                    <mutation delay_input="true"></mutation>
                                    <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-AN</field>
                                    <field name="WITH_DELAY">TRUE</field>
                                    <field name="DELAY_MS">2</field>
                                    <field name="UNIT">sec</field>
                                    <field name="CLEAR_RUNNING">FALSE</field>
                                    <next>
                                      <block type="update" id="-99#Wc8Gr[3GRD%!9H*}">
                                        <mutation delay_input="true"></mutation>
                                        <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-AN</field>
                                        <field name="WITH_DELAY">TRUE</field>
                                        <field name="DELAY_MS">3</field>
                                        <field name="UNIT">sec</field>
                                        <field name="CLEAR_RUNNING">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="_(]CC?AVC%ep~|N#4I%r">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <value name="IF1">
                              <block type="logic_compare" id="w2Itp]6bGxbHPntaH{w#">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="field_oid" id="cJj*a9:_+q2|#QD(/*YT">
                                    <field name="oid">harmony.0.Harmony_Hub.activities.currentActivity</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id="}t?K1`t(OIbUrTkXg2Ru">
                                    <field name="TEXT">"PowerOff"</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO1">
                              <block type="control" id="$u}^((CwaO2Q745.MGpd">
                                <mutation delay_input="true"></mutation>
                                <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-Aus</field>
                                <field name="WITH_DELAY">TRUE</field>
                                <field name="DELAY_MS">1</field>
                                <field name="UNIT">sec</field>
                                <field name="CLEAR_RUNNING">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="5kpTuham,Jvh`gXPg`H-">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="toggle" id="I5It8-AT$%:N3/~)I2p6">
                                    <mutation delay_input="true"></mutation>
                                    <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-Aus</field>
                                    <field name="WITH_DELAY">TRUE</field>
                                    <field name="DELAY_MS">2</field>
                                    <field name="UNIT">sec</field>
                                    <field name="CLEAR_RUNNING">FALSE</field>
                                    <next>
                                      <block type="update" id="Ny.#/OKhf`:d$UgLnJO^">
                                        <mutation delay_input="true"></mutation>
                                        <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-Aus</field>
                                        <field name="WITH_DELAY">TRUE</field>
                                        <field name="DELAY_MS">3</field>
                                        <field name="UNIT">sec</field>
                                        <field name="CLEAR_RUNNING">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="q}ltpsLR]|@1o#{F#PiU">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </statement>
                      </block>
                    </xml>
                    <xml xmlns="http://www.w3.org/1999/xhtml">
                      <block type="on_ext" id="55@yN/Bd.4.Zl:.QX]zj" x="88" y="38">
                        <mutation items="1"></mutation>
                        <field name="CONDITION">ne</field>
                        <field name="ACK_CONDITION"></field>
                        <value name="OID0">
                          <shadow type="field_oid" id="W^r22S90au(LBao+qr~s">
                            <field name="oid">harmony.0.Harmony_Hub.activities.currentStatus</field>
                          </shadow>
                        </value>
                        <statement name="STATEMENT">
                          <block type="controls_if" id="t+Ke{Pk2f$w[7Fj3rsm2">
                            <mutation elseif="1"></mutation>
                            <value name="IF0">
                              <block type="logic_compare" id="6z*G9nWc)Ev;DED,zFX!">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="field_oid" id="I?p,3y)YpTe/@go=o7F?">
                                    <field name="oid">harmony.0.Harmony_Hub.activities.currentActivity</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id="PWiyTa#nDNOq=Mu9?duw">
                                    <field name="TEXT">"TV"</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="+%,LyB:O#bq~hHdQkKQq">
                                <mutation delay_input="true"></mutation>
                                <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-AN</field>
                                <field name="WITH_DELAY">TRUE</field>
                                <field name="DELAY_MS">1</field>
                                <field name="UNIT">sec</field>
                                <field name="CLEAR_RUNNING">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="i_;NK`/V*.-qoe_O2oq1">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="toggle" id="KV?[yKzl8FHbR7LKv%]b">
                                    <mutation delay_input="true"></mutation>
                                    <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-AN</field>
                                    <field name="WITH_DELAY">TRUE</field>
                                    <field name="DELAY_MS">2</field>
                                    <field name="UNIT">sec</field>
                                    <field name="CLEAR_RUNNING">FALSE</field>
                                    <next>
                                      <block type="update" id="-99#Wc8Gr[3GRD%!9H*}">
                                        <mutation delay_input="true"></mutation>
                                        <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-AN</field>
                                        <field name="WITH_DELAY">TRUE</field>
                                        <field name="DELAY_MS">3</field>
                                        <field name="UNIT">sec</field>
                                        <field name="CLEAR_RUNNING">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="_(]CC?AVC%ep~|N#4I%r">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <value name="IF1">
                              <block type="logic_compare" id="w2Itp]6bGxbHPntaH{w#">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="field_oid" id="cJj*a9:_+q2|#QD(/*YT">
                                    <field name="oid">harmony.0.Harmony_Hub.activities.currentActivity</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id="}t?K1`t(OIbUrTkXg2Ru">
                                    <field name="TEXT">"PowerOff"</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO1">
                              <block type="control" id="$u}^((CwaO2Q745.MGpd">
                                <mutation delay_input="true"></mutation>
                                <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-Aus</field>
                                <field name="WITH_DELAY">TRUE</field>
                                <field name="DELAY_MS">1</field>
                                <field name="UNIT">sec</field>
                                <field name="CLEAR_RUNNING">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="5kpTuham,Jvh`gXPg`H-">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="toggle" id="I5It8-AT$%:N3/~)I2p6">
                                    <mutation delay_input="true"></mutation>
                                    <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-Aus</field>
                                    <field name="WITH_DELAY">TRUE</field>
                                    <field name="DELAY_MS">2</field>
                                    <field name="UNIT">sec</field>
                                    <field name="CLEAR_RUNNING">FALSE</field>
                                    <next>
                                      <block type="update" id="Ny.#/OKhf`:d$UgLnJO^">
                                        <mutation delay_input="true"></mutation>
                                        <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-Aus</field>
                                        <field name="WITH_DELAY">TRUE</field>
                                        <field name="DELAY_MS">3</field>
                                        <field name="UNIT">sec</field>
                                        <field name="CLEAR_RUNNING">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="q}ltpsLR]|@1o#{F#PiU">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </statement>
                      </block>
                    </xml>
                    
                    
                    dslraserD Offline
                    dslraserD Offline
                    dslraser
                    Forum Testing Most Active
                    wrote on last edited by dslraser
                    #15

                    @Sammy0608
                    Warum hast Du in den Textfeldern Anführungsstriche ? Bei mir in den Objekten stehen die ohne " "

                    Screenshot_20200317-193359_Chrome.jpg

                    S 1 Reply Last reply
                    0
                    • dslraserD dslraser

                      @Sammy0608
                      Warum hast Du in den Textfeldern Anführungsstriche ? Bei mir in den Objekten stehen die ohne " "

                      Screenshot_20200317-193359_Chrome.jpg

                      S Offline
                      S Offline
                      Sammy0608
                      wrote on last edited by
                      #16

                      @dslraser
                      Hab es mit "" und ohne "" probiert.
                      Dachte ich probiere es im ersten schritt mal mit "" da es im Ereignis log genau so drinn Stand.

                      dslraserD 1 Reply Last reply
                      0
                      • S Sammy0608

                        @dslraser
                        Hab es mit "" und ohne "" probiert.
                        Dachte ich probiere es im ersten schritt mal mit "" da es im Ereignis log genau so drinn Stand.

                        dslraserD Offline
                        dslraserD Offline
                        dslraser
                        Forum Testing Most Active
                        wrote on last edited by dslraser
                        #17

                        @Sammy0608
                        ich schalte z.B. so Licht/HUE Lampen mit ein/aus. (mit Prüfung bestimmter Helligkeitswerte und anderes)
                        Das sind zwei Instanzen (Wohnzimmer und Schlafzimmer)
                        Funktioniert schon ewig so.

                        Screenshot_20200317-194141_Chrome.jpg

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          Sammy0608
                          wrote on last edited by
                          #18

                          Hallo das script kommt mir bekannt vor bzw ein ähnliches.
                          Das hatte ich mir kopiert und abgeändert.

                          Wie erwähnt ich denke das im allgemeinen etwas mit meinem iobroker bei mir nicht stimmt.

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            Sammy0608
                            wrote on last edited by Sammy0608
                            #19

                            Hallo

                            so habe im Zuge der Installation des Conbee 2 einen Tausch vorgenommen.
                            Auf dem Raspberry 3 ,Conbee 2 installiert und der neue Raspberry pi 4 (2 GB) mit iobroker.
                            Ich habe in beiden fällen bewusst das fertige image genommen.

                            Jetzt funktioniert das Script mit den Harmony Activiti = 0 oder Harmony Activit = 2 auch zum schalten der Dose.

                            Das Roku Script läuft leider nicht , wird später vll mal notwendig.

                            Das einzige was ich nur merke ist , das die Schaltung der Dose ca 8-10 Sekunden dauert.
                            Kann ich das noch irgendwie beschleunigen. Wen ich Subwoofer +Verstärker und TV daran anschließen wollte, könnte es den Harmony Prozess stören- ( Einschalten TV schalten auf HDMI1 usw.)

                            Eine Verzögerung von 500 ms kann doch eigentlich keine Verzögerung von 8-10 Sekunden provozieren.

                            LG Sammy

                            <xml xmlns="http://www.w3.org/1999/xhtml">
                              <block type="on_ext" id="55@yN/Bd.4.Zl:.QX]zj" x="88" y="38">
                                <mutation items="1"></mutation>
                                <field name="CONDITION">any</field>
                                <field name="ACK_CONDITION"></field>
                                <value name="OID0">
                                  <shadow type="field_oid" id="W^r22S90au(LBao+qr~s">
                                    <field name="oid">harmony.0.Harmony_Hub.activities.currentStatus</field>
                                  </shadow>
                                </value>
                                <statement name="STATEMENT">
                                  <block type="controls_if" id="BHRn[yZNyldRzla7iWi7">
                                    <mutation elseif="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_compare" id="hSKY3oe-1s!pfEfae3vD">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="get_value" id="HV{kF[O[D7L0Uw_^opDj">
                                            <field name="ATTR">val</field>
                                            <field name="OID">harmony.0.Harmony_Hub.activities.currentStatus</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="Wx[1a#`-x24d#?+-W][b">
                                            <field name="NUM">2</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="control" id="*M]#SFj-0gE[Q}k9M(l~">
                                        <mutation delay_input="true"></mutation>
                                        <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-AN</field>
                                        <field name="WITH_DELAY">TRUE</field>
                                        <field name="DELAY_MS">500</field>
                                        <field name="UNIT">ms</field>
                                        <field name="CLEAR_RUNNING">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="v(}|]nYb]d9^2y;P`F56">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <value name="IF1">
                                      <block type="logic_compare" id="3;+raTJp+N2F(F%@,4,m">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="get_value" id="YT%VBl5Rq`0!3w_Gw*D~">
                                            <field name="ATTR">val</field>
                                            <field name="OID">harmony.0.Harmony_Hub.activities.currentStatus</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="6j(-PID3I3ML;ZbrH`*y">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO1">
                                      <block type="control" id=";#+0-^],ErtHu0Ytap[A">
                                        <mutation delay_input="true"></mutation>
                                        <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-C-Aus</field>
                                        <field name="WITH_DELAY">TRUE</field>
                                        <field name="DELAY_MS">500</field>
                                        <field name="UNIT">ms</field>
                                        <field name="CLEAR_RUNNING">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="_(]CC?AVC%ep~|N#4I%r">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                              </block>
                            </xml>
                            
                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              Sammy0608
                              wrote on last edited by
                              #20

                              Hallo nochmal ein Update

                              nach ein wenig Try an error funktioniert auch die andere Schaltung per fakeRuko.

                              Wäre nur interessant gewesen auch für andere warum es vorher im Blockly garnicht funktioniert hat.

                              Hier noch mein 2 Script welches auch funktioniert. Für andere die eine mögliche Lösung suchen.
                              Danke an alle die mit geholfen haben.
                              LG Sammy

                              Kann jetzt auf erledigt gesetzt werden.

                              iobroker5.PNG

                              <xml xmlns="http://www.w3.org/1999/xhtml">
                                <block type="on_ext" id="wvn+:}U{]0VF`@n[,UZp" x="63" y="38">
                                  <mutation items="1"></mutation>
                                  <field name="CONDITION">ne</field>
                                  <field name="ACK_CONDITION"></field>
                                  <value name="OID0">
                                    <shadow type="field_oid" id="?#X-TN:MSQirmE~O.^aC">
                                      <field name="oid">fakeroku.0.ioBroker.keys.Down</field>
                                    </shadow>
                                  </value>
                                  <statement name="STATEMENT">
                                    <block type="control" id="(U_{OUezFZZ6t}rfx9w?">
                                      <mutation delay_input="false"></mutation>
                                      <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-A-Aus</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="#{(-{f:ty6-O3`NacOvR">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="Onylyx0+8Cu/e3@!-g?`">
                                          <mutation delay_input="false"></mutation>
                                          <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-B-Off</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="n.+LZ}{vq;4J.OXZ1(oj">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </xml>
                              
                              dslraserD 1 Reply Last reply
                              0
                              • S Sammy0608

                                Hallo nochmal ein Update

                                nach ein wenig Try an error funktioniert auch die andere Schaltung per fakeRuko.

                                Wäre nur interessant gewesen auch für andere warum es vorher im Blockly garnicht funktioniert hat.

                                Hier noch mein 2 Script welches auch funktioniert. Für andere die eine mögliche Lösung suchen.
                                Danke an alle die mit geholfen haben.
                                LG Sammy

                                Kann jetzt auf erledigt gesetzt werden.

                                iobroker5.PNG

                                <xml xmlns="http://www.w3.org/1999/xhtml">
                                  <block type="on_ext" id="wvn+:}U{]0VF`@n[,UZp" x="63" y="38">
                                    <mutation items="1"></mutation>
                                    <field name="CONDITION">ne</field>
                                    <field name="ACK_CONDITION"></field>
                                    <value name="OID0">
                                      <shadow type="field_oid" id="?#X-TN:MSQirmE~O.^aC">
                                        <field name="oid">fakeroku.0.ioBroker.keys.Down</field>
                                      </shadow>
                                    </value>
                                    <statement name="STATEMENT">
                                      <block type="control" id="(U_{OUezFZZ6t}rfx9w?">
                                        <mutation delay_input="false"></mutation>
                                        <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-A-Aus</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="#{(-{f:ty6-O3`NacOvR">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="Onylyx0+8Cu/e3@!-g?`">
                                            <mutation delay_input="false"></mutation>
                                            <field name="OID">broadlink2.0.RM:RMPROPLUS-4d-e6-69.L.TV-Schalter-B-Off</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="n.+LZ}{vq;4J.OXZ1(oj">
                                                <field name="BOOL">TRUE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </xml>
                                
                                dslraserD Offline
                                dslraserD Offline
                                dslraser
                                Forum Testing Most Active
                                wrote on last edited by
                                #21

                                @Sammy0608 sagte in Blockly schalte von Steckdose durch befehl.:

                                Kann jetzt auf erledigt gesetzt werden.

                                Das musst Du selbst machen. (Deinen ersten Beitrag editieren)

                                S 1 Reply Last reply
                                0
                                • dslraserD dslraser

                                  @Sammy0608 sagte in Blockly schalte von Steckdose durch befehl.:

                                  Kann jetzt auf erledigt gesetzt werden.

                                  Das musst Du selbst machen. (Deinen ersten Beitrag editieren)

                                  S Offline
                                  S Offline
                                  Sammy0608
                                  wrote on last edited by
                                  #22

                                  @dslraser Ah ok Danke dachte das machen Moderatoren hier. Ist ja von Forum zu Forum unterschiedlich

                                  1 Reply Last reply
                                  0

                                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                  With your input, this post could be even better 💗

                                  Register Login
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  Support us

                                  ioBroker
                                  Community Adapters
                                  Donate

                                  242

                                  Online

                                  32.8k

                                  Users

                                  82.8k

                                  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