- ioBroker Community Home
- Deutsch
- Skripten / Logik
- Blockly
- (Gelöst) Hofbelicht (2x shelly1mini 3gen) mit zigbee taster
(Gelöst) Hofbelicht (2x shelly1mini 3gen) mit zigbee taster
-
@walter-o
vielleicht mit dem Smartcontrol-Adapter machbar -
@paul53
Das sind die Datenpunkte desTasters.

Es ändert sich aber lediglich msg_from_Zigbee alle anderen ändern sich Augenscheinlich nicht.
Wie kann ich den daraus einen verwertbaren datenpunkt ableiten.?@walter-o sagte: Es ändert sich aber lediglich msg_from_Zigbee
Das ist offenbar ein Zigbee-Problem. Ich verwende kein Zigbee.
@walter-o sagte in 2 x Hofbeleuchtung (shelly) mit zigbee taster:
Wie kann ich den daraus einen verwertbaren datenpunkt ableiten.?
Wie sieht das JSON nach Tastendruck (einfach / doppelt) aus? Bitte in Code tags posten.
Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs -
@walter-o geht sicher mit dem Adapter. Ist halt Tricky.
Ich mach das Ding für Frau Wau über Alexa Routine.
Am Handy jetzt schwer zu erklären.
IMHO sollte es egal sein, ob ein oder ausgeschaltet ist.
Wenn on kommt, dann bleibt on und umgekehrt.gruß vom Woody
HAPPINESS is not a DESTINATION, it's a WAY of LIFE! -
@walter-o sagte: Es ändert sich aber lediglich msg_from_Zigbee
Das ist offenbar ein Zigbee-Problem. Ich verwende kein Zigbee.
@walter-o sagte in 2 x Hofbeleuchtung (shelly) mit zigbee taster:
Wie kann ich den daraus einen verwertbaren datenpunkt ableiten.?
Wie sieht das JSON nach Tastendruck (einfach / doppelt) aus? Bitte in Code tags posten.
@paul53 ```
{"type":"commandOn","data":{},"linkquality":60,"groupID":0,"cluster":"genOnOff","meta":{"zclTransactionSequenceNumber":10,"manufacturerCode":null,"frameControl":{"frameType":1,"manufacturerSpecific":false,"direction":0,"disableDefaultResponse":false,"reservedBits":0}},"endpoint_id":1}{"type":"commandOff","data":{},"linkquality":78,"groupID":0,"cluster":"genOnOff","meta":{"zclTransactionSequenceNumber":12,"manufacturerCode":null,"frameControl":{"frameType":1,"manufacturerSpecific":false,"direction":0,"disableDefaultResponse":false,"reservedBits":0}},"endpoint_id":1}
-
@paul53 ```
{"type":"commandOn","data":{},"linkquality":60,"groupID":0,"cluster":"genOnOff","meta":{"zclTransactionSequenceNumber":10,"manufacturerCode":null,"frameControl":{"frameType":1,"manufacturerSpecific":false,"direction":0,"disableDefaultResponse":false,"reservedBits":0}},"endpoint_id":1}{"type":"commandOff","data":{},"linkquality":78,"groupID":0,"cluster":"genOnOff","meta":{"zclTransactionSequenceNumber":12,"manufacturerCode":null,"frameControl":{"frameType":1,"manufacturerSpecific":false,"direction":0,"disableDefaultResponse":false,"reservedBits":0}},"endpoint_id":1}
-
@walter-o sagte: Blockly text Posten
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="~iQx0Q}a|y}zR{LN]U*i">type</variable> <variable id="uF4nf.fyz-tn|HE{_El0">ein</variable> </variables> <block type="on" id="}?yc?LfV9qf7iF-VTdr9" x="37" y="87"> <field name="OID">Object ID</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="variables_set" id="lyFXDOZ*39-CK665*j$5"> <field name="VAR" id="~iQx0Q}a|y}zR{LN]U*i">type</field> <value name="VALUE"> <block type="get_attr" id="X@WYi;9RrE:4WeF~!oU!"> <value name="PATH"> <shadow type="text" id="H*COjn{DgxKCn:;-X$2T"> <field name="TEXT">type</field> </shadow> </value> <value name="OBJECT"> <block type="on_source" id="4:dglq^{-Qj6M!!)[ZxO"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <next> <block type="controls_if" id="6MMia/szEeSu7%2T#Z!~"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="9EtiaTfg^Tg|E,P~Jab~"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="$-wW^5*K=A:+y6^:h{xe"> <field name="VAR" id="~iQx0Q}a|y}zR{LN]U*i">type</field> </block> </value> <value name="B"> <block type="text" id="8N%)wwitEh$=,$iRT/M("> <field name="TEXT">commandOn</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Pp0srM6fczBddUo9x|x|"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> <value name="VALUE"> <block type="logic_boolean" id=".?N4$X3:Gbc7_|=}xAq0"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="8mhcb~FktOrFF8Xh^i|g"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="1(R/0By93-5}|5kYroHl"> <field name="VAR" id="~iQx0Q}a|y}zR{LN]U*i">type</field> </block> </value> <value name="B"> <block type="text" id="}7Yrpq%g?d;m?g/V6D1T"> <field name="TEXT">commandOff</field> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="Jutld7$/y]Lj1rT?Gp*:"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> <value name="VALUE"> <block type="logic_boolean" id="c_zo]Zu@,+UuaGV5,xy`"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="0X^qG|=i/!y@2wgj/ZgT"> <value name="IF0"> <block type="logic_compare" id="l!Jh.`-Y/$UL3t1G/3z9"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id=".b?)t:QsS|hq;k59VA1d"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> <value name="B"> <block type="get_value" id="x#t`;?;T3Vr*pZr_!!JC"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Blockly.Switch1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="~2!4@$uBDI{h/:M,-M*;"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Blockly.Switch1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="|)UHos+ocyoX[oU(GhCp"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="id=Zre!Zru,Xc]zE)GkP"> <value name="IF0"> <block type="logic_compare" id="1,7D~P.SX.1oj]=:02iF"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="Uy5VO#`q.uQt~*L39_,3"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> <value name="B"> <block type="get_value" id="h:HAg+hpe!4$UCU=#]Np"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Blockly.Switch2</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="[m~eT|zpZ=f02Xay:Gc*"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Blockly.Switch2</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="EUgxb?L2b_]OTS{wiKP="> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs -
@walter-o sagte: Blockly text Posten
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="~iQx0Q}a|y}zR{LN]U*i">type</variable> <variable id="uF4nf.fyz-tn|HE{_El0">ein</variable> </variables> <block type="on" id="}?yc?LfV9qf7iF-VTdr9" x="37" y="87"> <field name="OID">Object ID</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="variables_set" id="lyFXDOZ*39-CK665*j$5"> <field name="VAR" id="~iQx0Q}a|y}zR{LN]U*i">type</field> <value name="VALUE"> <block type="get_attr" id="X@WYi;9RrE:4WeF~!oU!"> <value name="PATH"> <shadow type="text" id="H*COjn{DgxKCn:;-X$2T"> <field name="TEXT">type</field> </shadow> </value> <value name="OBJECT"> <block type="on_source" id="4:dglq^{-Qj6M!!)[ZxO"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <next> <block type="controls_if" id="6MMia/szEeSu7%2T#Z!~"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="9EtiaTfg^Tg|E,P~Jab~"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="$-wW^5*K=A:+y6^:h{xe"> <field name="VAR" id="~iQx0Q}a|y}zR{LN]U*i">type</field> </block> </value> <value name="B"> <block type="text" id="8N%)wwitEh$=,$iRT/M("> <field name="TEXT">commandOn</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Pp0srM6fczBddUo9x|x|"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> <value name="VALUE"> <block type="logic_boolean" id=".?N4$X3:Gbc7_|=}xAq0"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="8mhcb~FktOrFF8Xh^i|g"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="1(R/0By93-5}|5kYroHl"> <field name="VAR" id="~iQx0Q}a|y}zR{LN]U*i">type</field> </block> </value> <value name="B"> <block type="text" id="}7Yrpq%g?d;m?g/V6D1T"> <field name="TEXT">commandOff</field> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="Jutld7$/y]Lj1rT?Gp*:"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> <value name="VALUE"> <block type="logic_boolean" id="c_zo]Zu@,+UuaGV5,xy`"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="0X^qG|=i/!y@2wgj/ZgT"> <value name="IF0"> <block type="logic_compare" id="l!Jh.`-Y/$UL3t1G/3z9"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id=".b?)t:QsS|hq;k59VA1d"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> <value name="B"> <block type="get_value" id="x#t`;?;T3Vr*pZr_!!JC"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Blockly.Switch1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="~2!4@$uBDI{h/:M,-M*;"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Blockly.Switch1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="|)UHos+ocyoX[oU(GhCp"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="id=Zre!Zru,Xc]zE)GkP"> <value name="IF0"> <block type="logic_compare" id="1,7D~P.SX.1oj]=:02iF"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="Uy5VO#`q.uQt~*L39_,3"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> <value name="B"> <block type="get_value" id="h:HAg+hpe!4$UCU=#]Np"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Blockly.Switch2</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="[m~eT|zpZ=f02Xay:Gc*"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Blockly.Switch2</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="EUgxb?L2b_]OTS{wiKP="> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>@paul53 sagte in 2 x Hofbeleuchtung (shelly) mit zigbee taster:
@walter-o sagte: Blockly text Posten
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="~iQx0Q}a|y}zR{LN]U*i">type</variable> <variable id="uF4nf.fyz-tn|HE{_El0">ein</variable> </variables> <block type="on" id="}?yc?LfV9qf7iF-VTdr9" x="37" y="87"> <field name="OID">Object ID</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="variables_set" id="lyFXDOZ*39-CK665*j$5"> <field name="VAR" id="~iQx0Q}a|y}zR{LN]U*i">type</field> <value name="VALUE"> <block type="get_attr" id="X@WYi;9RrE:4WeF~!oU!"> <value name="PATH"> <shadow type="text" id="H*COjn{DgxKCn:;-X$2T"> <field name="TEXT">type</field> </shadow> </value> <value name="OBJECT"> <block type="on_source" id="4:dglq^{-Qj6M!!)[ZxO"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <next> <block type="controls_if" id="6MMia/szEeSu7%2T#Z!~"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="9EtiaTfg^Tg|E,P~Jab~"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="$-wW^5*K=A:+y6^:h{xe"> <field name="VAR" id="~iQx0Q}a|y}zR{LN]U*i">type</field> </block> </value> <value name="B"> <block type="text" id="8N%)wwitEh$=,$iRT/M("> <field name="TEXT">commandOn</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Pp0srM6fczBddUo9x|x|"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> <value name="VALUE"> <block type="logic_boolean" id=".?N4$X3:Gbc7_|=}xAq0"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="8mhcb~FktOrFF8Xh^i|g"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="1(R/0By93-5}|5kYroHl"> <field name="VAR" id="~iQx0Q}a|y}zR{LN]U*i">type</field> </block> </value> <value name="B"> <block type="text" id="}7Yrpq%g?d;m?g/V6D1T"> <field name="TEXT">commandOff</field> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="Jutld7$/y]Lj1rT?Gp*:"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> <value name="VALUE"> <block type="logic_boolean" id="c_zo]Zu@,+UuaGV5,xy`"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="0X^qG|=i/!y@2wgj/ZgT"> <value name="IF0"> <block type="logic_compare" id="l!Jh.`-Y/$UL3t1G/3z9"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id=".b?)t:QsS|hq;k59VA1d"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> <value name="B"> <block type="get_value" id="x#t`;?;T3Vr*pZr_!!JC"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Blockly.Switch1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="~2!4@$uBDI{h/:M,-M*;"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Blockly.Switch1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="|)UHos+ocyoX[oU(GhCp"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="id=Zre!Zru,Xc]zE)GkP"> <value name="IF0"> <block type="logic_compare" id="1,7D~P.SX.1oj]=:02iF"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="Uy5VO#`q.uQt~*L39_,3"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> <value name="B"> <block type="get_value" id="h:HAg+hpe!4$UCU=#]Np"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Blockly.Switch2</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="[m~eT|zpZ=f02Xay:Gc*"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Blockly.Switch2</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="EUgxb?L2b_]OTS{wiKP="> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>Danke dir, dasFunktioniert schon mal
-
@paul53 sagte in 2 x Hofbeleuchtung (shelly) mit zigbee taster:
@walter-o sagte: Blockly text Posten
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="~iQx0Q}a|y}zR{LN]U*i">type</variable> <variable id="uF4nf.fyz-tn|HE{_El0">ein</variable> </variables> <block type="on" id="}?yc?LfV9qf7iF-VTdr9" x="37" y="87"> <field name="OID">Object ID</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="variables_set" id="lyFXDOZ*39-CK665*j$5"> <field name="VAR" id="~iQx0Q}a|y}zR{LN]U*i">type</field> <value name="VALUE"> <block type="get_attr" id="X@WYi;9RrE:4WeF~!oU!"> <value name="PATH"> <shadow type="text" id="H*COjn{DgxKCn:;-X$2T"> <field name="TEXT">type</field> </shadow> </value> <value name="OBJECT"> <block type="on_source" id="4:dglq^{-Qj6M!!)[ZxO"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <next> <block type="controls_if" id="6MMia/szEeSu7%2T#Z!~"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="9EtiaTfg^Tg|E,P~Jab~"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="$-wW^5*K=A:+y6^:h{xe"> <field name="VAR" id="~iQx0Q}a|y}zR{LN]U*i">type</field> </block> </value> <value name="B"> <block type="text" id="8N%)wwitEh$=,$iRT/M("> <field name="TEXT">commandOn</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Pp0srM6fczBddUo9x|x|"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> <value name="VALUE"> <block type="logic_boolean" id=".?N4$X3:Gbc7_|=}xAq0"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="8mhcb~FktOrFF8Xh^i|g"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="1(R/0By93-5}|5kYroHl"> <field name="VAR" id="~iQx0Q}a|y}zR{LN]U*i">type</field> </block> </value> <value name="B"> <block type="text" id="}7Yrpq%g?d;m?g/V6D1T"> <field name="TEXT">commandOff</field> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="Jutld7$/y]Lj1rT?Gp*:"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> <value name="VALUE"> <block type="logic_boolean" id="c_zo]Zu@,+UuaGV5,xy`"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="0X^qG|=i/!y@2wgj/ZgT"> <value name="IF0"> <block type="logic_compare" id="l!Jh.`-Y/$UL3t1G/3z9"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id=".b?)t:QsS|hq;k59VA1d"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> <value name="B"> <block type="get_value" id="x#t`;?;T3Vr*pZr_!!JC"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Blockly.Switch1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="~2!4@$uBDI{h/:M,-M*;"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Blockly.Switch1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="|)UHos+ocyoX[oU(GhCp"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="id=Zre!Zru,Xc]zE)GkP"> <value name="IF0"> <block type="logic_compare" id="1,7D~P.SX.1oj]=:02iF"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="Uy5VO#`q.uQt~*L39_,3"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> <value name="B"> <block type="get_value" id="h:HAg+hpe!4$UCU=#]Np"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Blockly.Switch2</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="[m~eT|zpZ=f02Xay:Gc*"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Blockly.Switch2</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="EUgxb?L2b_]OTS{wiKP="> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>Danke dir, dasFunktioniert schon mal
@walter-o sagte in 2 x Hofbeleuchtung (shelly) mit zigbee taster:
@paul53 sagte in 2 x Hofbeleuchtung (shelly) mit zigbee taster:
@walter-o sagte: Blockly text Posten
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="~iQx0Q}a|y}zR{LN]U*i">type</variable> <variable id="uF4nf.fyz-tn|HE{_El0">ein</variable> </variables> <block type="on" id="}?yc?LfV9qf7iF-VTdr9" x="37" y="87"> <field name="OID">Object ID</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="variables_set" id="lyFXDOZ*39-CK665*j$5"> <field name="VAR" id="~iQx0Q}a|y}zR{LN]U*i">type</field> <value name="VALUE"> <block type="get_attr" id="X@WYi;9RrE:4WeF~!oU!"> <value name="PATH"> <shadow type="text" id="H*COjn{DgxKCn:;-X$2T"> <field name="TEXT">type</field> </shadow> </value> <value name="OBJECT"> <block type="on_source" id="4:dglq^{-Qj6M!!)[ZxO"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <next> <block type="controls_if" id="6MMia/szEeSu7%2T#Z!~"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="9EtiaTfg^Tg|E,P~Jab~"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="$-wW^5*K=A:+y6^:h{xe"> <field name="VAR" id="~iQx0Q}a|y}zR{LN]U*i">type</field> </block> </value> <value name="B"> <block type="text" id="8N%)wwitEh$=,$iRT/M("> <field name="TEXT">commandOn</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Pp0srM6fczBddUo9x|x|"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> <value name="VALUE"> <block type="logic_boolean" id=".?N4$X3:Gbc7_|=}xAq0"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="8mhcb~FktOrFF8Xh^i|g"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="1(R/0By93-5}|5kYroHl"> <field name="VAR" id="~iQx0Q}a|y}zR{LN]U*i">type</field> </block> </value> <value name="B"> <block type="text" id="}7Yrpq%g?d;m?g/V6D1T"> <field name="TEXT">commandOff</field> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="Jutld7$/y]Lj1rT?Gp*:"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> <value name="VALUE"> <block type="logic_boolean" id="c_zo]Zu@,+UuaGV5,xy`"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="0X^qG|=i/!y@2wgj/ZgT"> <value name="IF0"> <block type="logic_compare" id="l!Jh.`-Y/$UL3t1G/3z9"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id=".b?)t:QsS|hq;k59VA1d"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> <value name="B"> <block type="get_value" id="x#t`;?;T3Vr*pZr_!!JC"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Blockly.Switch1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="~2!4@$uBDI{h/:M,-M*;"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Blockly.Switch1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="|)UHos+ocyoX[oU(GhCp"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="id=Zre!Zru,Xc]zE)GkP"> <value name="IF0"> <block type="logic_compare" id="1,7D~P.SX.1oj]=:02iF"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="Uy5VO#`q.uQt~*L39_,3"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> <value name="B"> <block type="get_value" id="h:HAg+hpe!4$UCU=#]Np"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Blockly.Switch2</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="[m~eT|zpZ=f02Xay:Gc*"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Blockly.Switch2</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="EUgxb?L2b_]OTS{wiKP="> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>Danke dir, dasFunktioniert schon mal
Wurde so Umgesetzt:
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="~iQx0Q}a|y}zR{LN]Ui">type</variable>
<variable id="uF4nf.fyz-tn|HE{_El0">ein</variable>
</variables>
<block type="create" id="zxZD[0i1%Tngm]26W3N" disabled="true" x="838" y="37">
<field name="NAME">0_userdata.0.Haus.Garten.SwitchTreppe</field>
</block>
<block type="on" id="}?yc?LfV9qf7iF-VTdr9" x="37" y="87">
<field name="OID">zigbee.0.2c1165fffe517347.msg_from_zigbee</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="variables_set" id="lyFXDOZ39-CK665j$5">
<field name="VAR" id="~iQx0Q}a|y}zR{LN]Ui">type</field>
<value name="VALUE">
<block type="get_attr" id="X@WYi;9RrE:4WeF~!oU!">
<value name="PATH">
<shadow type="text" id="HCOjn{DgxKCn:;-X$2T">
<field name="TEXT">type</field>
</shadow>
</value>
<value name="OBJECT">
<block type="on_source" id="4:dglq^{-Qj6M!!)[ZxO">
<field name="ATTR">state.val</field>
</block>
</value>
</block>
</value>
<next>
<block type="controls_if" id="6MMia/szEeSu7%2T#Z!~">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="9EtiaTfg^Tg|E,P~Jab~">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="$-wW^5K=A:+y6^:h{xe">
<field name="VAR" id="~iQx0Q}a|y}zR{LN]Ui">type</field>
</block>
</value>
<value name="B">
<block type="text" id="8N%)wwitEh$=,$iRT/M(">
<field name="TEXT">commandOn</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="Pp0srM6fczBddUo9x|x|">
<field name="VAR" id="uF4nf.fyz-tn|HE{El0">ein</field>
<value name="VALUE">
<block type="logic_boolean" id=".?N4$X3:Gbc7|=}xAq0">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="8mhcb~FktOrFF8Xh^i|g">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="1(R/0By93-5}|5kYroHl">
<field name="VAR" id="~iQx0Q}a|y}zR{LN]Ui">type</field>
</block>
</value>
<value name="B">
<block type="text" id="}7Yrpq%g?d;m?g/V6D1T">
<field name="TEXT">commandOff</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="variables_set" id="Jutld7$/y]Lj1rT?Gp:">
<field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field>
<value name="VALUE">
<block type="logic_boolean" id="c_zo]Zu@,+UuaGV5,xy"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="0X^qG|=i/!y@2wgj/ZgT"> <value name="IF0"> <block type="logic_compare" id="l!Jh.-Y/$UL3t1G/3z9">
<field name="OP">NEQ</field>
<value name="A">
<block type="variables_get" id=".b?)t:QsS|hq;k59VA1d">
<field name="VAR" id="uF4nf.fyz-tn|HE{El0">ein</field>
</block>
</value>
<value name="B">
<block type="get_value" id="x#t;?;T3Vr*pZr_!!JC"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Haus.Garten.SwitchTreppe</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="~2!4@$uBDI{h/:M,-M*;"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Haus.Garten.SwitchTreppe</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="|)UHos+ocyoX[oU(GhCp"> <field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="id=Zre!Zru,Xc]zE)GkP"> <value name="IF0"> <block type="logic_compare" id="1,7D~P.SX.1oj]=:02iF"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="Uy5VO#q.uQt~*L39,3">
<field name="VAR" id="uF4nf.fyz-tn|HE{El0">ein</field>
</block>
</value>
<value name="B">
<block type="get_value" id="h:HAg+hpe!4$UCU=#]Np">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Haus.Garten.SwitchTeich</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="[m~eT|zpZ=f02Xay:Gc*">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Haus.Garten.SwitchTeich</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="EUgxb?L2b]OTS{wiKP=">
<field name="VAR" id="uF4nf.fyz-tn|HE{_El0">ein</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden

