Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. umstieg von pimatic

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    umstieg von pimatic

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

      ich bin gerade beim umstieg von pimatic zu iobroker.
      die ganzen geräte funktionieren so weit.
      nur mit den regeln komm ich nicht klar.
      hatte in pimatic 2 regeln die ich mit blockly nicht hin bekomme.

      1. Regel: when powerGrid of Fronius Inverter is less than -500 for 3 minutes and fibaro_relais1 is turned off then turn fibaro_relais1 on
      2. Regel: when powerGrid of Fronius Inverter is greater than 100 for 5 minutes and fibaro_relais1 is turned on for 60 minutes and temperature of fibaro_temp_sensor3 is greater than 42 then turn fibaro_relais1 off

      kann mir ja jemand helfen bitte

      lg Mad

      1 Reply Last reply Reply Quote 0
      • M
        madison last edited by

        das habe ich bisher geschafft, nur wo baue ich die zeiten ein?

        <xml xmlns="http://www.w3.org/1999/xhtml">
          <block type="on" id="F!!Ou/C`OjBU2N;2s?US" x="188" y="38">
            <field name="OID">fronius.0.powerflow.P_Grid</field>
            <field name="CONDITION">ne</field>
            <field name="ACK_CONDITION"></field>
            <statement name="STATEMENT">
              <block type="controls_if" id="qjZ;R!,!*H=11p#Egh+v">
                <value name="IF0">
                  <block type="logic_operation" id="cmGS.ub1u5-/XRi/FQUE">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="?]lGz,I4K),UYyo[4%98">
                        <field name="OP">LT</field>
                        <value name="A">
                          <block type="on_source" id="{LBQshF_hKMC,Wp=O!@@">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="Bp?Fi=(b0uKhdv*u!Q6x">
                            <field name="NUM">-500</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="HKpI5DKrAmnAcSak4W;s">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="nyl~uf0Z2+_6kN1*+g?$">
                            <field name="ATTR">val</field>
                            <field name="OID">zwave.0.NODE6.SWITCH_BINARY.Instance_1:_Switch_1</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="k}DMur}sC,{*c[WncO63">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="control" id="(zGO6Qkwq(f8e%kO|8Sg">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">zwave.0.NODE6.SWITCH_BINARY.Instance_1:_Switch_1</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="/6AaiPMn826qm8P53w7[">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </statement>
            <next>
              <block type="on" id="mO34Zmd9SdeH=HtHZLOt">
                <field name="OID">fronius.0.powerflow.P_Grid</field>
                <field name="CONDITION">ne</field>
                <field name="ACK_CONDITION"></field>
                <statement name="STATEMENT">
                  <block type="controls_if" id="{[diRkfyM[.]Jtxg$4U)">
                    <value name="IF0">
                      <block type="logic_operation" id="OevnL,[%w.+ve_h;6C(N">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="logic_compare" id="-`b=fhm{mPh095}0@KuI">
                            <field name="OP">GT</field>
                            <value name="A">
                              <block type="on_source" id="sETxhFI[-k*;pp3ZGJS_">
                                <field name="ATTR">state.val</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="HqJ?48]sqCU]MT/=DZp`">
                                <field name="NUM">100</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_operation" id="(v5+?t,At.q]*haeK/fb">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="fz-Npw-+wjlZzE.+gbCJ">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="uLBs7GxU[F*FMos)(nNI">
                                    <field name="ATTR">val</field>
                                    <field name="OID">zwave.0.NODE6.SWITCH_BINARY.Instance_1:_Switch_1</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="1~z()h5cV.tem6~D5#u~">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="ow/FdN|$ThNgIO?.yN]T">
                                <field name="OP">GT</field>
                                <value name="A">
                                  <block type="get_value" id="v]?-?hf8HfB?D63nk;|A">
                                    <field name="ATTR">val</field>
                                    <field name="OID">zwave.0.NODE8.SENSOR_MULTILEVEL.Instance_3:_Air_Temperature_3</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="EKA{Zn)Tii@{s7}u]G6M">
                                    <field name="NUM">42</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="(|[X898Jn$%eta8@h%$I">
                        <mutation delay_input="false"></mutation>
                        <field name="OID">zwave.0.NODE6.SWITCH_BINARY.Instance_1:_Switch_1</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="{w9Ai~l*Td~H+xVOGn?J">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </xml>
        
        
        FredF paul53 2 Replies Last reply Reply Quote 0
        • FredF
          FredF Most Active Forum Testing @madison last edited by

          @madison zeige mal ein Bild von deinem Blockly dann kann dir leichter geholfen werden

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

            @madison sagte:

            wo baue ich die zeiten ein?

            Vorschlag:

            Blockly_temp.JPG

            <xml xmlns="http://www.w3.org/1999/xhtml">
             <variables>
               <variable type="undefined" id="timeout1">timeout1</variable>
               <variable type="undefined" id="timeout3">timeout3</variable>
               <variable type="undefined" id="timeout2">timeout2</variable>
               <variable type="" id="+l8CB%A26RkWF;d6hPt^">gr100</variable>
               <variable type="" id="B7QKKsZJJ/rD9$B7mY6C">switch1h</variable>
             </variables>
             <block type="on" id="F!!Ou/C`OjBU2N;2s?US" x="188" y="38">
               <field name="OID">fronius.0.powerflow.P_Grid</field>
               <field name="CONDITION">ne</field>
               <field name="ACK_CONDITION"></field>
               <statement name="STATEMENT">
                 <block type="controls_if" id="qjZ;R!,!*H=11p#Egh+v">
                   <mutation else="1"></mutation>
                   <value name="IF0">
                     <block type="logic_compare" id="?]lGz,I4K),UYyo[4%98">
                       <field name="OP">LT</field>
                       <value name="A">
                         <block type="on_source" id="{LBQshF_hKMC,Wp=O!@@">
                           <field name="ATTR">state.val</field>
                         </block>
                       </value>
                       <value name="B">
                         <block type="math_number" id="Bp?Fi=(b0uKhdv*u!Q6x">
                           <field name="NUM">-500</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="controls_if" id="dg7U:~/QG^y@~UDh#j1k">
                       <value name="IF0">
                         <block type="logic_negate" id="#8v=)|plTUEd6ilm-Z=n">
                           <value name="BOOL">
                             <block type="variables_get" id="$1F//R)lhji{+.TUkw+~">
                               <field name="VAR" id="timeout1" variabletype="undefined">timeout1</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="timeouts_settimeout" id="=LFs$DUT/hJCCGhQVXhv">
                           <field name="NAME">timeout1</field>
                           <field name="DELAY">3</field>
                           <field name="UNIT">min</field>
                           <statement name="STATEMENT">
                             <block type="controls_if" id="b~mna{[e9y^z0HBTa7PW">
                               <value name="IF0">
                                 <block type="logic_compare" id="HKpI5DKrAmnAcSak4W;s">
                                   <field name="OP">EQ</field>
                                   <value name="A">
                                     <block type="get_value" id="nyl~uf0Z2+_6kN1*+g?$">
                                       <field name="ATTR">val</field>
                                       <field name="OID">zwave.0.NODE6.SWITCH_BINARY.Instance_1:_Switch_1</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="logic_boolean" id="k}DMur}sC,{*c[WncO63">
                                       <field name="BOOL">FALSE</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="control" id="(zGO6Qkwq(f8e%kO|8Sg">
                                   <mutation delay_input="false"></mutation>
                                   <field name="OID">zwave.0.NODE6.SWITCH_BINARY.Instance_1:_Switch_1</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="logic_boolean" id="/6AaiPMn826qm8P53w7[">
                                       <field name="BOOL">TRUE</field>
                                     </block>
                                   </value>
                                 </block>
                               </statement>
                             </block>
                           </statement>
                         </block>
                       </statement>
                     </block>
                   </statement>
                   <statement name="ELSE">
                     <block type="timeouts_cleartimeout" id="%Zy:%ZMXlarV9@amW2bs">
                       <field name="NAME">timeout1</field>
                     </block>
                   </statement>
                   <next>
                     <block type="controls_if" id="{[diRkfyM[.]Jtxg$4U)">
                       <mutation else="1"></mutation>
                       <value name="IF0">
                         <block type="logic_compare" id="-`b=fhm{mPh095}0@KuI">
                           <field name="OP">GT</field>
                           <value name="A">
                             <block type="on_source" id="sETxhFI[-k*;pp3ZGJS_">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id="HqJ?48]sqCU]MT/=DZp`">
                               <field name="NUM">100</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="controls_if" id="vGza`E-WefVyAnCb~14k">
                           <value name="IF0">
                             <block type="logic_negate" id="y[LIf=4b~*fml%#!@l-n">
                               <value name="BOOL">
                                 <block type="variables_get" id="H+0rVt%$ht5xT{R{bC*e">
                                   <field name="VAR" id="timeout2" variabletype="undefined">timeout2</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="timeouts_settimeout" id="$=NLcQVhfZO0,4%KbZfE">
                               <field name="NAME">timeout2</field>
                               <field name="DELAY">5</field>
                               <field name="UNIT">min</field>
                               <statement name="STATEMENT">
                                 <block type="variables_set" id="b(=m)mt`IWT;sY~E?}g7">
                                   <field name="VAR" id="+l8CB%A26RkWF;d6hPt^" variabletype="">gr100</field>
                                   <value name="VALUE">
                                     <block type="logic_boolean" id="M1wU31[B,uJ-Q@riDi|P">
                                       <field name="BOOL">TRUE</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="procedures_callnoreturn" id="bnJaxS]jMkxSPHlI=vqR">
                                       <mutation name="switchOff"></mutation>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                             </block>
                           </statement>
                         </block>
                       </statement>
                       <statement name="ELSE">
                         <block type="timeouts_cleartimeout" id="[@T#iDT$Ud2;O,6;W.H/">
                           <field name="NAME">timeout2</field>
                           <next>
                             <block type="variables_set" id="i;,RLCdV},^zEa*_6cM2">
                               <field name="VAR" id="+l8CB%A26RkWF;d6hPt^" variabletype="">gr100</field>
                               <value name="VALUE">
                                 <block type="logic_boolean" id="TUjF#,9drH]syK5szgO:">
                                   <field name="BOOL">FALSE</field>
                                 </block>
                               </value>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                   </next>
                 </block>
               </statement>
               <next>
                 <block type="on_ext" id="(xXt]eB6)Vix.:KPkq!}">
                   <mutation items="1"></mutation>
                   <field name="CONDITION">ne</field>
                   <field name="ACK_CONDITION"></field>
                   <value name="OID0">
                     <shadow type="field_oid" id="l_u/*Kbe1kX5xiQVF*p+">
                       <field name="oid">default</field>
                     </shadow>
                     <block type="text" id="nR@Mw^]bR6W}x@_KE7g)">
                       <field name="TEXT">zwave.0.NODE6.SWITCH_BINARY.Instance_1:_Switch_1</field>
                     </block>
                   </value>
                   <statement name="STATEMENT">
                     <block type="controls_if" id="7b$3~[60wWg@u1}{Hj?/">
                       <mutation else="1"></mutation>
                       <value name="IF0">
                         <block type="on_source" id="{Nr0}siZHCC!+`5xxx}~">
                           <field name="ATTR">state.val</field>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="timeouts_settimeout" id="67xG/z!M$Uw-hlOqs_?j">
                           <field name="NAME">timeout3</field>
                           <field name="DELAY">60</field>
                           <field name="UNIT">min</field>
                           <statement name="STATEMENT">
                             <block type="variables_set" id=",)^HX7BCttUtUiJ6^8qH">
                               <field name="VAR" id="B7QKKsZJJ/rD9$B7mY6C" variabletype="">switch1h</field>
                               <value name="VALUE">
                                 <block type="logic_boolean" id="!N(NF}d41aaElY%yc,)G">
                                   <field name="BOOL">TRUE</field>
                                 </block>
                               </value>
                               <next>
                                 <block type="procedures_callnoreturn" id="o;QuduYqb*E@=3}E[bO{">
                                   <mutation name="switchOff"></mutation>
                                 </block>
                               </next>
                             </block>
                           </statement>
                         </block>
                       </statement>
                       <statement name="ELSE">
                         <block type="timeouts_cleartimeout" id="q){%NyVclQ|!6ej%+0SP">
                           <field name="NAME">timeout3</field>
                           <next>
                             <block type="variables_set" id="wApdLjyIMtf~^5?x|$6}">
                               <field name="VAR" id="B7QKKsZJJ/rD9$B7mY6C" variabletype="">switch1h</field>
                               <value name="VALUE">
                                 <block type="logic_boolean" id="q^-E#(SI3vcifr+9Lek=">
                                   <field name="BOOL">FALSE</field>
                                 </block>
                               </value>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                   </statement>
                 </block>
               </next>
             </block>
             <block type="procedures_defnoreturn" id="Ma~~XRRb?+r37-Nc_I6t" x="587" y="737">
               <field name="NAME">switchOff</field>
               <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
               <statement name="STACK">
                 <block type="controls_if" id=",Egp%5VyFA4~BuM*|2-|">
                   <value name="IF0">
                     <block type="logic_operation" id="(v5+?t,At.q]*haeK/fb" inline="false">
                       <field name="OP">AND</field>
                       <value name="A">
                         <block type="logic_operation" id="LMS1G.{eF#;EVoZj3CCS">
                           <field name="OP">AND</field>
                           <value name="A">
                             <block type="variables_get" id="qd+g@:p3t285N6Qz;Dl5">
                               <field name="VAR" id="+l8CB%A26RkWF;d6hPt^" variabletype="">gr100</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="variables_get" id="i+;3+schEOyhG*^i9+$~">
                               <field name="VAR" id="B7QKKsZJJ/rD9$B7mY6C" variabletype="">switch1h</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <value name="B">
                         <block type="logic_compare" id="ow/FdN|$ThNgIO?.yN]T">
                           <field name="OP">GT</field>
                           <value name="A">
                             <block type="get_value" id="v]?-?hf8HfB?D63nk;|A">
                               <field name="ATTR">val</field>
                               <field name="OID">zwave.0.NODE8.SENSOR_MULTILEVEL.Instance_3:_Air_Temperature_3</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id="EKA{Zn)Tii@{s7}u]G6M">
                               <field name="NUM">42</field>
                             </block>
                           </value>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="control" id="(|[X898Jn$%eta8@h%$I">
                       <mutation delay_input="false"></mutation>
                       <field name="OID">zwave.0.NODE6.SWITCH_BINARY.Instance_1:_Switch_1</field>
                       <field name="WITH_DELAY">FALSE</field>
                       <value name="VALUE">
                         <block type="logic_boolean" id="{w9Ai~l*Td~H+xVOGn?J">
                           <field name="BOOL">FALSE</field>
                         </block>
                       </value>
                     </block>
                   </statement>
                 </block>
               </statement>
             </block>
            </xml>
            

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

              @paul53 Re: umstieg von pimatic

              danke paul, werd ich mir ansehen und schauen ob ich das testen kann.
              soviel sonne gibts im moment leider nicht 😉

              1 Reply Last reply Reply Quote 0
              • M
                madison last edited by

                ganz optimal funktioniert es noch nicht.
                die stunde aktiv klappt nicht.
                woran kann das liegen?
                Bildschirmfoto 2020-02-15 um 13.59.04.png

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

                Support us

                ioBroker
                Community Adapters
                Donate

                873
                Online

                31.8k
                Users

                80.0k
                Topics

                1.3m
                Posts

                blockly
                3
                6
                377
                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