Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. IDs vom Selektor in Blocky...

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    IDs vom Selektor in Blocky...

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

      Moin Moin,

      ich bin der Anleitung von https://www.machs-smart.de/iobroker-blockly-id-selektor/ gefolgt und habe meine Homematic-Fenstersensoren in eine neue Gruppe windowSensors hinzugefügt.

      Leider triggert dieses Blockly nicht, wenn ich Fenster schliesse und öffne:

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="Q4zXHqz~c;vIBd3]btTw">window</variable>
        </variables>
        <block type="on_ext" id="5MHar=uyD)B[+4*Yk,V?" x="212" y="238">
          <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="u=@K3T[_9Qwx[`HT)FnV">
              <field name="oid">default</field>
            </shadow>
            <block type="selector" id="nsUN,{BMqrhO/Ckg[oz2">
              <field name="TEXT">state[id=true](functions=windowSensors)</field>
            </block>
          </value>
          <statement name="STATEMENT">
            <block type="debug" id="_1hQH75{2urGUF!Y#R:n">
              <field name="Severity">log</field>
              <value name="TEXT">
                <shadow type="text">
                  <field name="TEXT">test</field>
                </shadow>
                <block type="text" id="=-wvkTRooYT}([QlprK`">
                  <field name="TEXT">Triggered...</field>
                </block>
              </value>
              <next>
                <block type="controls_forEach" id="yATpMB~0XE]P;sp?zHec">
                  <field name="VAR" id="Q4zXHqz~c;vIBd3]btTw">window</field>
                  <value name="LIST">
                    <block type="selector" id="{^h;c?Eqj-lHhd~6%E.q">
                      <field name="TEXT">state[id=true](functions=windowSensors)</field>
                    </block>
                  </value>
                  <statement name="DO">
                    <block type="debug" id="xr3elB}R!j{+|j;L4=.Z">
                      <field name="Severity">log</field>
                      <value name="TEXT">
                        <shadow type="text" id="P^sUN.2@;fH4u(L?Ke]Q">
                          <field name="TEXT">test</field>
                        </shadow>
                        <block type="text" id="Q9aB[(?l!ns`Y}KfPC}Y">
                          <field name="TEXT">Within Loop</field>
                        </block>
                      </value>
                      <next>
                        <block type="controls_if" id="hBbUVQD%FDto=kNAN2qM">
                          <value name="IF0">
                            <block type="get_value_var" id="!#HmUR)r_3IM;Tk3Q^[#">
                              <field name="ATTR">val</field>
                              <value name="OID">
                                <shadow type="text" id="gBLL6f$u5h4@{4,+~AGj">
                                  <field name="TEXT"></field>
                                </shadow>
                                <block type="variables_get" id="m;-ptmO,L24}ulJ%FJ]c">
                                  <field name="VAR" id="Q4zXHqz~c;vIBd3]btTw">window</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="debug" id="}uRX9=j0IIS@A|A?k6^{">
                              <field name="Severity">log</field>
                              <value name="TEXT">
                                <shadow type="text" id="6!t%L^pv5^~h~cS){Lt=">
                                  <field name="TEXT">test</field>
                                </shadow>
                                <block type="variables_get" id="3T$%fsKbhi#_*dNU.H=n">
                                  <field name="VAR" id="Q4zXHqz~c;vIBd3]btTw">window</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </statement>
        </block>
      </xml>
      

      Die Mitglieder der Gruppe windowSensors sind alle vom Typ linkeddevices - das sollte doch aber trotzdem funktionieren...?

      Was mache ich flasch?

      Danke, -MN

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

        @Morgennebel sagte:

        state[id=true](functions=windowSensors)
        

        Das kann nicht funktionieren. Siehe Doku zum $Selector

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

        Support us

        ioBroker
        Community Adapters
        Donate

        762
        Online

        32.0k
        Users

        80.4k
        Topics

        1.3m
        Posts

        blockly
        2
        2
        1532
        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