NEWS
RFLink KaKu Lampeschaltet in objecte, VIS nicht in Blockly
-
Guten tag alle,
Ich habe 3 KaKu ( klik aan klik uit ) Steckdosen, und wurde die gerne mit einen Script schalten. ( Wohnzimmer Beleuchtung ).
Wenn ich in Objecte Schaue dann gibt es da den Object SWITCH_4 mit wert false, wenn ich die auf true setze geht die Lampe an.
Aug wenn ich in VIS einen Button erstelle und verbinde an das gleichen Object, kann ich die Lampe schalten.wenn ich das in ein Blockly script verarbeite wirt den Wert false oder true nicht geändert in den Object.
Hat jemanden das schon mal gehabt und hat eine Losung ?Unten mein Code für Blockly es geht um den "Control NewKaku 2 Switch 4"
entschuldigen Sie mein schlechtes Deutsch
Viele Gruse
Adriaan aus Holland.<xml xmlns="https://developers.google.com/blockly/xml"> <block type="comment" id="SV~?L}pLL#|ZUVJwN*:G" x="12" y="-162"> <field name="COMMENT">Kamerlicht bediening op hoofdscherm</field> <next> <block type="on_ext" id="H=(iec1V22abd!TWTx?{"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="Lubd_rexci4Ri~z|kwkR"> <field name="oid">0_userdata.0.Lichtgroepen.Kamer</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="6O,:D{iZez-2m});mQ8/"> <value name="IF0"> <block type="logic_compare" id="o|1-n~`9j$bu8FB}.Jj."> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id=";eogqfxhszZ0TK$TOOx+"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="logic_boolean" id="$JeAgHXvqEl843/YiQTL"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="/=8|EcEB1l5nwyp0Au/6"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.842e14fffe685bfc.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="qYt4rn/E6#ndAo@3N%4u"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="GIgP`qv,Sx[+h2$k?lPg"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">zigbee.0.842e14fffe685bfc.brightness</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="d[U-H$1?n4]xZRcrpoQ?"> <field name="NUM">80</field> </block> </value> <next> <block type="control" id="BXiOCny3K}9s-g`Td)oo"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.842e14fffe436575.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="p/yhOBp[vx*9}c;1JPrO"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="HdG]oa0SxAC9pynU20ew"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">zigbee.0.842e14fffe436575.brightness</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="hIwpI1$fcIV$xZ[;g~!`"> <field name="NUM">80</field> </block> </value> <next> <block type="control" id="=!|9hb!JmXXIuj._L8^$"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">rflink.0.channels.NewKaku_2.SWITCH_4</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="hIV|WpWiS}]%2,/?$[ub"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="controls_if" id="?S^?WKEHQW7ve10FiMZ."> <value name="IF0"> <block type="logic_compare" id="eTpDj56+v5h;=v^v,=nc"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="D3!GOK#?D1w(k;d9bW.R"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="logic_boolean" id="K7$e/k!W~Zbb^wE=cA)]"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="iCe+tp+qaW^kCbioLW`F"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.842e14fffe685bfc.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="-Z+3(!jI2w7_LZ))KXs`"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="9;]Q[0g5b1Y-b8pxQ7n$"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">zigbee.0.842e14fffe685bfc.brightness</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="YZmPUHL/.rgMHk*8no0!"> <field name="NUM">0</field> </block> </value> <next> <block type="control" id="mI(DPp#caAY`it;fA_Sg"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.842e14fffe436575.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="bIUbRcXJ7n?/zDZA9LL]"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="fL@pXU|YnS(pRGqDbd_N"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">zigbee.0.842e14fffe436575.brightness</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="#`tqoEC{Pg_XgX0YkYa+"> <field name="NUM">0</field> </block> </value> <next> <block type="control" id="wEDHQ4`$IB,ZM6-S=SR6"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">rflink.0.channels.NewKaku_2.SWITCH_4</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="4.7{2VCOcX!sPsdGKf;("> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> <block type="on_ext" id="+RM%vOEqLne}{Ne8@nqH" x="587" y="-162"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="3MQmc_NIJ(Zg.f(bBCqb"> <field name="oid">0_userdata.0.Lichtgroepen.KamerDimmer</field> </shadow> </value> <statement name="STATEMENT"> <block type="control" id="m)CC@Yw0`E?AfOd/61J@"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">zigbee.0.842e14fffe685bfc.brightness</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="on_source" id="5W@?a=RC-~I^))D7]Qjt"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="control" id="K//1fGzF,dKDTPh%FOse"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">zigbee.0.842e14fffe436575.brightness</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="on_source" id="4s@VK4,_I::G:}|r$w4("> <field name="ATTR">state.val</field> </block> </value> </block> </next> </block> </statement> </block> <block type="on_ext" id="#e5FB`u6d~BqB-jD~S@l" x="713" y="88"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="?~Q(G:[#`L:xVZzG|zfA"> <field name="oid">0_userdata.0.Lichtgroepen.KamerLichtKleur</field> </shadow> </value> <statement name="STATEMENT"> <block type="control" id="Ok.#PL:0+!xW$^.Di`8Q"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">zigbee.0.842e14fffe685bfc.colortemp</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="on_source" id="W,ts@^;yY/]D7@9yl{/M"> <field name="ATTR">state.val</field> </block> </value> </block> </statement> </block> </xml>