Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Suche Hilfe für 2 Scripte

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Suche Hilfe für 2 Scripte

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @Bernd 1337 last edited by

      @bernd-1337 sagte in Suche Hilfe für 2 Scripte:

      @homoran okay ja sry ich was sowas angeht allgemin scripting usw usw anfänger ich habe erst vor ner gewissen zeit angefangen mein Gebiet ist Elektronik

      dann sagt man das und behauptet nichts falsches

      dann versuche es zu lernen.
      Auch das wurde dir schon gesagt.
      vom reinen abtippen klappt das nicht

      1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @MartinP last edited by

        @martinp sagte in Suche Hilfe für 2 Scripte:

        Hier wäre ggfs. oben in der Fehlerbeschreibung ein Screenshot und weiter unten als eine Art "Anhang" der XML-Codeblock eine Lösung

        so steht es

        https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1

        und noch viel mehr

        MartinP 1 Reply Last reply Reply Quote 0
        • paul53
          paul53 @Bernd 1337 last edited by

          @bernd-1337 sagte: nur einmal ausführen

          Vorschlag:

          Blockly_temp.JPG

          B MartinP 2 Replies Last reply Reply Quote 0
          • MartinP
            MartinP @Homoran last edited by

            @homoran Naja, das kann man schon fehl-interpretieren:

            Alles was als Text vorliegt sollte auch als Text gepostet werden!

            XML ist schon auch so eine Art "Text" 😉

            Homoran 1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @MartinP last edited by

              @martinp sagte in Suche Hilfe für 2 Scripte:

              @homoran Naja, das kann man schon fehl-interpretieren:

              Alles was als Text vorliegt sollte auch als Text gepostet werden!

              XML ist schon auch so eine Art "Text" 😉

              ist ja auch korrekt den in code-tags zu packen!

              aber nicht als einzige Information

              1 Reply Last reply Reply Quote 0
              • B
                Bernd 1337 @paul53 last edited by

                @paul53 Hallo Paul wie gehts wie stehts ich danke dir hast du den code zum pasten

                paul53 1 Reply Last reply Reply Quote 0
                • MartinP
                  MartinP @paul53 last edited by

                  @paul53 said in Suche Hilfe für 2 Scripte:

                  @bernd-1337 sagte: nur einmal ausführen

                  Vorschlag:

                  Blockly_temp.JPG

                  Meine Blockly Kenntnisse wachsen zwar, aber sie sind noch nicht besonders groß
                  Kann man das "wurde aktualisert" bei der Temperatur nicht durch ein "wurde geändert" ersetzen. Das würde ggfs. unnötige Schleifen-Durchläufe mit unveränderter, aber durch das Thermometer aktualiserter Temperatur vermeiden.

                  1 Reply Last reply Reply Quote 0
                  • paul53
                    paul53 @Bernd 1337 last edited by

                    @bernd-1337 sagte: code zum pasten

                    <xml xmlns="https://developers.google.com/blockly/xml">
                     <variables>
                       <variable id="Zi?er=85ri4#;:L-lujS">pumpe</variable>
                       <variable id="b+p{2kokZZ/7}+`bs,q1">ED</variable>
                     </variables>
                     <block type="variables_set" id=")(u1lT,t6M+geY80]*9+" x="87" y="-113">
                       <field name="VAR" id="Zi?er=85ri4#;:L-lujS">pumpe</field>
                       <value name="VALUE">
                         <block type="get_value_var" id="=]54i_^*7ptgCq[HE[pK">
                           <field name="ATTR">val</field>
                           <value name="OID">
                             <shadow type="field_oid" id="@9qPzg52ZTPA2*u,{xc(">
                               <field name="oid">Object ID</field>
                             </shadow>
                             <block type="text" id="ssLnDm(98pbzo7B-P3)i">
                               <field name="TEXT">shelly.0.SHSW-25#3494547971EC#1.Relay1.Switch</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <next>
                         <block type="on_ext" id="jG7O3%s:Pbmj3oHF}3(5">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                           <field name="CONDITION">any</field>
                           <field name="ACK_CONDITION"></field>
                           <value name="OID0">
                             <shadow type="field_oid" id="2B(hVGZ#zfmp7Gt?:%y;">
                               <field name="oid">Temperatur.0.Wohnzimmer</field>
                             </shadow>
                           </value>
                           <statement name="STATEMENT">
                             <block type="controls_if" id="tGnT93N}Y)U=pJC8C{za">
                               <mutation elseif="1"></mutation>
                               <value name="IF0">
                                 <block type="logic_compare" id="+,Y9zYS!qd$z_NukE~VT">
                                   <field name="OP">LT</field>
                                   <value name="A">
                                     <block type="on_source" id="Qg_}b|+X5n#o8uIM_G/O">
                                       <field name="ATTR">state.val</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="get_value" id="2p-T:/uSdpaJuFjVG1+_">
                                       <field name="ATTR">val</field>
                                       <field name="OID">Heizung.0.PumpeEin</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="variables_set" id="3DNjQV/nt8fTs_e1%LRg">
                                   <field name="VAR" id="Zi?er=85ri4#;:L-lujS">pumpe</field>
                                   <value name="VALUE">
                                     <block type="logic_boolean" id="l#xUro$Y`c:[fVxCG(JG">
                                       <field name="BOOL">TRUE</field>
                                     </block>
                                   </value>
                                 </block>
                               </statement>
                               <value name="IF1">
                                 <block type="logic_compare" id=")_9$C6/74/kUx|:DWdZb">
                                   <field name="OP">GT</field>
                                   <value name="A">
                                     <block type="on_source" id="LL`FN2c*wM}]VekvNJ7j">
                                       <field name="ATTR">state.val</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="get_value" id="kMVtfs~rYz#.^m;9lBde">
                                       <field name="ATTR">val</field>
                                       <field name="OID">Heizung.0.PumpeAus</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO1">
                                 <block type="variables_set" id="{3J?ejPQUpfLmg/zLGST">
                                   <field name="VAR" id="Zi?er=85ri4#;:L-lujS">pumpe</field>
                                   <value name="VALUE">
                                     <block type="logic_boolean" id="aabeoH8/GZ8mC}+n@^h0">
                                       <field name="BOOL">FALSE</field>
                                     </block>
                                   </value>
                                 </block>
                               </statement>
                               <next>
                                 <block type="controls_if" id="8BP[L!WM!%#l`hS$7`5G">
                                   <value name="IF0">
                                     <block type="logic_compare" id="ZX*uIqKwE:@M]4)PONG%">
                                       <field name="OP">NEQ</field>
                                       <value name="A">
                                         <block type="variables_get" id="kKT~V_JYAN6RGAXQ#x5?">
                                           <field name="VAR" id="Zi?er=85ri4#;:L-lujS">pumpe</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="get_value_var" id="|pp=r]dL51a6ep-2@|.H">
                                           <field name="ATTR">val</field>
                                           <value name="OID">
                                             <shadow type="field_oid" id="@9qPzg52ZTPA2*u,{xc(">
                                               <field name="oid">Object ID</field>
                                             </shadow>
                                             <block type="text" id="`zNJX(Lyyd~Jv*;0SfX5">
                                               <field name="TEXT">shelly.0.SHSW-25#3494547971EC#1.Relay1.Switch</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="control" id="Z_]VP.(4N~vSC)?iplx*">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">shelly.0.SHSW-25#3494547971EC#1.Relay1.Switch</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="variables_get" id="ofmhxzd2Rhi6~e=JK_pg">
                                           <field name="VAR" id="Zi?er=85ri4#;:L-lujS">pumpe</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="update" id="gztvu]E-h@nsf9d^Ub#s">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                           <field name="OID">0_userdata.0.example_state</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="logic_ternary" id="q|F_I1%@gL2ak:u)Fmmi" inline="false">
                                               <value name="IF">
                                                 <block type="variables_get" id="YW=j,g)uSD2EBdC{pgPd">
                                                   <field name="VAR" id="Zi?er=85ri4#;:L-lujS">pumpe</field>
                                                 </block>
                                               </value>
                                               <value name="THEN">
                                                 <block type="text" id="/P$!j2QirQXhw!6k4{]*">
                                                   <field name="TEXT">Pumpe Eingeschaltet!</field>
                                                 </block>
                                               </value>
                                               <value name="ELSE">
                                                 <block type="text" id="[.#~j$~cWN9ciZ;%O.cz">
                                                   <field name="TEXT">Pumpe Ausgeschaltet!</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                 </block>
                               </next>
                             </block>
                           </statement>
                           <next>
                             <block type="on_ext" id="Ew(8wzpEg5ZIbL.ES.Iz">
                               <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                               <field name="CONDITION">lt</field>
                               <field name="ACK_CONDITION"></field>
                               <value name="OID0">
                                 <shadow type="field_oid" id="@2:.[_e_iBqa+PV0_QdU">
                                   <field name="oid">default</field>
                                 </shadow>
                                 <block type="text" id="41z;VS7xQCfcmf$v_GP}">
                                   <field name="TEXT">shelly.0.SHSW-25#3494547971EC#1.Relay1.Switch</field>
                                 </block>
                               </value>
                               <statement name="STATEMENT">
                                 <block type="comment" id="!oZyhCu-2g;n~*=xdC`0">
                                   <field name="COMMENT">Einschaltdauer in Minuten</field>
                                   <next>
                                     <block type="variables_set" id="LwAj8jvjv)UMZnz;c2$.">
                                       <field name="VAR" id="b+p{2kokZZ/7}+`bs,q1">ED</field>
                                       <value name="VALUE">
                                         <block type="math_arithmetic" id="$T.em/Os1%,qTga3iO^L">
                                           <field name="OP">DIVIDE</field>
                                           <value name="A">
                                             <shadow type="math_number" id="c,[x(gN]AAH_p@,m|a6p">
                                               <field name="NUM">1</field>
                                             </shadow>
                                             <block type="math_arithmetic" id="$QY=tBqBq$M,#o=%y[h-">
                                               <field name="OP">MINUS</field>
                                               <value name="A">
                                                 <shadow type="math_number" id="aTm~|X^J*iE.X,zPF8Oy">
                                                   <field name="NUM">1</field>
                                                 </shadow>
                                                 <block type="on_source" id="X#,J95zacy~0`hH9O0$x">
                                                   <field name="ATTR">state.lc</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <shadow type="math_number" id="!9kM*J}lKDp_$h@cSGe4">
                                                   <field name="NUM">1</field>
                                                 </shadow>
                                                 <block type="on_source" id="qKM9@Y$`Ec4-w+A!V9Bb">
                                                   <field name="ATTR">oldState.lc</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <shadow type="math_number" id="re+7.()^*X(cU?Z,S2wG">
                                               <field name="NUM">60000</field>
                                             </shadow>
                                           </value>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="update" id="D^PL^={BRP|x+z,`VeTr">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                           <field name="OID">Object ID</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="math_round" id="N-GI{5guRWjB,,Z4P)Ra">
                                               <field name="OP">ROUND</field>
                                               <value name="NUM">
                                                 <shadow type="math_number" id="ka!fy+O[v%~dU=x[CZs]">
                                                   <field name="NUM">3.1</field>
                                                 </shadow>
                                                 <block type="variables_get" id="HzH;c!?qGF9K4`DFg}tr">
                                                   <field name="VAR" id="b+p{2kokZZ/7}+`bs,q1">ED</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                    </xml>
                    

                    B 2 Replies Last reply Reply Quote 0
                    • B
                      Bernd 1337 @paul53 last edited by

                      @paul53 danke dir du bist wie immer der retter in der not Funzt bestens so wie es soll

                      1 Reply Last reply Reply Quote 0
                      • B
                        Bernd 1337 @paul53 last edited by

                        @paul53 habe gesehen das du das Zeit script mit dran gehangen hast kann das nur Minuten und keine sekunden

                        paul53 1 Reply Last reply Reply Quote 0
                        • paul53
                          paul53 @Bernd 1337 last edited by

                          @bernd-1337 sagte: kann das nur Minuten und keine sekunden

                          Es wird auf ganze Minuten gerundet, was du natürlich ändern kannst.

                          B 2 Replies Last reply Reply Quote 0
                          • B
                            Bernd 1337 @paul53 last edited by

                            @paul53 hab ich ja schon gemacht auf 1000 gestellt aber ginge das nicht von mir aus auch 2 datenpunkte 1 für min und 1 für sekunden

                            1 Reply Last reply Reply Quote 0
                            • B
                              Bernd 1337 @paul53 last edited by

                              @paul53 so das ich im habpanel anzeigen lassen kann zb 1:09

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post

                              Support us

                              ioBroker
                              Community Adapters
                              Donate

                              711
                              Online

                              32.0k
                              Users

                              80.4k
                              Topics

                              1.3m
                              Posts

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