Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • 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

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Blockly Script mit Button Starten und Stoppen?

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.0k

Blockly Script mit Button Starten und Stoppen?

Geplant Angeheftet Gesperrt Verschoben Blockly
27 Beiträge 5 Kommentatoren 3.8k Aufrufe 4 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • E EFE

    @BBTown Vielen Dank,
    jetzt zum verständnis !
    Dieser Script ist zum Steuern der Rolladen
    Bild Text

    und dieser für den Fenster Kontakt Steuerung
    Bild Text


    <xml xmlns="http://www.w3.org/1999/xhtml">
    <block type="on_ext" id="}(GJM@hL_WGqGrc=8w/?" x="-212" y="-213">
    <mutation items="1"></mutation>
    <field name="CONDITION">ne</field>
    <field name="ACK_CONDITION"></field>
    <value name="OID0">
    <shadow type="field_oid" id="eX%{FY%1v=!Qqn.iM,@J">
    <field name="oid">hm-rpc.0.MEQ1234567.1.STATE</field>
    </shadow>
    </value>
    <statement name="STATEMENT">
    <block type="controls_if" id="4w0gzUO?@K-NOGYg7+r@">
    <mutation elseif="1" else="1"></mutation>
    <value name="IF0">
    <block type="logic_compare" id="Oom?srzbcRy)WcYq[UH+">
    <field name="OP">EQ</field>
    <value name="A">
    <block type="get_value" id="MQXWOArZuXwZ3dYIk"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1234567.1.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="%Tg8ve|k7J+w[Bv}?ghD"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="gz=8AcC1KO8_a*;YS4=A"> <field name="COMMENT">Rolladen der Terrassentür wird durch öffnen der Terrassentür ebenfalls geöffnet</field> <next> <block type="controls_if" id=";wh;FMUU^^!Utc[=^_wy"> <value name="IF0"> <block type="logic_compare" id="x-W?vDRT0BNhEBCT*_n="> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="X{-wM(v}1Y!JknTP=F|-"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field> </block> </value> <value name="B"> <block type="math_number" id="oZmBA,#RlGAi4RCuDfsb"> <field name="NUM">85</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="uD!0PTu/3joo[^2w8shG"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="nd+(CWJB4!K^OkS3idq">
    <field name="NUM">100</field>
    </block>
    </value>
    </block>
    </statement>
    <next>
    <block type="comment" id="gGP?{Jr*EmX|,Ki:RhG">
    <field name="COMMENT">Sofern es dunkel ist, wird zudem das Licht auf der Terrasse eingeschaltet</field>
    <next>
    <block type="controls_if" id="HT3pi:h5/3+@
    [sEH#n"> <value name="IF0"> <block type="logic_compare" id="Rf*ihJbquW];D]-f.NC="> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/DEXxlR_Z0L6|3%k63nP"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.JEQ1234567.17.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="%#0v7bA24?hSs::IpObR"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="}^-}DGLEB,u2%p@aFn-J"> <value name="IF0"> <block type="logic_compare" id="X{xe/C^B)4%RuFXdf">
    <field name="OP">EQ</field>
    <value name="A">
    <block type="get_value" id="jT/bcv25;,+Z@w9nD~">
    <field name="ATTR">val</field>
    <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
    </block>
    </value>
    <value name="B">
    <block type="logic_boolean" id="gUSPCYhI/J%OceX[Dd%R">
    <field name="BOOL">FALSE</field>
    </block>
    </value>
    </block>
    </value>
    <statement name="DO0">
    <block type="control" id="tYSXDVXW5F?L{R_ZW+W_">
    <mutation delay_input="false"></mutation>
    <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
    <field name="WITH_DELAY">FALSE</field>
    <value name="VALUE">
    <block type="logic_boolean" id="lidnbx)JL/=G}EDOLTV"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="OyISy(j?S{8i?-~#I8y@" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="~hS[Cjr/R0l:ff]]uW#w"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="@lwKG;sSWO]FsRNncLb8"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1234567.1.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="R)|X3p)o3/%[zU)4c1EK"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="LJ|_^U(3W3Ss8P]6afl^"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="K2[m]1V@VS6vOcTYQ+u">
    <field name="ATTR">val</field>
    <field name="OID">hm-rega.0.7593</field>
    </block>
    </value>
    <value name="B">
    <block type="math_number" id="(/E(hHvGt^12C*/;tG"> <field name="NUM">2</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="controls_if" id="8NNyZtz5wVuMEGm|yFQ">
    <value name="IF0">
    <block type="logic_compare" id="6Nd6=uptK*%0czHTU64V">
    <field name="OP">NEQ</field>
    <value name="A">
    <block type="get_value" id="=gF.CUJp%[N]5#]%:gYX">
    <field name="ATTR">val</field>
    <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
    </block>
    </value>
    <value name="B">
    <block type="math_number" id="7M}z!EExPaHZM[Qp|*#2">
    <field name="NUM">40</field>
    </block>
    </value>
    </block>
    </value>
    <statement name="DO0">
    <block type="control" id="eiD[xuc^*ifI}OLHqw">
    <mutation delay_input="false"></mutation>
    <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
    <field name="WITH_DELAY">FALSE</field>
    <value name="VALUE">
    <block type="math_number" id="|~tgkuN@3F,B@fnf{G">
    <field name="NUM">40</field>
    </block>
    </value>
    </block>
    </statement>
    </block>
    </statement>
    <statement name="ELSE">
    <block type="comment" id="^ksDmSwf+EXR!.|1NHU?">
    <field name="COMMENT">Rolladen der Terrassentür wird durch schließen der Terrassentür ebenfalls geschlossen</field>
    <next>
    <block type="comment" id="y(BFsGJP?j5fVO20~6=0">
    <field name="COMMENT">Wenn alle anderen Rolladen ebenfalls verschlossen sind</field>
    <next>
    <block type="controls_if" id=":Af{QMfu#{MRB:w5i[Dx">
    <value name="IF0">
    <block type="logic_compare" id="|emPlsVSnBx^6le|82e|">
    <field name="OP">EQ</field>
    <value name="A">
    <block type="get_value" id="G~-)]2%9ZeuZvYGEc4"> <field name="ATTR">val</field> <field name="OID">hm-rega.0.7593</field> </block> </value> <value name="B"> <block type="math_number" id=".w6Xh[!@IcPHNgsbWbw">
    <field name="NUM">1</field>
    </block>
    </value>
    </block>
    </value>
    <statement name="DO0">
    <block type="controls_if" id="P}?2ue7H#/Q@RM.:o~/I">
    <value name="IF0">
    <block type="logic_compare" id="n~qbMHVDBBBaKV#9}9kZ">
    <field name="OP">GT</field>
    <value name="A">
    <block type="get_value" id="L
    [pOa.y~yB,1iM@Un)t">
    <field name="ATTR">val</field>
    <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
    </block>
    </value>
    <value name="B">
    <block type="math_number" id="vb1F!{{zwk/G1mcs^shm">
    <field name="NUM">0</field>
    </block>
    </value>
    </block>
    </value>
    <statement name="DO0">
    <block type="control" id="[bi}.kofkjfswY2|Ee
    ,">
    <mutation delay_input="false"></mutation>
    <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
    <field name="WITH_DELAY">FALSE</field>
    <value name="VALUE">
    <block type="math_number" id="w42~amA;C,Dl3lJcDhgr">
    <field name="NUM">0</field>
    </block>
    </value>
    </block>
    </statement>
    <next>
    <block type="comment" id="95j::wTcj#3_VD#vB}d-">
    <field name="COMMENT">Sofern das Licht auf der Terrasse eingeschaltet war, wird es ausgeschaltet</field>
    <next>
    <block type="controls_if" id="W]}#MhXQ!%AhrXwmPo45">
    <value name="IF0">
    <block type="logic_compare" id="7m,u;LdeLY6xVwE?)=(E">
    <field name="OP">EQ</field>
    <value name="A">
    <block type="get_value" id="G:-:~=dbAg%1S6+u=vS">
    <field name="ATTR">val</field>
    <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
    </block>
    </value>
    <value name="B">
    <block type="logic_boolean" id="p_xhlR(9|klSS@,Y]m;.">
    <field name="BOOL">TRUE</field>
    </block>
    </value>
    </block>
    </value>
    <statement name="DO0">
    <block type="control" id="21_4j
    ~FI.CA=ytw0dkl">
    <mutation delay_input="false"></mutation>
    <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
    <field name="WITH_DELAY">FALSE</field>
    <value name="VALUE">
    <block type="logic_boolean" id="S-?9G23mEHWC7j=gn]Is">
    <field name="BOOL">FALSE</field>
    </block>
    </value>
    </block>
    </statement>
    <next>
    <block type="comment" id="B.~DeR_3dHQ[-l/v^*@"> <field name="COMMENT">Sofern die Steckdose der Terrasse eingeschaltet war, wird diese ausgeschaltet</field> <next> <block type="controls_if" id="-#zR)oGXP7tefe4Pgh|i"> <value name="IF0"> <block type="logic_compare" id="VHf7!XQ9=E{riEC0*}ky"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ShwexER{_Sc3U^XkKfU">
    <field name="ATTR">val</field>
    <field name="OID">hm-rpc.1.KEQ1234567.3.STATE</field>
    </block>
    </value>
    <value name="B">
    <block type="logic_boolean" id="zVR;nFt#n=*QNyVT?IL,">
    <field name="BOOL">TRUE</field>
    </block>
    </value>
    </block>
    </value>
    <statement name="DO0">
    <block type="control" id="^-R.4u(oJLL+HrFzE4Vy">
    <mutation delay_input="false"></mutation>
    <field name="OID">hm-rpc.1.KEQ1234567.3.STATE</field>
    <field name="WITH_DELAY">FALSE</field>
    <value name="VALUE">
    <block type="logic_boolean" id="IFUjkVv%8GcAigKHZJ%r">
    <field name="BOOL">FALSE</field>
    </block>
    </value>
    </block>
    </statement>
    </block>
    </next>
    </block>
    </next>
    </block>
    </next>
    </block>
    </next>
    </block>
    </statement>
    </block>
    </next>
    </block>
    </next>
    </block>
    </statement>
    </block>
    </statement>
    </block>
    </xml>

    oder ?
    ich muss dadran basteln !
    ich muss meine eigenen Datenpunkte eintragen.

    BBTownB Offline
    BBTownB Offline
    BBTown
    schrieb am zuletzt editiert von
    #17

    @EFE das sind doch beides die gleichen?!

    ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

    E 1 Antwort Letzte Antwort
    0
    • BBTownB BBTown

      @EFE das sind doch beides die gleichen?!

      E Offline
      E Offline
      EFE
      schrieb am zuletzt editiert von
      #18

      @BBTown said in Blockly Script mit Button Starten und Stoppen?:

      @EFE das sind doch beides die gleichen?!

      stimmt...:)
      ich meinte
      alt text

      BBTownB 1 Antwort Letzte Antwort
      0
      • E EFE

        @BBTown said in Blockly Script mit Button Starten und Stoppen?:

        @EFE das sind doch beides die gleichen?!

        stimmt...:)
        ich meinte
        alt text

        BBTownB Offline
        BBTownB Offline
        BBTown
        schrieb am zuletzt editiert von
        #19

        @EFE und zu was ?
        zu 1 oder zu 2?

        ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

        1 Antwort Letzte Antwort
        0
        • E EFE

          @BBTown Vielen Dank,
          jetzt zum verständnis !
          Dieser Script ist zum Steuern der Rolladen
          Bild Text

          und dieser für den Fenster Kontakt Steuerung
          Bild Text


          <xml xmlns="http://www.w3.org/1999/xhtml">
          <block type="on_ext" id="}(GJM@hL_WGqGrc=8w/?" x="-212" y="-213">
          <mutation items="1"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
          <shadow type="field_oid" id="eX%{FY%1v=!Qqn.iM,@J">
          <field name="oid">hm-rpc.0.MEQ1234567.1.STATE</field>
          </shadow>
          </value>
          <statement name="STATEMENT">
          <block type="controls_if" id="4w0gzUO?@K-NOGYg7+r@">
          <mutation elseif="1" else="1"></mutation>
          <value name="IF0">
          <block type="logic_compare" id="Oom?srzbcRy)WcYq[UH+">
          <field name="OP">EQ</field>
          <value name="A">
          <block type="get_value" id="MQXWOArZuXwZ3dYIk"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1234567.1.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="%Tg8ve|k7J+w[Bv}?ghD"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="gz=8AcC1KO8_a*;YS4=A"> <field name="COMMENT">Rolladen der Terrassentür wird durch öffnen der Terrassentür ebenfalls geöffnet</field> <next> <block type="controls_if" id=";wh;FMUU^^!Utc[=^_wy"> <value name="IF0"> <block type="logic_compare" id="x-W?vDRT0BNhEBCT*_n="> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="X{-wM(v}1Y!JknTP=F|-"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field> </block> </value> <value name="B"> <block type="math_number" id="oZmBA,#RlGAi4RCuDfsb"> <field name="NUM">85</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="uD!0PTu/3joo[^2w8shG"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="nd+(CWJB4!K^OkS3idq">
          <field name="NUM">100</field>
          </block>
          </value>
          </block>
          </statement>
          <next>
          <block type="comment" id="gGP?{Jr*EmX|,Ki:RhG">
          <field name="COMMENT">Sofern es dunkel ist, wird zudem das Licht auf der Terrasse eingeschaltet</field>
          <next>
          <block type="controls_if" id="HT3pi:h5/3+@
          [sEH#n"> <value name="IF0"> <block type="logic_compare" id="Rf*ihJbquW];D]-f.NC="> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/DEXxlR_Z0L6|3%k63nP"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.JEQ1234567.17.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="%#0v7bA24?hSs::IpObR"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="}^-}DGLEB,u2%p@aFn-J"> <value name="IF0"> <block type="logic_compare" id="X{xe/C^B)4%RuFXdf">
          <field name="OP">EQ</field>
          <value name="A">
          <block type="get_value" id="jT/bcv25;,+Z@w9nD~">
          <field name="ATTR">val</field>
          <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
          </block>
          </value>
          <value name="B">
          <block type="logic_boolean" id="gUSPCYhI/J%OceX[Dd%R">
          <field name="BOOL">FALSE</field>
          </block>
          </value>
          </block>
          </value>
          <statement name="DO0">
          <block type="control" id="tYSXDVXW5F?L{R_ZW+W_">
          <mutation delay_input="false"></mutation>
          <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
          <field name="WITH_DELAY">FALSE</field>
          <value name="VALUE">
          <block type="logic_boolean" id="lidnbx)JL/=G}EDOLTV"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="OyISy(j?S{8i?-~#I8y@" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="~hS[Cjr/R0l:ff]]uW#w"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="@lwKG;sSWO]FsRNncLb8"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1234567.1.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="R)|X3p)o3/%[zU)4c1EK"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="LJ|_^U(3W3Ss8P]6afl^"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="K2[m]1V@VS6vOcTYQ+u">
          <field name="ATTR">val</field>
          <field name="OID">hm-rega.0.7593</field>
          </block>
          </value>
          <value name="B">
          <block type="math_number" id="(/E(hHvGt^12C*/;tG"> <field name="NUM">2</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="controls_if" id="8NNyZtz5wVuMEGm|yFQ">
          <value name="IF0">
          <block type="logic_compare" id="6Nd6=uptK*%0czHTU64V">
          <field name="OP">NEQ</field>
          <value name="A">
          <block type="get_value" id="=gF.CUJp%[N]5#]%:gYX">
          <field name="ATTR">val</field>
          <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
          </block>
          </value>
          <value name="B">
          <block type="math_number" id="7M}z!EExPaHZM[Qp|*#2">
          <field name="NUM">40</field>
          </block>
          </value>
          </block>
          </value>
          <statement name="DO0">
          <block type="control" id="eiD[xuc^*ifI}OLHqw">
          <mutation delay_input="false"></mutation>
          <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
          <field name="WITH_DELAY">FALSE</field>
          <value name="VALUE">
          <block type="math_number" id="|~tgkuN@3F,B@fnf{G">
          <field name="NUM">40</field>
          </block>
          </value>
          </block>
          </statement>
          </block>
          </statement>
          <statement name="ELSE">
          <block type="comment" id="^ksDmSwf+EXR!.|1NHU?">
          <field name="COMMENT">Rolladen der Terrassentür wird durch schließen der Terrassentür ebenfalls geschlossen</field>
          <next>
          <block type="comment" id="y(BFsGJP?j5fVO20~6=0">
          <field name="COMMENT">Wenn alle anderen Rolladen ebenfalls verschlossen sind</field>
          <next>
          <block type="controls_if" id=":Af{QMfu#{MRB:w5i[Dx">
          <value name="IF0">
          <block type="logic_compare" id="|emPlsVSnBx^6le|82e|">
          <field name="OP">EQ</field>
          <value name="A">
          <block type="get_value" id="G~-)]2%9ZeuZvYGEc4"> <field name="ATTR">val</field> <field name="OID">hm-rega.0.7593</field> </block> </value> <value name="B"> <block type="math_number" id=".w6Xh[!@IcPHNgsbWbw">
          <field name="NUM">1</field>
          </block>
          </value>
          </block>
          </value>
          <statement name="DO0">
          <block type="controls_if" id="P}?2ue7H#/Q@RM.:o~/I">
          <value name="IF0">
          <block type="logic_compare" id="n~qbMHVDBBBaKV#9}9kZ">
          <field name="OP">GT</field>
          <value name="A">
          <block type="get_value" id="L
          [pOa.y~yB,1iM@Un)t">
          <field name="ATTR">val</field>
          <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
          </block>
          </value>
          <value name="B">
          <block type="math_number" id="vb1F!{{zwk/G1mcs^shm">
          <field name="NUM">0</field>
          </block>
          </value>
          </block>
          </value>
          <statement name="DO0">
          <block type="control" id="[bi}.kofkjfswY2|Ee
          ,">
          <mutation delay_input="false"></mutation>
          <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
          <field name="WITH_DELAY">FALSE</field>
          <value name="VALUE">
          <block type="math_number" id="w42~amA;C,Dl3lJcDhgr">
          <field name="NUM">0</field>
          </block>
          </value>
          </block>
          </statement>
          <next>
          <block type="comment" id="95j::wTcj#3_VD#vB}d-">
          <field name="COMMENT">Sofern das Licht auf der Terrasse eingeschaltet war, wird es ausgeschaltet</field>
          <next>
          <block type="controls_if" id="W]}#MhXQ!%AhrXwmPo45">
          <value name="IF0">
          <block type="logic_compare" id="7m,u;LdeLY6xVwE?)=(E">
          <field name="OP">EQ</field>
          <value name="A">
          <block type="get_value" id="G:-:~=dbAg%1S6+u=vS">
          <field name="ATTR">val</field>
          <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
          </block>
          </value>
          <value name="B">
          <block type="logic_boolean" id="p_xhlR(9|klSS@,Y]m;.">
          <field name="BOOL">TRUE</field>
          </block>
          </value>
          </block>
          </value>
          <statement name="DO0">
          <block type="control" id="21_4j
          ~FI.CA=ytw0dkl">
          <mutation delay_input="false"></mutation>
          <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
          <field name="WITH_DELAY">FALSE</field>
          <value name="VALUE">
          <block type="logic_boolean" id="S-?9G23mEHWC7j=gn]Is">
          <field name="BOOL">FALSE</field>
          </block>
          </value>
          </block>
          </statement>
          <next>
          <block type="comment" id="B.~DeR_3dHQ[-l/v^*@"> <field name="COMMENT">Sofern die Steckdose der Terrasse eingeschaltet war, wird diese ausgeschaltet</field> <next> <block type="controls_if" id="-#zR)oGXP7tefe4Pgh|i"> <value name="IF0"> <block type="logic_compare" id="VHf7!XQ9=E{riEC0*}ky"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ShwexER{_Sc3U^XkKfU">
          <field name="ATTR">val</field>
          <field name="OID">hm-rpc.1.KEQ1234567.3.STATE</field>
          </block>
          </value>
          <value name="B">
          <block type="logic_boolean" id="zVR;nFt#n=*QNyVT?IL,">
          <field name="BOOL">TRUE</field>
          </block>
          </value>
          </block>
          </value>
          <statement name="DO0">
          <block type="control" id="^-R.4u(oJLL+HrFzE4Vy">
          <mutation delay_input="false"></mutation>
          <field name="OID">hm-rpc.1.KEQ1234567.3.STATE</field>
          <field name="WITH_DELAY">FALSE</field>
          <value name="VALUE">
          <block type="logic_boolean" id="IFUjkVv%8GcAigKHZJ%r">
          <field name="BOOL">FALSE</field>
          </block>
          </value>
          </block>
          </statement>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
          </statement>
          </block>
          </next>
          </block>
          </next>
          </block>
          </statement>
          </block>
          </statement>
          </block>
          </xml>

          oder ?
          ich muss dadran basteln !
          ich muss meine eigenen Datenpunkte eintragen.

          BBTownB Offline
          BBTownB Offline
          BBTown
          schrieb am zuletzt editiert von
          #20

          @EFE hier steht es doch ausführlich

          ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

          1 Antwort Letzte Antwort
          0
          • E EFE

            @BBTown Vielen Dank,
            jetzt zum verständnis !
            Dieser Script ist zum Steuern der Rolladen
            Bild Text

            und dieser für den Fenster Kontakt Steuerung
            Bild Text


            <xml xmlns="http://www.w3.org/1999/xhtml">
            <block type="on_ext" id="}(GJM@hL_WGqGrc=8w/?" x="-212" y="-213">
            <mutation items="1"></mutation>
            <field name="CONDITION">ne</field>
            <field name="ACK_CONDITION"></field>
            <value name="OID0">
            <shadow type="field_oid" id="eX%{FY%1v=!Qqn.iM,@J">
            <field name="oid">hm-rpc.0.MEQ1234567.1.STATE</field>
            </shadow>
            </value>
            <statement name="STATEMENT">
            <block type="controls_if" id="4w0gzUO?@K-NOGYg7+r@">
            <mutation elseif="1" else="1"></mutation>
            <value name="IF0">
            <block type="logic_compare" id="Oom?srzbcRy)WcYq[UH+">
            <field name="OP">EQ</field>
            <value name="A">
            <block type="get_value" id="MQXWOArZuXwZ3dYIk"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1234567.1.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="%Tg8ve|k7J+w[Bv}?ghD"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="gz=8AcC1KO8_a*;YS4=A"> <field name="COMMENT">Rolladen der Terrassentür wird durch öffnen der Terrassentür ebenfalls geöffnet</field> <next> <block type="controls_if" id=";wh;FMUU^^!Utc[=^_wy"> <value name="IF0"> <block type="logic_compare" id="x-W?vDRT0BNhEBCT*_n="> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="X{-wM(v}1Y!JknTP=F|-"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field> </block> </value> <value name="B"> <block type="math_number" id="oZmBA,#RlGAi4RCuDfsb"> <field name="NUM">85</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="uD!0PTu/3joo[^2w8shG"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="nd+(CWJB4!K^OkS3idq">
            <field name="NUM">100</field>
            </block>
            </value>
            </block>
            </statement>
            <next>
            <block type="comment" id="gGP?{Jr*EmX|,Ki:RhG">
            <field name="COMMENT">Sofern es dunkel ist, wird zudem das Licht auf der Terrasse eingeschaltet</field>
            <next>
            <block type="controls_if" id="HT3pi:h5/3+@
            [sEH#n"> <value name="IF0"> <block type="logic_compare" id="Rf*ihJbquW];D]-f.NC="> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/DEXxlR_Z0L6|3%k63nP"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.JEQ1234567.17.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="%#0v7bA24?hSs::IpObR"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="}^-}DGLEB,u2%p@aFn-J"> <value name="IF0"> <block type="logic_compare" id="X{xe/C^B)4%RuFXdf">
            <field name="OP">EQ</field>
            <value name="A">
            <block type="get_value" id="jT/bcv25;,+Z@w9nD~">
            <field name="ATTR">val</field>
            <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
            </block>
            </value>
            <value name="B">
            <block type="logic_boolean" id="gUSPCYhI/J%OceX[Dd%R">
            <field name="BOOL">FALSE</field>
            </block>
            </value>
            </block>
            </value>
            <statement name="DO0">
            <block type="control" id="tYSXDVXW5F?L{R_ZW+W_">
            <mutation delay_input="false"></mutation>
            <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
            <block type="logic_boolean" id="lidnbx)JL/=G}EDOLTV"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="OyISy(j?S{8i?-~#I8y@" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="~hS[Cjr/R0l:ff]]uW#w"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="@lwKG;sSWO]FsRNncLb8"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1234567.1.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="R)|X3p)o3/%[zU)4c1EK"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="LJ|_^U(3W3Ss8P]6afl^"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="K2[m]1V@VS6vOcTYQ+u">
            <field name="ATTR">val</field>
            <field name="OID">hm-rega.0.7593</field>
            </block>
            </value>
            <value name="B">
            <block type="math_number" id="(/E(hHvGt^12C*/;tG"> <field name="NUM">2</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="controls_if" id="8NNyZtz5wVuMEGm|yFQ">
            <value name="IF0">
            <block type="logic_compare" id="6Nd6=uptK*%0czHTU64V">
            <field name="OP">NEQ</field>
            <value name="A">
            <block type="get_value" id="=gF.CUJp%[N]5#]%:gYX">
            <field name="ATTR">val</field>
            <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
            </block>
            </value>
            <value name="B">
            <block type="math_number" id="7M}z!EExPaHZM[Qp|*#2">
            <field name="NUM">40</field>
            </block>
            </value>
            </block>
            </value>
            <statement name="DO0">
            <block type="control" id="eiD[xuc^*ifI}OLHqw">
            <mutation delay_input="false"></mutation>
            <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
            <block type="math_number" id="|~tgkuN@3F,B@fnf{G">
            <field name="NUM">40</field>
            </block>
            </value>
            </block>
            </statement>
            </block>
            </statement>
            <statement name="ELSE">
            <block type="comment" id="^ksDmSwf+EXR!.|1NHU?">
            <field name="COMMENT">Rolladen der Terrassentür wird durch schließen der Terrassentür ebenfalls geschlossen</field>
            <next>
            <block type="comment" id="y(BFsGJP?j5fVO20~6=0">
            <field name="COMMENT">Wenn alle anderen Rolladen ebenfalls verschlossen sind</field>
            <next>
            <block type="controls_if" id=":Af{QMfu#{MRB:w5i[Dx">
            <value name="IF0">
            <block type="logic_compare" id="|emPlsVSnBx^6le|82e|">
            <field name="OP">EQ</field>
            <value name="A">
            <block type="get_value" id="G~-)]2%9ZeuZvYGEc4"> <field name="ATTR">val</field> <field name="OID">hm-rega.0.7593</field> </block> </value> <value name="B"> <block type="math_number" id=".w6Xh[!@IcPHNgsbWbw">
            <field name="NUM">1</field>
            </block>
            </value>
            </block>
            </value>
            <statement name="DO0">
            <block type="controls_if" id="P}?2ue7H#/Q@RM.:o~/I">
            <value name="IF0">
            <block type="logic_compare" id="n~qbMHVDBBBaKV#9}9kZ">
            <field name="OP">GT</field>
            <value name="A">
            <block type="get_value" id="L
            [pOa.y~yB,1iM@Un)t">
            <field name="ATTR">val</field>
            <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
            </block>
            </value>
            <value name="B">
            <block type="math_number" id="vb1F!{{zwk/G1mcs^shm">
            <field name="NUM">0</field>
            </block>
            </value>
            </block>
            </value>
            <statement name="DO0">
            <block type="control" id="[bi}.kofkjfswY2|Ee
            ,">
            <mutation delay_input="false"></mutation>
            <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
            <block type="math_number" id="w42~amA;C,Dl3lJcDhgr">
            <field name="NUM">0</field>
            </block>
            </value>
            </block>
            </statement>
            <next>
            <block type="comment" id="95j::wTcj#3_VD#vB}d-">
            <field name="COMMENT">Sofern das Licht auf der Terrasse eingeschaltet war, wird es ausgeschaltet</field>
            <next>
            <block type="controls_if" id="W]}#MhXQ!%AhrXwmPo45">
            <value name="IF0">
            <block type="logic_compare" id="7m,u;LdeLY6xVwE?)=(E">
            <field name="OP">EQ</field>
            <value name="A">
            <block type="get_value" id="G:-:~=dbAg%1S6+u=vS">
            <field name="ATTR">val</field>
            <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
            </block>
            </value>
            <value name="B">
            <block type="logic_boolean" id="p_xhlR(9|klSS@,Y]m;.">
            <field name="BOOL">TRUE</field>
            </block>
            </value>
            </block>
            </value>
            <statement name="DO0">
            <block type="control" id="21_4j
            ~FI.CA=ytw0dkl">
            <mutation delay_input="false"></mutation>
            <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
            <block type="logic_boolean" id="S-?9G23mEHWC7j=gn]Is">
            <field name="BOOL">FALSE</field>
            </block>
            </value>
            </block>
            </statement>
            <next>
            <block type="comment" id="B.~DeR_3dHQ[-l/v^*@"> <field name="COMMENT">Sofern die Steckdose der Terrasse eingeschaltet war, wird diese ausgeschaltet</field> <next> <block type="controls_if" id="-#zR)oGXP7tefe4Pgh|i"> <value name="IF0"> <block type="logic_compare" id="VHf7!XQ9=E{riEC0*}ky"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ShwexER{_Sc3U^XkKfU">
            <field name="ATTR">val</field>
            <field name="OID">hm-rpc.1.KEQ1234567.3.STATE</field>
            </block>
            </value>
            <value name="B">
            <block type="logic_boolean" id="zVR;nFt#n=*QNyVT?IL,">
            <field name="BOOL">TRUE</field>
            </block>
            </value>
            </block>
            </value>
            <statement name="DO0">
            <block type="control" id="^-R.4u(oJLL+HrFzE4Vy">
            <mutation delay_input="false"></mutation>
            <field name="OID">hm-rpc.1.KEQ1234567.3.STATE</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
            <block type="logic_boolean" id="IFUjkVv%8GcAigKHZJ%r">
            <field name="BOOL">FALSE</field>
            </block>
            </value>
            </block>
            </statement>
            </block>
            </next>
            </block>
            </next>
            </block>
            </next>
            </block>
            </next>
            </block>
            </statement>
            </block>
            </next>
            </block>
            </next>
            </block>
            </statement>
            </block>
            </statement>
            </block>
            </xml>

            oder ?
            ich muss dadran basteln !
            ich muss meine eigenen Datenpunkte eintragen.

            E Offline
            E Offline
            EFE
            schrieb am zuletzt editiert von
            #21

            @EFE sagte in Blockly Script mit Button Starten und Stoppen?:

            @BBTown Vielen Dank,
            jetzt zum verständnis !
            Dieser Script ist zum Steuern der Rolladen
            Bild Text

            und dieser für den Fenster Kontakt Steuerung
            Bild Text


            <xml xmlns="http://www.w3.org/1999/xhtml">
            <block type="on_ext" id="}(GJM@hL_WGqGrc=8w/?" x="-212" y="-213">
            <mutation items="1"></mutation>
            <field name="CONDITION">ne</field>
            <field name="ACK_CONDITION"></field>
            <value name="OID0">
            <shadow type="field_oid" id="eX%{FY%1v=!Qqn.iM,@J">
            <field name="oid">hm-rpc.0.MEQ1234567.1.STATE</field>
            </shadow>
            </value>
            <statement name="STATEMENT">
            <block type="controls_if" id="4w0gzUO?@K-NOGYg7+r@">
            <mutation elseif="1" else="1"></mutation>
            <value name="IF0">
            <block type="logic_compare" id="Oom?srzbcRy)WcYq[UH+">
            <field name="OP">EQ</field>
            <value name="A">
            <block type="get_value" id="MQXWOArZuXwZ3dYIk"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1234567.1.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="%Tg8ve|k7J+w[Bv}?ghD"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="gz=8AcC1KO8_a*;YS4=A"> <field name="COMMENT">Rolladen der Terrassentür wird durch öffnen der Terrassentür ebenfalls geöffnet</field> <next> <block type="controls_if" id=";wh;FMUU^^!Utc[=^_wy"> <value name="IF0"> <block type="logic_compare" id="x-W?vDRT0BNhEBCT*_n="> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="X{-wM(v}1Y!JknTP=F|-"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field> </block> </value> <value name="B"> <block type="math_number" id="oZmBA,#RlGAi4RCuDfsb"> <field name="NUM">85</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="uD!0PTu/3joo[^2w8shG"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="nd+(CWJB4!K^OkS3idq">
            <field name="NUM">100</field>
            </block>
            </value>
            </block>
            </statement>
            <next>
            <block type="comment" id="gGP?{Jr*EmX|,Ki:RhG">
            <field name="COMMENT">Sofern es dunkel ist, wird zudem das Licht auf der Terrasse eingeschaltet</field>
            <next>
            <block type="controls_if" id="HT3pi:h5/3+@
            [sEH#n"> <value name="IF0"> <block type="logic_compare" id="Rf*ihJbquW];D]-f.NC="> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/DEXxlR_Z0L6|3%k63nP"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.JEQ1234567.17.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="%#0v7bA24?hSs::IpObR"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="}^-}DGLEB,u2%p@aFn-J"> <value name="IF0"> <block type="logic_compare" id="X{xe/C^B)4%RuFXdf">
            <field name="OP">EQ</field>
            <value name="A">
            <block type="get_value" id="jT/bcv25;,+Z@w9nD~">
            <field name="ATTR">val</field>
            <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
            </block>
            </value>
            <value name="B">
            <block type="logic_boolean" id="gUSPCYhI/J%OceX[Dd%R">
            <field name="BOOL">FALSE</field>
            </block>
            </value>
            </block>
            </value>
            <statement name="DO0">
            <block type="control" id="tYSXDVXW5F?L{R_ZW+W_">
            <mutation delay_input="false"></mutation>
            <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
            <block type="logic_boolean" id="lidnbx)JL/=G}EDOLTV"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="OyISy(j?S{8i?-~#I8y@" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="~hS[Cjr/R0l:ff]]uW#w"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="@lwKG;sSWO]FsRNncLb8"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1234567.1.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="R)|X3p)o3/%[zU)4c1EK"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="LJ|_^U(3W3Ss8P]6afl^"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="K2[m]1V@VS6vOcTYQ+u">
            <field name="ATTR">val</field>
            <field name="OID">hm-rega.0.7593</field>
            </block>
            </value>
            <value name="B">
            <block type="math_number" id="(/E(hHvGt^12C*/;tG"> <field name="NUM">2</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="controls_if" id="8NNyZtz5wVuMEGm|yFQ">
            <value name="IF0">
            <block type="logic_compare" id="6Nd6=uptK*%0czHTU64V">
            <field name="OP">NEQ</field>
            <value name="A">
            <block type="get_value" id="=gF.CUJp%[N]5#]%:gYX">
            <field name="ATTR">val</field>
            <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
            </block>
            </value>
            <value name="B">
            <block type="math_number" id="7M}z!EExPaHZM[Qp|*#2">
            <field name="NUM">40</field>
            </block>
            </value>
            </block>
            </value>
            <statement name="DO0">
            <block type="control" id="eiD[xuc^*ifI}OLHqw">
            <mutation delay_input="false"></mutation>
            <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
            <block type="math_number" id="|~tgkuN@3F,B@fnf{G">
            <field name="NUM">40</field>
            </block>
            </value>
            </block>
            </statement>
            </block>
            </statement>
            <statement name="ELSE">
            <block type="comment" id="^ksDmSwf+EXR!.|1NHU?">
            <field name="COMMENT">Rolladen der Terrassentür wird durch schließen der Terrassentür ebenfalls geschlossen</field>
            <next>
            <block type="comment" id="y(BFsGJP?j5fVO20~6=0">
            <field name="COMMENT">Wenn alle anderen Rolladen ebenfalls verschlossen sind</field>
            <next>
            <block type="controls_if" id=":Af{QMfu#{MRB:w5i[Dx">
            <value name="IF0">
            <block type="logic_compare" id="|emPlsVSnBx^6le|82e|">
            <field name="OP">EQ</field>
            <value name="A">
            <block type="get_value" id="G~-)]2%9ZeuZvYGEc4"> <field name="ATTR">val</field> <field name="OID">hm-rega.0.7593</field> </block> </value> <value name="B"> <block type="math_number" id=".w6Xh[!@IcPHNgsbWbw">
            <field name="NUM">1</field>
            </block>
            </value>
            </block>
            </value>
            <statement name="DO0">
            <block type="controls_if" id="P}?2ue7H#/Q@RM.:o~/I">
            <value name="IF0">
            <block type="logic_compare" id="n~qbMHVDBBBaKV#9}9kZ">
            <field name="OP">GT</field>
            <value name="A">
            <block type="get_value" id="L
            [pOa.y~yB,1iM@Un)t">
            <field name="ATTR">val</field>
            <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
            </block>
            </value>
            <value name="B">
            <block type="math_number" id="vb1F!{{zwk/G1mcs^shm">
            <field name="NUM">0</field>
            </block>
            </value>
            </block>
            </value>
            <statement name="DO0">
            <block type="control" id="[bi}.kofkjfswY2|Ee
            ,">
            <mutation delay_input="false"></mutation>
            <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
            <block type="math_number" id="w42~amA;C,Dl3lJcDhgr">
            <field name="NUM">0</field>
            </block>
            </value>
            </block>
            </statement>
            <next>
            <block type="comment" id="95j::wTcj#3_VD#vB}d-">
            <field name="COMMENT">Sofern das Licht auf der Terrasse eingeschaltet war, wird es ausgeschaltet</field>
            <next>
            <block type="controls_if" id="W]}#MhXQ!%AhrXwmPo45">
            <value name="IF0">
            <block type="logic_compare" id="7m,u;LdeLY6xVwE?)=(E">
            <field name="OP">EQ</field>
            <value name="A">
            <block type="get_value" id="G:-:~=dbAg%1S6+u=vS">
            <field name="ATTR">val</field>
            <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
            </block>
            </value>
            <value name="B">
            <block type="logic_boolean" id="p_xhlR(9|klSS@,Y]m;.">
            <field name="BOOL">TRUE</field>
            </block>
            </value>
            </block>
            </value>
            <statement name="DO0">
            <block type="control" id="21_4j
            ~FI.CA=ytw0dkl">
            <mutation delay_input="false"></mutation>
            <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
            <block type="logic_boolean" id="S-?9G23mEHWC7j=gn]Is">
            <field name="BOOL">FALSE</field>
            </block>
            </value>
            </block>
            </statement>
            <next>
            <block type="comment" id="B.~DeR_3dHQ[-l/v^*@"> <field name="COMMENT">Sofern die Steckdose der Terrasse eingeschaltet war, wird diese ausgeschaltet</field> <next> <block type="controls_if" id="-#zR)oGXP7tefe4Pgh|i"> <value name="IF0"> <block type="logic_compare" id="VHf7!XQ9=E{riEC0*}ky"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ShwexER{_Sc3U^XkKfU">
            <field name="ATTR">val</field>
            <field name="OID">hm-rpc.1.KEQ1234567.3.STATE</field>
            </block>
            </value>
            <value name="B">
            <block type="logic_boolean" id="zVR;nFt#n=*QNyVT?IL,">
            <field name="BOOL">TRUE</field>
            </block>
            </value>
            </block>
            </value>
            <statement name="DO0">
            <block type="control" id="^-R.4u(oJLL+HrFzE4Vy">
            <mutation delay_input="false"></mutation>
            <field name="OID">hm-rpc.1.KEQ1234567.3.STATE</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
            <block type="logic_boolean" id="IFUjkVv%8GcAigKHZJ%r">
            <field name="BOOL">FALSE</field>
            </block>
            </value>
            </block>
            </statement>
            </block>
            </next>
            </block>
            </next>
            </block>
            </next>
            </block>
            </next>
            </block>
            </statement>
            </block>
            </next>
            </block>
            </next>
            </block>
            </statement>
            </block>
            </statement>
            </block>
            </xml>

            oder ?
            ich muss dadran basteln !
            ich muss meine eigenen Datenpunkte eintragen.

            BBTownB 1 Antwort Letzte Antwort
            0
            • E EFE

              @EFE sagte in Blockly Script mit Button Starten und Stoppen?:

              @BBTown Vielen Dank,
              jetzt zum verständnis !
              Dieser Script ist zum Steuern der Rolladen
              Bild Text

              und dieser für den Fenster Kontakt Steuerung
              Bild Text


              <xml xmlns="http://www.w3.org/1999/xhtml">
              <block type="on_ext" id="}(GJM@hL_WGqGrc=8w/?" x="-212" y="-213">
              <mutation items="1"></mutation>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
              <shadow type="field_oid" id="eX%{FY%1v=!Qqn.iM,@J">
              <field name="oid">hm-rpc.0.MEQ1234567.1.STATE</field>
              </shadow>
              </value>
              <statement name="STATEMENT">
              <block type="controls_if" id="4w0gzUO?@K-NOGYg7+r@">
              <mutation elseif="1" else="1"></mutation>
              <value name="IF0">
              <block type="logic_compare" id="Oom?srzbcRy)WcYq[UH+">
              <field name="OP">EQ</field>
              <value name="A">
              <block type="get_value" id="MQXWOArZuXwZ3dYIk"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1234567.1.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="%Tg8ve|k7J+w[Bv}?ghD"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="gz=8AcC1KO8_a*;YS4=A"> <field name="COMMENT">Rolladen der Terrassentür wird durch öffnen der Terrassentür ebenfalls geöffnet</field> <next> <block type="controls_if" id=";wh;FMUU^^!Utc[=^_wy"> <value name="IF0"> <block type="logic_compare" id="x-W?vDRT0BNhEBCT*_n="> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="X{-wM(v}1Y!JknTP=F|-"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field> </block> </value> <value name="B"> <block type="math_number" id="oZmBA,#RlGAi4RCuDfsb"> <field name="NUM">85</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="uD!0PTu/3joo[^2w8shG"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="nd+(CWJB4!K^OkS3idq">
              <field name="NUM">100</field>
              </block>
              </value>
              </block>
              </statement>
              <next>
              <block type="comment" id="gGP?{Jr*EmX|,Ki:RhG">
              <field name="COMMENT">Sofern es dunkel ist, wird zudem das Licht auf der Terrasse eingeschaltet</field>
              <next>
              <block type="controls_if" id="HT3pi:h5/3+@
              [sEH#n"> <value name="IF0"> <block type="logic_compare" id="Rf*ihJbquW];D]-f.NC="> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/DEXxlR_Z0L6|3%k63nP"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.JEQ1234567.17.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="%#0v7bA24?hSs::IpObR"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="}^-}DGLEB,u2%p@aFn-J"> <value name="IF0"> <block type="logic_compare" id="X{xe/C^B)4%RuFXdf">
              <field name="OP">EQ</field>
              <value name="A">
              <block type="get_value" id="jT/bcv25;,+Z@w9nD~">
              <field name="ATTR">val</field>
              <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
              </block>
              </value>
              <value name="B">
              <block type="logic_boolean" id="gUSPCYhI/J%OceX[Dd%R">
              <field name="BOOL">FALSE</field>
              </block>
              </value>
              </block>
              </value>
              <statement name="DO0">
              <block type="control" id="tYSXDVXW5F?L{R_ZW+W_">
              <mutation delay_input="false"></mutation>
              <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
              <block type="logic_boolean" id="lidnbx)JL/=G}EDOLTV"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="OyISy(j?S{8i?-~#I8y@" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="~hS[Cjr/R0l:ff]]uW#w"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="@lwKG;sSWO]FsRNncLb8"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1234567.1.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="R)|X3p)o3/%[zU)4c1EK"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="LJ|_^U(3W3Ss8P]6afl^"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="K2[m]1V@VS6vOcTYQ+u">
              <field name="ATTR">val</field>
              <field name="OID">hm-rega.0.7593</field>
              </block>
              </value>
              <value name="B">
              <block type="math_number" id="(/E(hHvGt^12C*/;tG"> <field name="NUM">2</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="controls_if" id="8NNyZtz5wVuMEGm|yFQ">
              <value name="IF0">
              <block type="logic_compare" id="6Nd6=uptK*%0czHTU64V">
              <field name="OP">NEQ</field>
              <value name="A">
              <block type="get_value" id="=gF.CUJp%[N]5#]%:gYX">
              <field name="ATTR">val</field>
              <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
              </block>
              </value>
              <value name="B">
              <block type="math_number" id="7M}z!EExPaHZM[Qp|*#2">
              <field name="NUM">40</field>
              </block>
              </value>
              </block>
              </value>
              <statement name="DO0">
              <block type="control" id="eiD[xuc^*ifI}OLHqw">
              <mutation delay_input="false"></mutation>
              <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
              <block type="math_number" id="|~tgkuN@3F,B@fnf{G">
              <field name="NUM">40</field>
              </block>
              </value>
              </block>
              </statement>
              </block>
              </statement>
              <statement name="ELSE">
              <block type="comment" id="^ksDmSwf+EXR!.|1NHU?">
              <field name="COMMENT">Rolladen der Terrassentür wird durch schließen der Terrassentür ebenfalls geschlossen</field>
              <next>
              <block type="comment" id="y(BFsGJP?j5fVO20~6=0">
              <field name="COMMENT">Wenn alle anderen Rolladen ebenfalls verschlossen sind</field>
              <next>
              <block type="controls_if" id=":Af{QMfu#{MRB:w5i[Dx">
              <value name="IF0">
              <block type="logic_compare" id="|emPlsVSnBx^6le|82e|">
              <field name="OP">EQ</field>
              <value name="A">
              <block type="get_value" id="G~-)]2%9ZeuZvYGEc4"> <field name="ATTR">val</field> <field name="OID">hm-rega.0.7593</field> </block> </value> <value name="B"> <block type="math_number" id=".w6Xh[!@IcPHNgsbWbw">
              <field name="NUM">1</field>
              </block>
              </value>
              </block>
              </value>
              <statement name="DO0">
              <block type="controls_if" id="P}?2ue7H#/Q@RM.:o~/I">
              <value name="IF0">
              <block type="logic_compare" id="n~qbMHVDBBBaKV#9}9kZ">
              <field name="OP">GT</field>
              <value name="A">
              <block type="get_value" id="L
              [pOa.y~yB,1iM@Un)t">
              <field name="ATTR">val</field>
              <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
              </block>
              </value>
              <value name="B">
              <block type="math_number" id="vb1F!{{zwk/G1mcs^shm">
              <field name="NUM">0</field>
              </block>
              </value>
              </block>
              </value>
              <statement name="DO0">
              <block type="control" id="[bi}.kofkjfswY2|Ee
              ,">
              <mutation delay_input="false"></mutation>
              <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
              <block type="math_number" id="w42~amA;C,Dl3lJcDhgr">
              <field name="NUM">0</field>
              </block>
              </value>
              </block>
              </statement>
              <next>
              <block type="comment" id="95j::wTcj#3_VD#vB}d-">
              <field name="COMMENT">Sofern das Licht auf der Terrasse eingeschaltet war, wird es ausgeschaltet</field>
              <next>
              <block type="controls_if" id="W]}#MhXQ!%AhrXwmPo45">
              <value name="IF0">
              <block type="logic_compare" id="7m,u;LdeLY6xVwE?)=(E">
              <field name="OP">EQ</field>
              <value name="A">
              <block type="get_value" id="G:-:~=dbAg%1S6+u=vS">
              <field name="ATTR">val</field>
              <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
              </block>
              </value>
              <value name="B">
              <block type="logic_boolean" id="p_xhlR(9|klSS@,Y]m;.">
              <field name="BOOL">TRUE</field>
              </block>
              </value>
              </block>
              </value>
              <statement name="DO0">
              <block type="control" id="21_4j
              ~FI.CA=ytw0dkl">
              <mutation delay_input="false"></mutation>
              <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
              <block type="logic_boolean" id="S-?9G23mEHWC7j=gn]Is">
              <field name="BOOL">FALSE</field>
              </block>
              </value>
              </block>
              </statement>
              <next>
              <block type="comment" id="B.~DeR_3dHQ[-l/v^*@"> <field name="COMMENT">Sofern die Steckdose der Terrasse eingeschaltet war, wird diese ausgeschaltet</field> <next> <block type="controls_if" id="-#zR)oGXP7tefe4Pgh|i"> <value name="IF0"> <block type="logic_compare" id="VHf7!XQ9=E{riEC0*}ky"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ShwexER{_Sc3U^XkKfU">
              <field name="ATTR">val</field>
              <field name="OID">hm-rpc.1.KEQ1234567.3.STATE</field>
              </block>
              </value>
              <value name="B">
              <block type="logic_boolean" id="zVR;nFt#n=*QNyVT?IL,">
              <field name="BOOL">TRUE</field>
              </block>
              </value>
              </block>
              </value>
              <statement name="DO0">
              <block type="control" id="^-R.4u(oJLL+HrFzE4Vy">
              <mutation delay_input="false"></mutation>
              <field name="OID">hm-rpc.1.KEQ1234567.3.STATE</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
              <block type="logic_boolean" id="IFUjkVv%8GcAigKHZJ%r">
              <field name="BOOL">FALSE</field>
              </block>
              </value>
              </block>
              </statement>
              </block>
              </next>
              </block>
              </next>
              </block>
              </next>
              </block>
              </next>
              </block>
              </statement>
              </block>
              </next>
              </block>
              </next>
              </block>
              </statement>
              </block>
              </statement>
              </block>
              </xml>

              oder ?
              ich muss dadran basteln !
              ich muss meine eigenen Datenpunkte eintragen.

              BBTownB Offline
              BBTownB Offline
              BBTown
              schrieb am zuletzt editiert von
              #22

              @EFE sagte in Blockly Script mit Button Starten und Stoppen?:

              Dieser Script ist zum Steuern der Rolladen

              Nein ... dieses Script steuert einzig und allein den Rolladen der Terrassentür.

              ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

              1 Antwort Letzte Antwort
              0
              • E Offline
                E Offline
                EFE
                schrieb am zuletzt editiert von
                #23

                @BBTown ok jetzt hab ich es verstanden !
                Ich mach mich mal an die Arbeit für deine Mühe und deiner Vorlagen vielen danke :)

                1 Antwort Letzte Antwort
                0
                • E Offline
                  E Offline
                  EFE
                  schrieb am zuletzt editiert von
                  #24

                  Hi @BBTown ,
                  ich hab mal rumgebastelt aber das ende vom Lied.

                  Rolladen fahren nach Astro morgens Hoch
                  abends auch runter kurz vorher meldet das Alexa soweit super aber.....

                  Screenshot at Juni 16 12-57-44.png

                  Ich habe ein Fensterkontakt an die Terrassentüre eingebaut genauer gesagt ein Sonof v1 mit Tasmota .
                  Sobald dieser Auf ist Triggert es auf false
                  und bei Geschlossen auf true.
                  ist auch im iobroker zu sehen !

                  Ich will den Kontakt dazu nutzten steht die Türe auf false dann soll das Rolladen Wohnzimmer Schließen deaktiviert werden.

                  Wenn die Terrassentüre später als nach Sonnenuntergang geschlossen wird ,
                  dann muss ich diese Manuell runterfahren währe ja kein Problem
                  und da ja der Kontakt auf true(tTerrassentüre Geschlossen)steht sollte bei nächsten Sonnenuntergang die Rollos automatisch runterfahren .
                  Ich hab den Blockly gelöst und in ein neuen Blocky geschrieben .
                  Screenshot at Juni 16 14-05-29.png

                  Ich hab es mit diesem Blockly versucht aber es klappt nicht.
                  Wie gesagt Türe auf nicht Triggern sobald zu bei nächsten mal Triggern
                  hab ich da etwas übersehen ??

                  Screenshot at Juni 16 14-19-19.png

                  BBTownB 1 Antwort Letzte Antwort
                  0
                  • E EFE

                    Hi @BBTown ,
                    ich hab mal rumgebastelt aber das ende vom Lied.

                    Rolladen fahren nach Astro morgens Hoch
                    abends auch runter kurz vorher meldet das Alexa soweit super aber.....

                    Screenshot at Juni 16 12-57-44.png

                    Ich habe ein Fensterkontakt an die Terrassentüre eingebaut genauer gesagt ein Sonof v1 mit Tasmota .
                    Sobald dieser Auf ist Triggert es auf false
                    und bei Geschlossen auf true.
                    ist auch im iobroker zu sehen !

                    Ich will den Kontakt dazu nutzten steht die Türe auf false dann soll das Rolladen Wohnzimmer Schließen deaktiviert werden.

                    Wenn die Terrassentüre später als nach Sonnenuntergang geschlossen wird ,
                    dann muss ich diese Manuell runterfahren währe ja kein Problem
                    und da ja der Kontakt auf true(tTerrassentüre Geschlossen)steht sollte bei nächsten Sonnenuntergang die Rollos automatisch runterfahren .
                    Ich hab den Blockly gelöst und in ein neuen Blocky geschrieben .
                    Screenshot at Juni 16 14-05-29.png

                    Ich hab es mit diesem Blockly versucht aber es klappt nicht.
                    Wie gesagt Türe auf nicht Triggern sobald zu bei nächsten mal Triggern
                    hab ich da etwas übersehen ??

                    Screenshot at Juni 16 14-19-19.png

                    BBTownB Offline
                    BBTownB Offline
                    BBTown
                    schrieb am zuletzt editiert von
                    #25

                    @EFE Du magst es offensichtlich nicht nach meinem Prinzip einrichten, sondern willst es unbedingt anders handhaben.
                    Dann kann ich dir leider nicht helfen

                    ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

                    1 Antwort Letzte Antwort
                    0
                    • E Offline
                      E Offline
                      EFE
                      schrieb am zuletzt editiert von EFE
                      #26

                      Ja, bin irgendwie nicht klar gekommen mit deinem Script.
                      Fans es zu kompliziert

                      1 Antwort Letzte Antwort
                      0
                      • iomountainI Offline
                        iomountainI Offline
                        iomountain
                        schrieb am zuletzt editiert von
                        #27

                        @EFE
                        Trigger in Trigger geht so nicht, was du anstatt dem inneren Trigger brauchst ist eine Abfrageblock mit "und" und der Trigger Astro sollte die äußere Klammer sein. Aber dann bist du wieder bei der Lösung von @BBTown.
                        PS.: man kann nicht genug Debug-Bausteine verwenden um zu sehen was läuft.

                        1 Antwort Letzte Antwort
                        0
                        Antworten
                        • In einem neuen Thema antworten
                        Anmelden zum Antworten
                        • Älteste zuerst
                        • Neuste zuerst
                        • Meiste Stimmen


                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        295

                        Online

                        32.6k

                        Benutzer

                        82.0k

                        Themen

                        1.3m

                        Beiträge
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                        ioBroker Community 2014-2025
                        logo
                        • Anmelden

                        • Du hast noch kein Konto? Registrieren

                        • Anmelden oder registrieren, um zu suchen
                        • Erster Beitrag
                          Letzter Beitrag
                        0
                        • Home
                        • Aktuell
                        • Tags
                        • Ungelesen 0
                        • Kategorien
                        • Unreplied
                        • Beliebt
                        • GitHub
                        • Docu
                        • Hilfe