Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Heizkörper nach Fenster steuern

    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

    Heizkörper nach Fenster steuern

    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      adrian-c last edited by

      Hallo, sicherlich wurde das Thema bereits behandelt. Ich finde es jedoch nirgends. Leider bin ich Anfänger und scheitere irgendwie an einer Verknüpfung. Ich habe sicherlich einen Denkfehler.

      Ich Möchte:

      Wenn eines der zwei Fenster geöffnet ist, regelt sich das Thermostat auf 10°C, werden Beide Fenster geschlossen, regelt sich das Thermostat auf die letzt eingestellte Temperatur (das hatte ich mit einem eigenen Datenpunkt, der geschrieben wird, umgesetzt).

      Irgendwie bekomme ich die Verknüpfung nicht hin, dass das Thermostat erst fährt, wenn beide Fenster geschlossen sind.

      Hier mein Blockly - bitte nicht lachen 🙄

      Danke für Eure Hilfe.

      <xml xmlns="https://developers.google.com/blockly/xml">
        <block type="on_ext" id="r}8_@`I?$%*,O-L;w2]b" x="-62" y="-312">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="J3hGgkY5NI2Z0w;T~c}F">
              <field name="oid">deconz.0.Sensors.3.open</field>
            </shadow>
          </value>
          <value name="OID1">
            <shadow type="field_oid" id="-I7xDU0Sn~xm`7L1vnIP">
              <field name="oid">deconz.0.Sensors.10.open</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id="M3}s*{i,927;i8p=tb1(">
              <mutation else="1"></mutation>
              <value name="IF0">
                <block type="on_source" id="p{O%QtaYAoX:E~#q.5wt">
                  <field name="ATTR">state.val</field>
                </block>
              </value>
              <statement name="DO0">
                <block type="controls_if" id="c/y=h-9ijaXlJ*iqZ7~l">
                  <mutation elseif="1"></mutation>
                  <value name="IF0">
                    <block type="logic_operation" id="dOeLOm(o{^hc_P^T|g@X" inline="false">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="logic_compare" id="Mj9Nh,SwY/xqhm#}S0Yg">
                          <field name="OP">NEQ</field>
                          <value name="A">
                            <block type="get_value" id="5)`nIBR_+7bn(tXg^AWp">
                              <field name="ATTR">val</field>
                              <field name="OID">deconz.0.Sensors.4.heatsetpoint</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="math_number" id="h`fBr)|@-~pAWY_[4-%2">
                              <field name="NUM">10</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_operation" id="O4oV$P:dH5;yHPVsx$_[">
                          <field name="OP">OR</field>
                          <value name="A">
                            <block type="logic_compare" id="i;HyEsNeWUKZvww:r4Gf">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="$^4pV_$`qRYqr0ErzSt)">
                                  <field name="ATTR">val</field>
                                  <field name="OID">deconz.0.Sensors.3.open</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="3#D0XI`FE$M[Vg[?g?3V">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id="@Dje`Ucw0#VND[y.Kvcs">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="vTJyj;AniVa7XHKVm9e)">
                                  <field name="ATTR">val</field>
                                  <field name="OID">deconz.0.Sensors.10.open</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="]hYZ8biG(VyAsgy_My;Q">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id="c0W^5f%-^:O3(95$k~$x">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">javascript.0.Eigene_Datenobjekte.Heizung.Heizung_Milan</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="get_value" id="LQP+]EdXz24s1({58a)A">
                          <field name="ATTR">val</field>
                          <field name="OID">deconz.0.Sensors.4.heatsetpoint</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="O8^w^;(ppG(Ef:xb3ikC">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">deconz.0.Sensors.4.heatsetpoint</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="5YwUK;n0vS;J!I*ny8,C">
                              <field name="NUM">10</field>
                            </block>
                          </value>
                        </block>
                      </next>
                    </block>
                  </statement>
                  <value name="IF1">
                    <block type="logic_operation" id="t`/i-t^(Y!1#9$Gp#?hb">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="logic_compare" id="c/JvO-ovW}W`xY~(g6IK">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="4J|78]V%J:s:dBVC$`yx">
                              <field name="ATTR">val</field>
                              <field name="OID">deconz.0.Sensors.3.open</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id=",zuJzX{7gEcdyoh!3^uM">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_compare" id="{{;5T5?#Xpr!3ABEUxi^">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id=",3ACA:r#+|4Hy9S~Nsw7">
                              <field name="ATTR">val</field>
                              <field name="OID">deconz.0.Sensors.10.open</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="bI$D^(yvQB_JeJH.6n5w">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO1">
                    <block type="control" id="AuYe9wD6ZiSi{NMR#Hxk">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">deconz.0.Sensors.4.heatsetpoint</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="get_value" id="NVnFy!%mf22KGg~fQVE;">
                          <field name="ATTR">val</field>
                          <field name="OID">javascript.0.Eigene_Datenobjekte.Heizung.Heizung_Milan</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                </block>
              </statement>
              <statement name="ELSE">
                <block type="controls_if" id="va_=j=3PeFwYvsu@f02x">
                  <mutation elseif="1"></mutation>
                  <value name="IF0">
                    <block type="logic_operation" id="%J`Xzy$a{]x7L--v*S_8" inline="false">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="logic_compare" id="Q$G34JUxNZGhEXVe!=HY">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="z;;/f]s5!Rb_VL8mh_Y#">
                              <field name="ATTR">val</field>
                              <field name="OID">deconz.0.Sensors.4.heatsetpoint</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="math_number" id=";M=S_3a|+f5gn;9rJnPc">
                              <field name="NUM">10</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_operation" id="/N/1zI(08A5Xp[QKF7g*">
                          <field name="OP">OR</field>
                          <value name="A">
                            <block type="logic_compare" id="pePfKa[yjSY]KoJn=W*B">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="p2N;l(7bnX%$2m0#Xl2s">
                                  <field name="ATTR">val</field>
                                  <field name="OID">deconz.0.Sensors.3.open</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="!JCPM[2=/U@4igf)Pes~">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id="gBp@/U[GaO5*{h_hiB3Z">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="y:2fQZu#++o=*eGAv|Sr">
                                  <field name="ATTR">val</field>
                                  <field name="OID">deconz.0.Sensors.10.open</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="4.}O5K1t6KC2]:r}6uE,">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id="*s-F$ZQt`h}-Yjo:UQlP">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">deconz.0.Sensors.4.heatsetpoint</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="get_value" id="iLdzpc%I1,~f~yWu_+`_">
                          <field name="ATTR">val</field>
                          <field name="OID">javascript.0.Eigene_Datenobjekte.Heizung.Heizung_Milan</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                  <value name="IF1">
                    <block type="logic_operation" id="#d$yT,r?@8)eQ0@M;ZTC">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="logic_compare" id=";2n[S`U0;YcOl1EU^t{z">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="hM/W{Su{)3-#J0{(mdJI">
                              <field name="ATTR">val</field>
                              <field name="OID">deconz.0.Sensors.3.open</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="`w9FhY6ii%Y!UaWa#~bA">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_compare" id="q`{ow%5Iy/yq=OmcrTc{">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="uKab/e=UI:(n/ZA.}|V}">
                              <field name="ATTR">val</field>
                              <field name="OID">deconz.0.Sensors.10.open</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="4n)mXr75-kfPO%ctP3HW">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO1">
                    <block type="control" id="L|Q.`$#;+d{[#s^JLe)b">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">deconz.0.Sensors.4.heatsetpoint</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="get_value" id="UJT}.V,3?tZ2}aT$,rDv">
                          <field name="ATTR">val</field>
                          <field name="OID">javascript.0.Eigene_Datenobjekte.Heizung.Heizung_Milan</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
          </statement>
        </block>
        <block type="on_source" id="em:P:3)SmM]^X:Gn/CvJ" x="79" y="113">
          <field name="ATTR">state.val</field>
        </block>
      </xml>
      
      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @adrian-c last edited by paul53

        @adrian-c
        Versuche es mal so:

        Blockly_temp.JPG

        <xml xmlns="https://developers.google.com/blockly/xml">
         <variables>
           <variable id="TU%]2q{ieoCPk=(uTLZg">sollwert</variable>
         </variables>
         <block type="on_ext" id="r}8_@`I?$%*,O-L;w2]b" x="-63" y="-196">
           <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
           <field name="CONDITION">ne</field>
           <field name="ACK_CONDITION"></field>
           <value name="OID0">
             <shadow type="field_oid" id="J3hGgkY5NI2Z0w;T~c}F">
               <field name="oid">deconz.0.Sensors.3.open</field>
             </shadow>
           </value>
           <value name="OID1">
             <shadow type="field_oid" id="-I7xDU0Sn~xm`7L1vnIP">
               <field name="oid">deconz.0.Sensors.10.open</field>
             </shadow>
           </value>
           <statement name="STATEMENT">
             <block type="controls_if" id="M3}s*{i,927;i8p=tb1(">
               <mutation else="1"></mutation>
               <value name="IF0">
                 <block type="logic_operation" id="O4oV$P:dH5;yHPVsx$_[" inline="false">
                   <field name="OP">OR</field>
                   <value name="A">
                     <block type="get_value" id="$^4pV_$`qRYqr0ErzSt)">
                       <field name="ATTR">val</field>
                       <field name="OID">deconz.0.Sensors.3.open</field>
                     </block>
                   </value>
                   <value name="B">
                     <block type="get_value" id="vTJyj;AniVa7XHKVm9e)">
                       <field name="ATTR">val</field>
                       <field name="OID">deconz.0.Sensors.10.open</field>
                     </block>
                   </value>
                 </block>
               </value>
               <statement name="DO0">
                 <block type="controls_if" id="c/y=h-9ijaXlJ*iqZ7~l">
                   <value name="IF0">
                     <block type="logic_compare" id="Mj9Nh,SwY/xqhm#}S0Yg">
                       <field name="OP">NEQ</field>
                       <value name="A">
                         <block type="get_value" id="5)`nIBR_+7bn(tXg^AWp">
                           <field name="ATTR">val</field>
                           <field name="OID">deconz.0.Sensors.4.heatsetpoint</field>
                         </block>
                       </value>
                       <value name="B">
                         <block type="math_number" id="h`fBr)|@-~pAWY_[4-%2">
                           <field name="NUM">10</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="variables_set" id="=05J6CwY9*ba1U.U#=)}">
                       <field name="VAR" id="TU%]2q{ieoCPk=(uTLZg">sollwert</field>
                       <value name="VALUE">
                         <block type="get_value" id="LQP+]EdXz24s1({58a)A">
                           <field name="ATTR">val</field>
                           <field name="OID">deconz.0.Sensors.4.heatsetpoint</field>
                         </block>
                       </value>
                       <next>
                         <block type="control" id="O8^w^;(ppG(Ef:xb3ikC">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">deconz.0.Sensors.4.heatsetpoint</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="math_number" id="5YwUK;n0vS;J!I*ny8,C">
                               <field name="NUM">10</field>
                             </block>
                           </value>
                         </block>
                       </next>
                     </block>
                   </statement>
                 </block>
               </statement>
               <statement name="ELSE">
                 <block type="control" id="*s-F$ZQt`h}-Yjo:UQlP">
                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                   <field name="OID">deconz.0.Sensors.4.heatsetpoint</field>
                   <field name="WITH_DELAY">FALSE</field>
                   <value name="VALUE">
                     <block type="logic_ternary" id="~*XrXjE#xj;s?FI8i0lz">
                       <value name="IF">
                         <block type="variables_get" id="PwE*yGbn1R=GA~p`|yPu">
                           <field name="VAR" id="TU%]2q{ieoCPk=(uTLZg">sollwert</field>
                         </block>
                       </value>
                       <value name="THEN">
                         <block type="variables_get" id="`lCoZ:7FoG^JF0!l6k9x">
                           <field name="VAR" id="TU%]2q{ieoCPk=(uTLZg">sollwert</field>
                         </block>
                       </value>
                       <value name="ELSE">
                         <block type="math_number" id="GGnz13N^nZ.ImKvW$dx_">
                           <field name="NUM">20</field>
                         </block>
                       </value>
                     </block>
                   </value>
                 </block>
               </statement>
             </block>
           </statement>
         </block>
        </xml>
        

        A 1 Reply Last reply Reply Quote 0
        • A
          adrian-c @paul53 last edited by adrian-c

          @paul53 mega, danke!!!! Ich habe es nach deiner ersten Version probiert, funktioniert sehr gut.

          • okay, die 20Grad sind dann sicher eine Art „Ersatzwert“, korrekt?
          paul53 1 Reply Last reply Reply Quote 0
          • paul53
            paul53 @adrian-c last edited by

            @adrian-c sagte: die 20Grad sind dann sicher eine Art „Ersatzwert“, korrekt?

            Ja, für den Fall, dass das Skript gestartet wird, wenn ein Fenster offen ist und danach das Fenster geschlossen wird.

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

            Support us

            ioBroker
            Community Adapters
            Donate

            787
            Online

            31.9k
            Users

            80.2k
            Topics

            1.3m
            Posts

            2
            4
            215
            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