Weiter zum Inhalt
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Hell
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dunkel
  • 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 für Rollladen +Sperre

NEWS

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

  • Verwendung von KI bitte immer deutlich kennzeichnen
    HomoranH
    Homoran
    10
    1
    322

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

Blockly für Rollladen +Sperre

Geplant Angeheftet Gesperrt Verschoben Blockly
20 Beiträge 3 Kommentatoren 1.3k Aufrufe 3 Beobachtet
  • Ä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.
  • Mono990M Offline
    Mono990M Offline
    Mono990
    schrieb am zuletzt editiert von
    #1

    Hallo
    Ich habe ein kleines Blockly gebastelt für meine Terrassentür.
    aber leider geht es noch nicht. ich hoffe ihr könnt mir weiterhelfen.

    Das Rollo soll um 21 uhr runtergehen außer die tür ist offen "Status 2" aber das Rollo soll dann runtergehen sobald die Tür zu gemacht wird zb.um 22:30 uhr oder auch 1:00 uhr egal welche zeit . Das ganze in den Zeitraum von 21:00-7:00 uhr.
    Tür Status: 0= zu
    Tür Status: 1 = Kipp
    Tür Status: 2 = offen

    Unbenannt.png

    K 1 Antwort Letzte Antwort
    0
    • Mono990M Mono990

      Hallo
      Ich habe ein kleines Blockly gebastelt für meine Terrassentür.
      aber leider geht es noch nicht. ich hoffe ihr könnt mir weiterhelfen.

      Das Rollo soll um 21 uhr runtergehen außer die tür ist offen "Status 2" aber das Rollo soll dann runtergehen sobald die Tür zu gemacht wird zb.um 22:30 uhr oder auch 1:00 uhr egal welche zeit . Das ganze in den Zeitraum von 21:00-7:00 uhr.
      Tür Status: 0= zu
      Tür Status: 1 = Kipp
      Tür Status: 2 = offen

      Unbenannt.png

      K Offline
      K Offline
      Kuddel
      schrieb am zuletzt editiert von
      #2

      @mono990 ich würde es mit zwei Triggern versuchen, dann läuft das Skript nicht alle 5 Minuten.

      1. Trigger: 21 Uhr
      2. Trigger: Status Terassentür
      • Dann jeweils den Status der Tür überprüfen
      • In Trigger 2 noch die aktuelle Zeit prüfen (21 bis 7 Uhr)
      • das Rollo herunterfahren
      Mono990M 1 Antwort Letzte Antwort
      0
      • K Kuddel

        @mono990 ich würde es mit zwei Triggern versuchen, dann läuft das Skript nicht alle 5 Minuten.

        1. Trigger: 21 Uhr
        2. Trigger: Status Terassentür
        • Dann jeweils den Status der Tür überprüfen
        • In Trigger 2 noch die aktuelle Zeit prüfen (21 bis 7 Uhr)
        • das Rollo herunterfahren
        Mono990M Offline
        Mono990M Offline
        Mono990
        schrieb am zuletzt editiert von Mono990
        #3

        @kuddel könntest du mir das in einem Beispiel zeigen?

        hier ist meins


        <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
        <variable id="W[~p(rzjRofohEAF2v7o">position</variable>
        <variable id="pv(p0MFmpT1lVnbLheY6">status</variable>
        </variables>
        <block type="schedule" id="k^.}M;23Ff]a#]utS#(" x="88" y="138"> <field name="SCHEDULE">*/5 * * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="}2xgQK3cl~Y#SxT4Tyj">
        <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
        <value name="VALUE">
        <block type="get_value" id="trm_e8Lu{pYoAO~/wV?">
        <field name="ATTR">val</field>
        <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
        </block>
        </value>
        <next>
        <block type="variables_set" id="l=r?sZRqG-jyYCmiLq4"> <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field> <value name="VALUE"> <block type="get_value" id="|]5IOX5Y7,X9XsQP-cP">
        <field name="ATTR">val</field>
        <field name="OID">0_userdata.0.Fenster.Kuche_Tur</field>
        </block>
        </value>
        <next>
        <block type="controls_if" id="SQjoUjU
        |]rkeg65pIg7">
        <mutation elseif="1"></mutation>
        <value name="IF0">
        <block type="logic_operation" id="Zj5a8W}d${x|zb;}|w[">
        <field name="OP">AND</field>
        <value name="A">
        <block type="logic_operation" id="?1b-;_F#%%+E$ZJ#hd1e">
        <field name="OP">AND</field>
        <value name="A">
        <block type="logic_operation" id="kKGARpx4qGqGWRk5f,C,">
        <field name="OP">OR</field>
        <value name="A">
        <block type="logic_compare" id="Vo(;lUGB-QZN=58BZF!R">
        <field name="OP">EQ</field>
        <value name="A">
        <block type="variables_get" id="^o4YL4G:%o}?[?#T;X|.">
        <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field>
        </block>
        </value>
        <value name="B">
        <block type="math_number" id="vYS1pWDgoC
        !n),vnAE"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="KDDZuX8Gitq}W8*j|oaa"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="v^8Lvi.M@@1pPR~TVEyR"> <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field> </block> </value> <value name="B"> <block type="math_number" id="Kv8aB(yvDE[;@|9Mlkna"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="vVWJC)%xr!ZZzJUs.6_Q"> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="b;c4Q;F#6w3G35p5Tp%C"> <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field> </block> </value> <value name="B"> <block type="math_number" id="7TeaJv1[Ecnh]1;/3p*">
        <field name="NUM">100</field>
        </block>
        </value>
        </block>
        </value>
        </block>
        </value>
        <value name="B">
        <block type="time_compare" id="S@^x62l!ez,:wMPinI)E">
        <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
        <field name="OPTION">between</field>
        <field name="START_TIME">21:00</field>
        <field name="END_TIME">7:59</field>
        </block>
        </value>
        </block>
        </value>
        <statement name="DO0">
        <block type="control" id="a0WQEB$![21Wv26rxO,"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="JGjP}F{flmWbJV+g~^kP"> <field name="NUM">0</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_operation" id=",,MDUfQm,vx@|74Vf|c["> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="U$kD,BSqr+h!HXU:4{r%"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="YR5^jWdk]d5nby66RsW">
        <field name="OP">OR</field>
        <value name="A">
        <block type="logic_compare" id="%$OurK#0nm-Suw/n@I}O">
        <field name="OP">EQ</field>
        <value name="A">
        <block type="variables_get" id="j]w;wI#O/wmC,C=hCqk">
        <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field>
        </block>
        </value>
        <value name="B">
        <block type="math_number" id="dfO]jqI{@Xo6dBunc|E"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="O(OJn=6#%?{QLY*Ib8|#"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="G7EJ)e3N!l?fPR*Peic2"> <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field> </block> </value> <value name="B"> <block type="math_number" id="3ZjDoPbSlDtJB9+yZ2q4"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="OH~M24XmmK9K|E;d
        ti">
        <field name="OP">LT</field>
        <value name="A">
        <block type="variables_get" id="4mRs]aClX{jA2MNS1(?">
        <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
        </block>
        </value>
        <value name="B">
        <block type="math_number" id="dN1*WVJ^puu@9``?HI_S">
        <field name="NUM">0</field>
        </block>
        </value>
        </block>
        </value>
        </block>
        </value>
        <value name="B">
        <block type="time_compare" id="pZ.wWBS/Q_SE6A3Oc)."> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">8:00</field> <field name="END_TIME">9:00</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="Spa~|KK9tj@~OMB!}H2">
        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
        <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
        <field name="WITH_DELAY">FALSE</field>
        <value name="VALUE">
        <block type="math_number" id="6tsok9$[He1Ncv~!7Lb
        ">
        <field name="NUM">100</field>
        </block>
        </value>
        </block>
        </statement>
        </block>
        </next>
        </block>
        </next>
        </block>
        </statement>
        </block>
        </xml>

        CinimodC 1 Antwort Letzte Antwort
        0
        • Mono990M Mono990

          @kuddel könntest du mir das in einem Beispiel zeigen?

          hier ist meins


          <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
          <variable id="W[~p(rzjRofohEAF2v7o">position</variable>
          <variable id="pv(p0MFmpT1lVnbLheY6">status</variable>
          </variables>
          <block type="schedule" id="k^.}M;23Ff]a#]utS#(" x="88" y="138"> <field name="SCHEDULE">*/5 * * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="}2xgQK3cl~Y#SxT4Tyj">
          <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
          <value name="VALUE">
          <block type="get_value" id="trm_e8Lu{pYoAO~/wV?">
          <field name="ATTR">val</field>
          <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
          </block>
          </value>
          <next>
          <block type="variables_set" id="l=r?sZRqG-jyYCmiLq4"> <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field> <value name="VALUE"> <block type="get_value" id="|]5IOX5Y7,X9XsQP-cP">
          <field name="ATTR">val</field>
          <field name="OID">0_userdata.0.Fenster.Kuche_Tur</field>
          </block>
          </value>
          <next>
          <block type="controls_if" id="SQjoUjU
          |]rkeg65pIg7">
          <mutation elseif="1"></mutation>
          <value name="IF0">
          <block type="logic_operation" id="Zj5a8W}d${x|zb;}|w[">
          <field name="OP">AND</field>
          <value name="A">
          <block type="logic_operation" id="?1b-;_F#%%+E$ZJ#hd1e">
          <field name="OP">AND</field>
          <value name="A">
          <block type="logic_operation" id="kKGARpx4qGqGWRk5f,C,">
          <field name="OP">OR</field>
          <value name="A">
          <block type="logic_compare" id="Vo(;lUGB-QZN=58BZF!R">
          <field name="OP">EQ</field>
          <value name="A">
          <block type="variables_get" id="^o4YL4G:%o}?[?#T;X|.">
          <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field>
          </block>
          </value>
          <value name="B">
          <block type="math_number" id="vYS1pWDgoC
          !n),vnAE"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="KDDZuX8Gitq}W8*j|oaa"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="v^8Lvi.M@@1pPR~TVEyR"> <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field> </block> </value> <value name="B"> <block type="math_number" id="Kv8aB(yvDE[;@|9Mlkna"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="vVWJC)%xr!ZZzJUs.6_Q"> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="b;c4Q;F#6w3G35p5Tp%C"> <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field> </block> </value> <value name="B"> <block type="math_number" id="7TeaJv1[Ecnh]1;/3p*">
          <field name="NUM">100</field>
          </block>
          </value>
          </block>
          </value>
          </block>
          </value>
          <value name="B">
          <block type="time_compare" id="S@^x62l!ez,:wMPinI)E">
          <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
          <field name="OPTION">between</field>
          <field name="START_TIME">21:00</field>
          <field name="END_TIME">7:59</field>
          </block>
          </value>
          </block>
          </value>
          <statement name="DO0">
          <block type="control" id="a0WQEB$![21Wv26rxO,"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="JGjP}F{flmWbJV+g~^kP"> <field name="NUM">0</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_operation" id=",,MDUfQm,vx@|74Vf|c["> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="U$kD,BSqr+h!HXU:4{r%"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="YR5^jWdk]d5nby66RsW">
          <field name="OP">OR</field>
          <value name="A">
          <block type="logic_compare" id="%$OurK#0nm-Suw/n@I}O">
          <field name="OP">EQ</field>
          <value name="A">
          <block type="variables_get" id="j]w;wI#O/wmC,C=hCqk">
          <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field>
          </block>
          </value>
          <value name="B">
          <block type="math_number" id="dfO]jqI{@Xo6dBunc|E"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="O(OJn=6#%?{QLY*Ib8|#"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="G7EJ)e3N!l?fPR*Peic2"> <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field> </block> </value> <value name="B"> <block type="math_number" id="3ZjDoPbSlDtJB9+yZ2q4"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="OH~M24XmmK9K|E;d
          ti">
          <field name="OP">LT</field>
          <value name="A">
          <block type="variables_get" id="4mRs]aClX{jA2MNS1(?">
          <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
          </block>
          </value>
          <value name="B">
          <block type="math_number" id="dN1*WVJ^puu@9``?HI_S">
          <field name="NUM">0</field>
          </block>
          </value>
          </block>
          </value>
          </block>
          </value>
          <value name="B">
          <block type="time_compare" id="pZ.wWBS/Q_SE6A3Oc)."> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">8:00</field> <field name="END_TIME">9:00</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="Spa~|KK9tj@~OMB!}H2">
          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
          <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
          <field name="WITH_DELAY">FALSE</field>
          <value name="VALUE">
          <block type="math_number" id="6tsok9$[He1Ncv~!7Lb
          ">
          <field name="NUM">100</field>
          </block>
          </value>
          </block>
          </statement>
          </block>
          </next>
          </block>
          </next>
          </block>
          </statement>
          </block>
          </xml>

          CinimodC Offline
          CinimodC Offline
          Cinimod
          Most Active
          schrieb am zuletzt editiert von Cinimod
          #4

          @mono990

          Sowas etwa:

          Bildschirmfoto 2021-10-16 um 09.13.13.png

          Hier der Code:

          <xml xmlns="https://developers.google.com/blockly/xml">
           <variables>
             <variable id="W[~p(rzjRofohEAF2v7o">position</variable>
             <variable id="pv(p0MFmpT1lVnbLheY6">status</variable>
           </variables>
           <block type="variables_set" id="}2xgQK3cl~Y#SxT4Tyj" x="38" y="187">
             <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
             <value name="VALUE">
               <block type="get_value" id="trm_e8Lu{pYoAO~/wV?">
                 <field name="ATTR">val</field>
                 <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
               </block>
             </value>
             <next>
               <block type="variables_set" id="l=r?sZRqG-jyYCmiLq4">
                 <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field>
                 <value name="VALUE">
                   <block type="get_value" id="|]5IOX5Y7,X9XsQP-cP">
                     <field name="ATTR">val</field>
                     <field name="OID">0_userdata.0.Fenster.Kuche_Tur</field>
                   </block>
                 </value>
                 <next>
                   <block type="schedule" id="a,a}fcfqe`*vEvi_qJ61">
                     <field name="SCHEDULE">0 21 * * *</field>
                     <statement name="STATEMENT">
                       <block type="controls_if" id="7vnu[;m^AdaTag:CpwUa">
                         <value name="IF0">
                           <block type="logic_operation" id="?evm+)t@K#JO8z_WmUfm" inline="false">
                             <field name="OP">AND</field>
                             <value name="A">
                               <block type="logic_compare" id="vVWJC)%xr!ZZzJUs.6_Q">
                                 <field name="OP">NEQ</field>
                                 <value name="A">
                                   <block type="variables_get" id="b;c4Q;F#6w3G35p5Tp%C">
                                     <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="math_number" id="7TeaJv1[Ecnh]1;/3p*">
                                     <field name="NUM">0</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <value name="B">
                               <block type="logic_compare" id="Vo(;lUGB-QZN=58BZF!R">
                                 <field name="OP">NEQ</field>
                                 <value name="A">
                                   <block type="variables_get" id="^o4YL4G:%o}?[?#T;X|.">
                                     <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="math_number" id="vYS1pWDgoC!n),vnAE">
                                     <field name="NUM">2</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                           </block>
                         </value>
                         <statement name="DO0">
                           <block type="control" id="a0WQEB$![21Wv26rxO,">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                             <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="math_number" id="JGjP}F{flmWbJV+g~^kP">
                                 <field name="NUM">0</field>
                               </block>
                             </value>
                           </block>
                         </statement>
                       </block>
                     </statement>
                     <next>
                       <block type="schedule" id="^8M(|n|ayd4hKam|IYk|">
                         <field name="SCHEDULE">0 8 * * *</field>
                         <statement name="STATEMENT">
                           <block type="controls_if" id="Zt|Z95wmZv?/fkTFt||7">
                             <value name="IF0">
                               <block type="logic_operation" id="-fzXwLzXNpZR8JOD:C{Y" inline="false">
                                 <field name="OP">AND</field>
                                 <value name="A">
                                   <block type="logic_compare" id=",}Q!hs_J_/#C1]K6VodI">
                                     <field name="OP">NEQ</field>
                                     <value name="A">
                                       <block type="variables_get" id="RA@?VHWjZtKNn1,Q@.}V">
                                         <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="math_number" id="MwvnB5if;Ht?y|yN@3-x">
                                         <field name="NUM">100</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="logic_compare" id="bUNRlGl`*m{u?FUA1zwI">
                                     <field name="OP">NEQ</field>
                                     <value name="A">
                                       <block type="variables_get" id="o7=1pBa?V1P,{[W#APbm">
                                         <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="math_number" id="HQve/P]r^h*3tg?,).Xt">
                                         <field name="NUM">2</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="control" id="$O#iV.f]s{9R9KfuI0a!">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                 <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                 <field name="WITH_DELAY">FALSE</field>
                                 <value name="VALUE">
                                   <block type="math_number" id="t*|O3bI@hXcF|]$d@?n}">
                                     <field name="NUM">100</field>
                                   </block>
                                 </value>
                               </block>
                             </statement>
                           </block>
                         </statement>
                         <next>
                           <block type="on_ext" id="*S-*-?Kmj=azHSy?ONjv">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                             <field name="CONDITION">ne</field>
                             <field name="ACK_CONDITION"></field>
                             <value name="OID0">
                               <shadow type="field_oid" id="ig%Y@m34^U)S,u/a.}vJ">
                                 <field name="oid">default</field>
                               </shadow>
                               <block type="field_oid" id="p2Mts=2:q|fqfG4+vV7x">
                                 <field name="oid">default</field>
                               </block>
                             </value>
                             <statement name="STATEMENT">
                               <block type="controls_if" id="V=v~wkUN?0MtS8{Z}MU;">
                                 <value name="IF0">
                                   <block type="logic_operation" id=",57UBvJH*0n48c$2oa{@" inline="false">
                                     <field name="OP">AND</field>
                                     <value name="A">
                                       <block type="time_compare" id="M33;_l5@kPT.n8}H:}Mj">
                                         <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                         <field name="OPTION">not between</field>
                                         <field name="START_TIME">08:00</field>
                                         <field name="END_TIME">21:00</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="logic_operation" id="%K9}*5[i%D,^nIyR!f3d" inline="false">
                                         <field name="OP">AND</field>
                                         <value name="A">
                                           <block type="logic_compare" id="!cwo7SnF%X]M:HRQgM[j">
                                             <field name="OP">NEQ</field>
                                             <value name="A">
                                               <block type="variables_get" id="$X-c*.H$Pc_S+_CO5r6C">
                                                 <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="math_number" id="P7yW;nmQ9C$DQ,$z5OE$">
                                                 <field name="NUM">0</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="logic_compare" id="fL`QA]6C?5?(wJB~?AX2">
                                             <field name="OP">EQ</field>
                                             <value name="A">
                                               <block type="on_source" id="i[gNu_+^m[._+(I|)iVg">
                                                 <field name="ATTR">state.val</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="math_number" id="LW[wCFC,VP?CAWio~f61">
                                                 <field name="NUM">0</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="control" id="!-%XT3uBo~rwxR0sg,^@">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="math_number" id="^WpfM,@ABGl=Wow-]1(P">
                                         <field name="NUM">0</field>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                               </block>
                             </statement>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </next>
               </block>
             </next>
           </block>
           <block type="comment" id="}2FkDn!D$!KcUI3Q|w:[" x="338" y="637">
             <field name="COMMENT">hier Tür status objekt</field>
           </block>
          </xml>
          

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

          K 1 Antwort Letzte Antwort
          0
          • CinimodC Cinimod

            @mono990

            Sowas etwa:

            Bildschirmfoto 2021-10-16 um 09.13.13.png

            Hier der Code:

            <xml xmlns="https://developers.google.com/blockly/xml">
             <variables>
               <variable id="W[~p(rzjRofohEAF2v7o">position</variable>
               <variable id="pv(p0MFmpT1lVnbLheY6">status</variable>
             </variables>
             <block type="variables_set" id="}2xgQK3cl~Y#SxT4Tyj" x="38" y="187">
               <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
               <value name="VALUE">
                 <block type="get_value" id="trm_e8Lu{pYoAO~/wV?">
                   <field name="ATTR">val</field>
                   <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                 </block>
               </value>
               <next>
                 <block type="variables_set" id="l=r?sZRqG-jyYCmiLq4">
                   <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field>
                   <value name="VALUE">
                     <block type="get_value" id="|]5IOX5Y7,X9XsQP-cP">
                       <field name="ATTR">val</field>
                       <field name="OID">0_userdata.0.Fenster.Kuche_Tur</field>
                     </block>
                   </value>
                   <next>
                     <block type="schedule" id="a,a}fcfqe`*vEvi_qJ61">
                       <field name="SCHEDULE">0 21 * * *</field>
                       <statement name="STATEMENT">
                         <block type="controls_if" id="7vnu[;m^AdaTag:CpwUa">
                           <value name="IF0">
                             <block type="logic_operation" id="?evm+)t@K#JO8z_WmUfm" inline="false">
                               <field name="OP">AND</field>
                               <value name="A">
                                 <block type="logic_compare" id="vVWJC)%xr!ZZzJUs.6_Q">
                                   <field name="OP">NEQ</field>
                                   <value name="A">
                                     <block type="variables_get" id="b;c4Q;F#6w3G35p5Tp%C">
                                       <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="math_number" id="7TeaJv1[Ecnh]1;/3p*">
                                       <field name="NUM">0</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="logic_compare" id="Vo(;lUGB-QZN=58BZF!R">
                                   <field name="OP">NEQ</field>
                                   <value name="A">
                                     <block type="variables_get" id="^o4YL4G:%o}?[?#T;X|.">
                                       <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="math_number" id="vYS1pWDgoC!n),vnAE">
                                       <field name="NUM">2</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="control" id="a0WQEB$![21Wv26rxO,">
                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                               <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                               <field name="WITH_DELAY">FALSE</field>
                               <value name="VALUE">
                                 <block type="math_number" id="JGjP}F{flmWbJV+g~^kP">
                                   <field name="NUM">0</field>
                                 </block>
                               </value>
                             </block>
                           </statement>
                         </block>
                       </statement>
                       <next>
                         <block type="schedule" id="^8M(|n|ayd4hKam|IYk|">
                           <field name="SCHEDULE">0 8 * * *</field>
                           <statement name="STATEMENT">
                             <block type="controls_if" id="Zt|Z95wmZv?/fkTFt||7">
                               <value name="IF0">
                                 <block type="logic_operation" id="-fzXwLzXNpZR8JOD:C{Y" inline="false">
                                   <field name="OP">AND</field>
                                   <value name="A">
                                     <block type="logic_compare" id=",}Q!hs_J_/#C1]K6VodI">
                                       <field name="OP">NEQ</field>
                                       <value name="A">
                                         <block type="variables_get" id="RA@?VHWjZtKNn1,Q@.}V">
                                           <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id="MwvnB5if;Ht?y|yN@3-x">
                                           <field name="NUM">100</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="logic_compare" id="bUNRlGl`*m{u?FUA1zwI">
                                       <field name="OP">NEQ</field>
                                       <value name="A">
                                         <block type="variables_get" id="o7=1pBa?V1P,{[W#APbm">
                                           <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id="HQve/P]r^h*3tg?,).Xt">
                                           <field name="NUM">2</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="control" id="$O#iV.f]s{9R9KfuI0a!">
                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                   <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="math_number" id="t*|O3bI@hXcF|]$d@?n}">
                                       <field name="NUM">100</field>
                                     </block>
                                   </value>
                                 </block>
                               </statement>
                             </block>
                           </statement>
                           <next>
                             <block type="on_ext" id="*S-*-?Kmj=azHSy?ONjv">
                               <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                               <field name="CONDITION">ne</field>
                               <field name="ACK_CONDITION"></field>
                               <value name="OID0">
                                 <shadow type="field_oid" id="ig%Y@m34^U)S,u/a.}vJ">
                                   <field name="oid">default</field>
                                 </shadow>
                                 <block type="field_oid" id="p2Mts=2:q|fqfG4+vV7x">
                                   <field name="oid">default</field>
                                 </block>
                               </value>
                               <statement name="STATEMENT">
                                 <block type="controls_if" id="V=v~wkUN?0MtS8{Z}MU;">
                                   <value name="IF0">
                                     <block type="logic_operation" id=",57UBvJH*0n48c$2oa{@" inline="false">
                                       <field name="OP">AND</field>
                                       <value name="A">
                                         <block type="time_compare" id="M33;_l5@kPT.n8}H:}Mj">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                           <field name="OPTION">not between</field>
                                           <field name="START_TIME">08:00</field>
                                           <field name="END_TIME">21:00</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="logic_operation" id="%K9}*5[i%D,^nIyR!f3d" inline="false">
                                           <field name="OP">AND</field>
                                           <value name="A">
                                             <block type="logic_compare" id="!cwo7SnF%X]M:HRQgM[j">
                                               <field name="OP">NEQ</field>
                                               <value name="A">
                                                 <block type="variables_get" id="$X-c*.H$Pc_S+_CO5r6C">
                                                   <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="math_number" id="P7yW;nmQ9C$DQ,$z5OE$">
                                                   <field name="NUM">0</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="logic_compare" id="fL`QA]6C?5?(wJB~?AX2">
                                               <field name="OP">EQ</field>
                                               <value name="A">
                                                 <block type="on_source" id="i[gNu_+^m[._+(I|)iVg">
                                                   <field name="ATTR">state.val</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="math_number" id="LW[wCFC,VP?CAWio~f61">
                                                   <field name="NUM">0</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="control" id="!-%XT3uBo~rwxR0sg,^@">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="math_number" id="^WpfM,@ABGl=Wow-]1(P">
                                           <field name="NUM">0</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
             <block type="comment" id="}2FkDn!D$!KcUI3Q|w:[" x="338" y="637">
               <field name="COMMENT">hier Tür status objekt</field>
             </block>
            </xml>
            

            K Offline
            K Offline
            Kuddel
            schrieb am zuletzt editiert von
            #5

            @cinimod bist du sicher, dass das so geht?

            Werden Status und die Position so nicht nur in die Variablen geschrieben, wenn Skript oder die Instanz gestartet werden?

            Wenn die Trigger auslösen werden Status und Position aber nicht erneut geprüft würde ich sagen

            CinimodC 2 Antworten Letzte Antwort
            0
            • K Kuddel

              @cinimod bist du sicher, dass das so geht?

              Werden Status und die Position so nicht nur in die Variablen geschrieben, wenn Skript oder die Instanz gestartet werden?

              Wenn die Trigger auslösen werden Status und Position aber nicht erneut geprüft würde ich sagen

              CinimodC Offline
              CinimodC Offline
              Cinimod
              Most Active
              schrieb am zuletzt editiert von
              #6

              @kuddel

              oh ja da hast du vollkommen recht ... muss ich noch mal überarbeiten

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

              1 Antwort Letzte Antwort
              0
              • K Kuddel

                @cinimod bist du sicher, dass das so geht?

                Werden Status und die Position so nicht nur in die Variablen geschrieben, wenn Skript oder die Instanz gestartet werden?

                Wenn die Trigger auslösen werden Status und Position aber nicht erneut geprüft würde ich sagen

                CinimodC Offline
                CinimodC Offline
                Cinimod
                Most Active
                schrieb am zuletzt editiert von Cinimod
                #7

                @Mono990

                hier dann noch mal überarbeietet:

                Bildschirmfoto 2021-10-16 um 09.21.44.png

                hier der Code:

                <block xmlns="https://developers.google.com/blockly/xml" type="comment" id="}2FkDn!D$!KcUI3Q|w:[" x="337.1552001953123" y="612.0615478515625">
                 <field name="COMMENT">hier Tür status objekt</field>
                </block>
                

                Mir stellt sich gerade noch die frage ob das Rollo denn nur hoch gehen darf wenn die Tür zu oder gekippt ist ? das würde ich ggf. raus nehmen.

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

                CinimodC 1 Antwort Letzte Antwort
                0
                • CinimodC Cinimod

                  @Mono990

                  hier dann noch mal überarbeietet:

                  Bildschirmfoto 2021-10-16 um 09.21.44.png

                  hier der Code:

                  <block xmlns="https://developers.google.com/blockly/xml" type="comment" id="}2FkDn!D$!KcUI3Q|w:[" x="337.1552001953123" y="612.0615478515625">
                   <field name="COMMENT">hier Tür status objekt</field>
                  </block>
                  

                  Mir stellt sich gerade noch die frage ob das Rollo denn nur hoch gehen darf wenn die Tür zu oder gekippt ist ? das würde ich ggf. raus nehmen.

                  CinimodC Offline
                  CinimodC Offline
                  Cinimod
                  Most Active
                  schrieb am zuletzt editiert von Cinimod
                  #8

                  @cinimod

                  hier dann noch mal: Rollo darf immer hoch gehen, unabhängig vom zustand der Tür.

                  Bildschirmfoto 2021-10-16 um 09.26.22.png

                  Code:

                  <xml xmlns="https://developers.google.com/blockly/xml">
                   <block type="schedule" id="a,a}fcfqe`*vEvi_qJ61" x="37" y="213">
                     <field name="SCHEDULE">0 21 * * *</field>
                     <statement name="STATEMENT">
                       <block type="controls_if" id="7vnu[;m^AdaTag:CpwUa">
                         <value name="IF0">
                           <block type="logic_operation" id="?evm+)t@K#JO8z_WmUfm" inline="false">
                             <field name="OP">AND</field>
                             <value name="A">
                               <block type="logic_compare" id="vVWJC)%xr!ZZzJUs.6_Q">
                                 <field name="OP">NEQ</field>
                                 <value name="A">
                                   <block type="get_value" id="cX?l8j|lnl1q1)j,wXa0">
                                     <field name="ATTR">val</field>
                                     <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="math_number" id="7TeaJv1[Ecnh]1;/3p*">
                                     <field name="NUM">0</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <value name="B">
                               <block type="logic_compare" id="Vo(;lUGB-QZN=58BZF!R">
                                 <field name="OP">NEQ</field>
                                 <value name="A">
                                   <block type="get_value" id="#{wbxG1/Q:tBM502:Oel">
                                     <field name="ATTR">val</field>
                                     <field name="OID">0_userdata.0.Fenster.Kuche_Tur</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="math_number" id="vYS1pWDgoC!n),vnAE">
                                     <field name="NUM">2</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                           </block>
                         </value>
                         <statement name="DO0">
                           <block type="control" id="a0WQEB$![21Wv26rxO,">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                             <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="math_number" id="JGjP}F{flmWbJV+g~^kP">
                                 <field name="NUM">0</field>
                               </block>
                             </value>
                           </block>
                         </statement>
                       </block>
                     </statement>
                     <next>
                       <block type="schedule" id="^8M(|n|ayd4hKam|IYk|">
                         <field name="SCHEDULE">0 8 * * *</field>
                         <statement name="STATEMENT">
                           <block type="controls_if" id="Zt|Z95wmZv?/fkTFt||7">
                             <value name="IF0">
                               <block type="logic_compare" id=",}Q!hs_J_/#C1]K6VodI">
                                 <field name="OP">NEQ</field>
                                 <value name="A">
                                   <block type="get_value" id="uZs_UpLP.:#Dp7Agq8zQ">
                                     <field name="ATTR">val</field>
                                     <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="math_number" id="MwvnB5if;Ht?y|yN@3-x">
                                     <field name="NUM">100</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="control" id="$O#iV.f]s{9R9KfuI0a!">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                 <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                 <field name="WITH_DELAY">FALSE</field>
                                 <value name="VALUE">
                                   <block type="math_number" id="t*|O3bI@hXcF|]$d@?n}">
                                     <field name="NUM">100</field>
                                   </block>
                                 </value>
                               </block>
                             </statement>
                           </block>
                         </statement>
                         <next>
                           <block type="on_ext" id="*S-*-?Kmj=azHSy?ONjv">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                             <field name="CONDITION">ne</field>
                             <field name="ACK_CONDITION"></field>
                             <value name="OID0">
                               <shadow type="field_oid" id="ig%Y@m34^U)S,u/a.}vJ">
                                 <field name="oid">default</field>
                               </shadow>
                               <block type="field_oid" id="p2Mts=2:q|fqfG4+vV7x">
                                 <field name="oid">default</field>
                               </block>
                             </value>
                             <statement name="STATEMENT">
                               <block type="controls_if" id="V=v~wkUN?0MtS8{Z}MU;">
                                 <value name="IF0">
                                   <block type="logic_operation" id=",57UBvJH*0n48c$2oa{@" inline="false">
                                     <field name="OP">AND</field>
                                     <value name="A">
                                       <block type="time_compare" id="M33;_l5@kPT.n8}H:}Mj">
                                         <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                         <field name="OPTION">not between</field>
                                         <field name="START_TIME">08:00</field>
                                         <field name="END_TIME">21:00</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="logic_operation" id="%K9}*5[i%D,^nIyR!f3d" inline="false">
                                         <field name="OP">AND</field>
                                         <value name="A">
                                           <block type="logic_compare" id="!cwo7SnF%X]M:HRQgM[j">
                                             <field name="OP">NEQ</field>
                                             <value name="A">
                                               <block type="get_value" id="X3F8;D+e#Ia}vjQ?ocWd">
                                                 <field name="ATTR">val</field>
                                                 <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="math_number" id="P7yW;nmQ9C$DQ,$z5OE$">
                                                 <field name="NUM">0</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="logic_compare" id="fL`QA]6C?5?(wJB~?AX2">
                                             <field name="OP">EQ</field>
                                             <value name="A">
                                               <block type="on_source" id="i[gNu_+^m[._+(I|)iVg">
                                                 <field name="ATTR">state.val</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="math_number" id="LW[wCFC,VP?CAWio~f61">
                                                 <field name="NUM">0</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="control" id="!-%XT3uBo~rwxR0sg,^@">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="math_number" id="^WpfM,@ABGl=Wow-]1(P">
                                         <field name="NUM">0</field>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                               </block>
                             </statement>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                   <block type="comment" id="}2FkDn!D$!KcUI3Q|w:[" x="337" y="563">
                     <field name="COMMENT">hier Tür status objekt</field>
                   </block>
                  </xml>
                  

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

                  Mono990M 1 Antwort Letzte Antwort
                  0
                  • CinimodC Cinimod

                    @cinimod

                    hier dann noch mal: Rollo darf immer hoch gehen, unabhängig vom zustand der Tür.

                    Bildschirmfoto 2021-10-16 um 09.26.22.png

                    Code:

                    <xml xmlns="https://developers.google.com/blockly/xml">
                     <block type="schedule" id="a,a}fcfqe`*vEvi_qJ61" x="37" y="213">
                       <field name="SCHEDULE">0 21 * * *</field>
                       <statement name="STATEMENT">
                         <block type="controls_if" id="7vnu[;m^AdaTag:CpwUa">
                           <value name="IF0">
                             <block type="logic_operation" id="?evm+)t@K#JO8z_WmUfm" inline="false">
                               <field name="OP">AND</field>
                               <value name="A">
                                 <block type="logic_compare" id="vVWJC)%xr!ZZzJUs.6_Q">
                                   <field name="OP">NEQ</field>
                                   <value name="A">
                                     <block type="get_value" id="cX?l8j|lnl1q1)j,wXa0">
                                       <field name="ATTR">val</field>
                                       <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="math_number" id="7TeaJv1[Ecnh]1;/3p*">
                                       <field name="NUM">0</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="logic_compare" id="Vo(;lUGB-QZN=58BZF!R">
                                   <field name="OP">NEQ</field>
                                   <value name="A">
                                     <block type="get_value" id="#{wbxG1/Q:tBM502:Oel">
                                       <field name="ATTR">val</field>
                                       <field name="OID">0_userdata.0.Fenster.Kuche_Tur</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="math_number" id="vYS1pWDgoC!n),vnAE">
                                       <field name="NUM">2</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="control" id="a0WQEB$![21Wv26rxO,">
                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                               <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                               <field name="WITH_DELAY">FALSE</field>
                               <value name="VALUE">
                                 <block type="math_number" id="JGjP}F{flmWbJV+g~^kP">
                                   <field name="NUM">0</field>
                                 </block>
                               </value>
                             </block>
                           </statement>
                         </block>
                       </statement>
                       <next>
                         <block type="schedule" id="^8M(|n|ayd4hKam|IYk|">
                           <field name="SCHEDULE">0 8 * * *</field>
                           <statement name="STATEMENT">
                             <block type="controls_if" id="Zt|Z95wmZv?/fkTFt||7">
                               <value name="IF0">
                                 <block type="logic_compare" id=",}Q!hs_J_/#C1]K6VodI">
                                   <field name="OP">NEQ</field>
                                   <value name="A">
                                     <block type="get_value" id="uZs_UpLP.:#Dp7Agq8zQ">
                                       <field name="ATTR">val</field>
                                       <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="math_number" id="MwvnB5if;Ht?y|yN@3-x">
                                       <field name="NUM">100</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="control" id="$O#iV.f]s{9R9KfuI0a!">
                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                   <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="math_number" id="t*|O3bI@hXcF|]$d@?n}">
                                       <field name="NUM">100</field>
                                     </block>
                                   </value>
                                 </block>
                               </statement>
                             </block>
                           </statement>
                           <next>
                             <block type="on_ext" id="*S-*-?Kmj=azHSy?ONjv">
                               <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                               <field name="CONDITION">ne</field>
                               <field name="ACK_CONDITION"></field>
                               <value name="OID0">
                                 <shadow type="field_oid" id="ig%Y@m34^U)S,u/a.}vJ">
                                   <field name="oid">default</field>
                                 </shadow>
                                 <block type="field_oid" id="p2Mts=2:q|fqfG4+vV7x">
                                   <field name="oid">default</field>
                                 </block>
                               </value>
                               <statement name="STATEMENT">
                                 <block type="controls_if" id="V=v~wkUN?0MtS8{Z}MU;">
                                   <value name="IF0">
                                     <block type="logic_operation" id=",57UBvJH*0n48c$2oa{@" inline="false">
                                       <field name="OP">AND</field>
                                       <value name="A">
                                         <block type="time_compare" id="M33;_l5@kPT.n8}H:}Mj">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                           <field name="OPTION">not between</field>
                                           <field name="START_TIME">08:00</field>
                                           <field name="END_TIME">21:00</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="logic_operation" id="%K9}*5[i%D,^nIyR!f3d" inline="false">
                                           <field name="OP">AND</field>
                                           <value name="A">
                                             <block type="logic_compare" id="!cwo7SnF%X]M:HRQgM[j">
                                               <field name="OP">NEQ</field>
                                               <value name="A">
                                                 <block type="get_value" id="X3F8;D+e#Ia}vjQ?ocWd">
                                                   <field name="ATTR">val</field>
                                                   <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="math_number" id="P7yW;nmQ9C$DQ,$z5OE$">
                                                   <field name="NUM">0</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="logic_compare" id="fL`QA]6C?5?(wJB~?AX2">
                                               <field name="OP">EQ</field>
                                               <value name="A">
                                                 <block type="on_source" id="i[gNu_+^m[._+(I|)iVg">
                                                   <field name="ATTR">state.val</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="math_number" id="LW[wCFC,VP?CAWio~f61">
                                                   <field name="NUM">0</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="control" id="!-%XT3uBo~rwxR0sg,^@">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="math_number" id="^WpfM,@ABGl=Wow-]1(P">
                                           <field name="NUM">0</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                     <block type="comment" id="}2FkDn!D$!KcUI3Q|w:[" x="337" y="563">
                       <field name="COMMENT">hier Tür status objekt</field>
                     </block>
                    </xml>
                    

                    Mono990M Offline
                    Mono990M Offline
                    Mono990
                    schrieb am zuletzt editiert von
                    #9

                    @cinimod
                    Das sieht ja super aus👍 werde es die tage Testen und dann bescheid geben. vielen Dank schon mal

                    CinimodC 1 Antwort Letzte Antwort
                    0
                    • Mono990M Mono990

                      @cinimod
                      Das sieht ja super aus👍 werde es die tage Testen und dann bescheid geben. vielen Dank schon mal

                      CinimodC Offline
                      CinimodC Offline
                      Cinimod
                      Most Active
                      schrieb am zuletzt editiert von
                      #10

                      @mono990

                      gern, viel Erfolg. Wenn das noch nicht klappt einfach melden

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

                      Mono990M 1 Antwort Letzte Antwort
                      0
                      • CinimodC Cinimod

                        @mono990

                        gern, viel Erfolg. Wenn das noch nicht klappt einfach melden

                        Mono990M Offline
                        Mono990M Offline
                        Mono990
                        schrieb am zuletzt editiert von
                        #11

                        @cinimod

                        Das Rollo ging heute abend nicht runter obwohl die Tür zu war.
                        Die ausgewählten objekte sind die richtigen. daran kann es nicht liegen.

                        CinimodC 2 Antworten Letzte Antwort
                        0
                        • Mono990M Mono990

                          @cinimod

                          Das Rollo ging heute abend nicht runter obwohl die Tür zu war.
                          Die ausgewählten objekte sind die richtigen. daran kann es nicht liegen.

                          CinimodC Offline
                          CinimodC Offline
                          Cinimod
                          Most Active
                          schrieb am zuletzt editiert von
                          #12

                          @mono990

                          ich kann keinen Fehler sehen, magst du deins noch mal her zeigen ?

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

                          Mono990M 1 Antwort Letzte Antwort
                          0
                          • CinimodC Cinimod

                            @mono990

                            ich kann keinen Fehler sehen, magst du deins noch mal her zeigen ?

                            Mono990M Offline
                            Mono990M Offline
                            Mono990
                            schrieb am zuletzt editiert von
                            #13

                            @cinimod

                            hier das script


                            <xml xmlns="https://developers.google.com/blockly/xml">
                            <block type="schedule" id="a,a}fcfqe*vEvi_qJ61" x="37" y="213"> <field name="SCHEDULE">0 21 * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="7vnu[;m^AdaTag:CpwUa"> <value name="IF0"> <block type="logic_operation" id="?evm+)t@K#JO8z_WmUfm" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="vVWJC)%xr!ZZzJUs.6_Q"> <field name="OP">NEQ</field> <value name="A"> <block type="get_value" id="cX?l8j|lnl1q1)j,wXa0"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Fenster.Kuche_Tur</field> </block> </value> <value name="B"> <block type="math_number" id="7TeaJv1[Ecnh]1;/3p*"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Vo(;lUGB-QZN=58BZF!R"> <field name="OP">NEQ</field> <value name="A"> <block type="get_value" id="#{wbxG1/Q:tBM502:Oel"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Fenster.Kuche_Tur</field> </block> </value> <value name="B"> <block type="math_number" id="vYS1pWDgoC!n),vnAE"> <field name="NUM">2</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="a0WQEB$![21Wv26rxO,"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="JGjP}F{flmWbJV+g~^kP"> <field name="NUM">0</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="schedule" id="^8M(|n|ayd4hKam|IYk|"> <field name="SCHEDULE">0 8 * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="Zt|Z95wmZv?/fkTFt||7"> <value name="IF0"> <block type="logic_compare" id=",}Q!hs_J_/#C1]K6VodI"> <field name="OP">NEQ</field> <value name="A"> <block type="get_value" id="uZs_UpLP.:#Dp7Agq8zQ"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field> </block> </value> <value name="B"> <block type="math_number" id="MwvnB5if;Ht?y|yN@3-x"> <field name="NUM">100</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="$O#iV.f]s{9R9KfuI0a!"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="t*|O3bI@hXcF|]$d@?n}"> <field name="NUM">100</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="on_ext" id="*S-*-?Kmj=azHSy?ONjv"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="ig%Y@m34^U)S,u/a.}vJ"> <field name="oid">default</field> </shadow> <block type="field_oid" id="p2Mts=2:q|fqfG4+vV7x"> <field name="oid">0_userdata.0.Fenster.Kuche_Tur</field> </block> </value> <statement name="STATEMENT"> <block type="controls_if" id="V=v~wkUN?0MtS8{Z}MU;"> <value name="IF0"> <block type="logic_operation" id=",57UBvJH*0n48c$2oa{@" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare" id="M33;_l5@kPT.n8}H:}Mj"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">not between</field> <field name="START_TIME">08:00</field> <field name="END_TIME">21:00</field> </block> </value> <value name="B"> <block type="logic_operation" id="%K9}*5[i%D,^nIyR!f3d" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="!cwo7SnF%X]M:HRQgM[j"> <field name="OP">NEQ</field> <value name="A"> <block type="get_value" id="X3F8;D+e#Ia}vjQ?ocWd"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field> </block> </value> <value name="B"> <block type="math_number" id="P7yW;nmQ9C$DQ,$z5OE$"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="fLQA]6C?5?(wJB~?AX2">
                            <field name="OP">EQ</field>
                            <value name="A">
                            <block type="on_source" id="i[gNu_+^m[._+(I|)iVg">
                            <field name="ATTR">state.val</field>
                            </block>
                            </value>
                            <value name="B">
                            <block type="math_number" id="LW[wCFC,VP?CAWio~f61">
                            <field name="NUM">0</field>
                            </block>
                            </value>
                            </block>
                            </value>
                            </block>
                            </value>
                            </block>
                            </value>
                            <statement name="DO0">
                            <block type="control" id="!-%XT3uBo~rwxR0sg,^@">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                            <block type="math_number" id="^WpfM,@ABGl=Wow-]1(P">
                            <field name="NUM">0</field>
                            </block>
                            </value>
                            </block>
                            </statement>
                            </block>
                            </statement>
                            </block>
                            </next>
                            </block>
                            </next>
                            </block>
                            <block type="comment" id="}2FkDn!D$!KcUI3Q|w:[" x="388" y="563">
                            <field name="COMMENT">hier Tür status objekt</field>
                            </block>
                            </xml>

                            1 Antwort Letzte Antwort
                            0
                            • Mono990M Mono990

                              @cinimod

                              Das Rollo ging heute abend nicht runter obwohl die Tür zu war.
                              Die ausgewählten objekte sind die richtigen. daran kann es nicht liegen.

                              CinimodC Offline
                              CinimodC Offline
                              Cinimod
                              Most Active
                              schrieb am zuletzt editiert von Cinimod
                              #14

                              @mono990 sagte in Blockly für Rollladen +Sperre:

                              @cinimod

                              Das Rollo ging heute abend nicht runter obwohl die Tür zu war.
                              Die ausgewählten objekte sind die richtigen. daran kann es nicht liegen.

                              Ganz oben muss "wert von ObjektID Shutter Position" rein

                              Screenshot 2021-10-18 085805.png

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

                              CinimodC 1 Antwort Letzte Antwort
                              0
                              • CinimodC Cinimod

                                @mono990 sagte in Blockly für Rollladen +Sperre:

                                @cinimod

                                Das Rollo ging heute abend nicht runter obwohl die Tür zu war.
                                Die ausgewählten objekte sind die richtigen. daran kann es nicht liegen.

                                Ganz oben muss "wert von ObjektID Shutter Position" rein

                                Screenshot 2021-10-18 085805.png

                                CinimodC Offline
                                CinimodC Offline
                                Cinimod
                                Most Active
                                schrieb am zuletzt editiert von Cinimod
                                #15

                                @cinimod

                                oben soll er nur einmal prüfen ob das Rollo nicht schon auf 0 ist, so wie du es hattest wollte er nur schließen wenn die Tür gekippt ist.

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

                                Mono990M 1 Antwort Letzte Antwort
                                0
                                • CinimodC Cinimod

                                  @cinimod

                                  oben soll er nur einmal prüfen ob das Rollo nicht schon auf 0 ist, so wie du es hattest wollte er nur schließen wenn die Tür gekippt ist.

                                  Mono990M Offline
                                  Mono990M Offline
                                  Mono990
                                  schrieb am zuletzt editiert von
                                  #16

                                  @cinimod Aso ok habe ich jetzt geändert. mal sehen ob er heute runter geht 😁

                                  CinimodC 1 Antwort Letzte Antwort
                                  0
                                  • Mono990M Mono990

                                    @cinimod Aso ok habe ich jetzt geändert. mal sehen ob er heute runter geht 😁

                                    CinimodC Offline
                                    CinimodC Offline
                                    Cinimod
                                    Most Active
                                    schrieb am zuletzt editiert von
                                    #17

                                    @mono990

                                    Heute gehts ! 😉

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

                                    Mono990M 1 Antwort Letzte Antwort
                                    0
                                    • CinimodC Cinimod

                                      @mono990

                                      Heute gehts ! 😉

                                      Mono990M Offline
                                      Mono990M Offline
                                      Mono990
                                      schrieb am zuletzt editiert von
                                      #18

                                      @cinimod ist leider nicht runtergegangen. Brauche ich noch ein Adapter oder so der die aktuelle zeit angibt wonach sich der Zeitplan trigger richten kann?

                                      CinimodC 1 Antwort Letzte Antwort
                                      0
                                      • Mono990M Mono990

                                        @cinimod ist leider nicht runtergegangen. Brauche ich noch ein Adapter oder so der die aktuelle zeit angibt wonach sich der Zeitplan trigger richten kann?

                                        CinimodC Offline
                                        CinimodC Offline
                                        Cinimod
                                        Most Active
                                        schrieb am zuletzt editiert von Cinimod
                                        #19

                                        @mono990

                                        Vielleicht stimmt deine Systemzeit nicht 🤔
                                        Hast du die Koordinaten richtig ?

                                        Ist das Rollo denn bei 0 unten und bei 100 oben?

                                        Teste doch mal ein neues Script mit dem Zeitplan trigger und nem debug baustein … oder lass dir ne Nachricht schicken zum testen …

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

                                        Mono990M 1 Antwort Letzte Antwort
                                        0
                                        • CinimodC Cinimod

                                          @mono990

                                          Vielleicht stimmt deine Systemzeit nicht 🤔
                                          Hast du die Koordinaten richtig ?

                                          Ist das Rollo denn bei 0 unten und bei 100 oben?

                                          Teste doch mal ein neues Script mit dem Zeitplan trigger und nem debug baustein … oder lass dir ne Nachricht schicken zum testen …

                                          Mono990M Offline
                                          Mono990M Offline
                                          Mono990
                                          schrieb am zuletzt editiert von
                                          #20

                                          @cinimod die Zeit im iobroker hatte die richtige Zeit angezeigt aber die systemzeit des Raspian hat eine ganz andere zeit angezeigt. ich lasse die systemzeit jetzt mit einem NTP server syncronisieren.
                                          Die ersten Tests waren gut, habe mir nachrichten auf mein Handy schicken lassen über Blockly und Zeitplan.

                                          1 Antwort Letzte Antwort
                                          0

                                          Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.

                                          Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.

                                          Mit deinem Input könnte dieser Beitrag noch besser werden 💗

                                          Registrieren Anmelden
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          487

                                          Online

                                          32.8k

                                          Benutzer

                                          82.8k

                                          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