NEWS
IDs vom Selektor in Blocky...
-
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
-
@Morgennebel sagte:
state[id=true](functions=windowSensors)
Das kann nicht funktionieren. Siehe Doku zum $Selector