Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Praktische Anwendungen (Showcase)
    4. Status bei einem zweiteiligen Fenster

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    Status bei einem zweiteiligen Fenster

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

      Hallo @all

      Bin gerade dabei meine Fenster mit den Xiaomi MCCGQ11LM auszustatten.
      Bei einem einteiligen Fenster gibt es ja die Status closed/tilted/open,
      welche ich, mittels Blockly, mit zwei Sensoren in einem Datenpunkt ausgeben kann.

      Bei einem zweiteiligen Fenster, welches auf einer Seite gekippt und geöffnet werden kann,
      und zusätzlich die zweite Seite noch geöffnet wird, habe ich ja noch einen vierten Status.
      Aktuell verwende ich die Status closed/tilted/open/openwide.

      Wie habt habt ihr das umgesetzt?

      Gruß, Karsten

      Blockly_Fenster_Status_01.png

      <xml xmlns="https://developers.google.com/blockly/xml">
        <block type="create" id="_HK@W/BRCM3`/$OH+b2k" x="238" y="88">
          <field name="NAME">0_userdata.0.general.contact.z_bedroom_window.state</field>
          <value name="VALUE">
            <block type="text" id="35Ye+URGNsD]=`v#0UZc">
              <field name="TEXT">closed</field>
            </block>
          </value>
          <value name="COMMON">
            <block type="text" id="0^2xBgz~+knD[mnS;fc}">
              <field name="TEXT">{"type":"string", "read":true, "write":true, "role":"text"}</field>
            </block>
          </value>
          <next>
            <block type="on_ext" id="s-!%fV]psfPFKTi3`4~M">
              <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id="%e21Y},q#rPYnycE{i_o">
                  <field name="oid">mqtt.1.zigbee2mqtt.xi_sensor_contact_15.contact</field>
                </shadow>
              </value>
              <value name="OID1">
                <shadow type="field_oid" id="?A$;H0VO5|X!Fd{aU3M}">
                  <field name="oid">mqtt.1.zigbee2mqtt.xi_sensor_contact_16.contact</field>
                </shadow>
              </value>
              <value name="OID2">
                <shadow type="field_oid" id="ORB;x$HSNU[tk]/L@=k*">
                  <field name="oid">mqtt.1.zigbee2mqtt.xi_sensor_contact_17.contact</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="controls_if" id="d:I_:77`CaG26DOni972">
                  <mutation elseif="2" else="1"></mutation>
                  <value name="IF0">
                    <block type="logic_operation" id="_lz!PS)h4j2wN@*?NSR~" inline="false">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="logic_negate" id="m%bRu64:Qr0~y}:22wN(">
                          <value name="BOOL">
                            <block type="get_value" id="U}ix45v[$pO;XMM,)IZb">
                              <field name="ATTR">val</field>
                              <field name="OID">mqtt.1.zigbee2mqtt.xi_sensor_contact_15.contact</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_operation" id="hMp5-=0/cgrFo#?{MMX[" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="get_value" id="lA5=s#qHqBpMz=ixMBIV">
                              <field name="ATTR">val</field>
                              <field name="OID">mqtt.1.zigbee2mqtt.xi_sensor_contact_16.contact</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="get_value" id="FAJBI3.U!)qV`XppSAYG">
                              <field name="ATTR">val</field>
                              <field name="OID">mqtt.1.zigbee2mqtt.xi_sensor_contact_17.contact</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id="US,,|Hw(R%X78)68-2;1">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">0_userdata.0.general.contact.z_bedroom_window.state</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="text" id="fpxN0O@EI,08~_4Ok/Z1">
                          <field name="TEXT">tilted</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                  <value name="IF1">
                    <block type="logic_operation" id="jCggUZAt`cp#B2u~{n$2" inline="false">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="logic_negate" id="S@:]vXZu0;*Iu_52DI(a">
                          <value name="BOOL">
                            <block type="logic_operation" id="}Y%)tIRBb0CNBrP?xIsE" inline="false">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="get_value" id="kk*.CK{NGPh^i(4J(?}i">
                                  <field name="ATTR">val</field>
                                  <field name="OID">mqtt.1.zigbee2mqtt.xi_sensor_contact_15.contact</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="get_value" id="XXzIFUWpt)MS:kB(ltrm">
                                  <field name="ATTR">val</field>
                                  <field name="OID">mqtt.1.zigbee2mqtt.xi_sensor_contact_16.contact</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="get_value" id="uczlGKOM:Aysjn{c6LR*">
                          <field name="ATTR">val</field>
                          <field name="OID">mqtt.1.zigbee2mqtt.xi_sensor_contact_17.contact</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO1">
                    <block type="control" id="94NOV(:+N2~r_K}_Hq5#">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">0_userdata.0.general.contact.z_bedroom_window.state</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="text" id="cr`mD6kGtkO}CM+BrIkV">
                          <field name="TEXT">open</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                  <value name="IF2">
                    <block type="logic_negate" id="=y1sk8]Sf2)B%^Mf5mm8">
                      <value name="BOOL">
                        <block type="logic_operation" id="ie?k=u/(~GblPYoZ1e0n" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="get_value" id="Vq$b__QN@47cn}t8C@CX">
                              <field name="ATTR">val</field>
                              <field name="OID">mqtt.1.zigbee2mqtt.xi_sensor_contact_15.contact</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_operation" id="lq6S)b{S-cVo*22#eJvJ" inline="false">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="get_value" id="RT*::@`b)kd8.JSox|E,">
                                  <field name="ATTR">val</field>
                                  <field name="OID">mqtt.1.zigbee2mqtt.xi_sensor_contact_16.contact</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="get_value" id="Z3s:5SbauzkQ{^_y-p(*">
                                  <field name="ATTR">val</field>
                                  <field name="OID">mqtt.1.zigbee2mqtt.xi_sensor_contact_17.contact</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO2">
                    <block type="control" id="_$UpIc=EZcDNWKm%exV;">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">0_userdata.0.general.contact.z_bedroom_window.state</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="text" id="o$G~o,^V3v(g?bhfb:gd">
                          <field name="TEXT">openwide</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                  <statement name="ELSE">
                    <block type="control" id="$jZ2;TT4ShL(,t?,[mA9">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">0_userdata.0.general.contact.z_bedroom_window.state</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="text" id="KUGWnF7n.bt:Y^CS_e#$">
                          <field name="TEXT">closed</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
          </next>
        </block>
      </xml>
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate

      1.0k
      Online

      32.1k
      Users

      80.7k
      Topics

      1.3m
      Posts

      blockly datenpunkt fensterkontakte status
      1
      1
      225
      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