Intégration bouton poussoir dans domoticz
Création d'un interrupteur virtuel type on par interrupteur
Création blockly avec user variable
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="domoticzcontrols_ifelseif" id="rYaf/cO{,wKTII%H?|5t" x="-530" y="80"><mutation elseif="1"></mutation><value name="IF0"><block type="logic_operation" id="K%7Noy6ssyPc293C5@Ag"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="|S{.xh2M2.c-nUUy[Jtt"><field name="OP">EQ</field><value name="A"><block type="switchvariablesGL" id="a@b]~xzyh7=Mt{99TSN/"><field name="Switch">1138</field></block></value><value name="B"><block type="logic_states" id="YaxTiEzKe|%_t5s}dwCL"><field name="State">On</field></block></value></block></value><value name="B"><block type="logic_compare" id="b{e_mqOA!s*})z+1f=_V"><field name="OP">EQ</field><value name="A"><block type="uservariablesGL" id="7s^qJRK$}~Q@.eCuXPh="><field name="Variable">27</field></block></value><value name="B"><block type="logic_states" id="eNn72fTN|Qy$UeEt(tO^"><field name="State">Off</field></block></value></block></value></block></value><statement name="DO0"><block type="logic_setdelayed" id="vSVD!xc|4*klFI+U(uJt"><value name="A"><block type="switchvariablesGL" id="`^$3]#W!FSuxHdp]D3v^"><field name="Switch">661</field></block></value><value name="B"><block type="logic_states" id="CJOgY4@d~lbv1x]FcKX{"><field name="State">On</field></block></value><value name="C"><block type="math_number" id="KV7g!c75d|9;)X+!`^Zm"><field name="NUM">5</field></block></value><next><block type="logic_set" id="O1,s.$J=5,BnRjo(B#*x"><value name="A"><block type="uservariablesGL" id="7sJr$2lc3;|DjD50RYpo"><field name="Variable">27</field></block></value><value name="B"><block type="logic_states" id="Y~rYSwc4LN=3Xx4ky|,U"><field name="State">On</field></block></value></block></next></block></statement><value name="IF1"><block type="logic_operation" id="kfk={[lTzCQEjcB(5,g="><field name="OP">AND</field><value name="A"><block type="logic_compare" id="`96)oChBHVh1=4$BmbQV"><field name="OP">EQ</field><value name="A"><block type="switchvariablesGL" id="/}ovSTSLT9X#n#OD0w!@"><field name="Switch">1138</field></block></value><value name="B"><block type="logic_states" id="Wpp#u{5A5prrmRLqQa=a"><field name="State">On</field></block></value></block></value><value name="B"><block type="logic_compare" id="q0..9!H!T2B=MIb;T:Iw"><field name="OP">EQ</field><value name="A"><block type="uservariablesGL" id="wxbHhZw6GB}!CJj|~XJG"><field name="Variable">27</field></block></value><value name="B"><block type="logic_states" id="`rTILfIe5B3M?VZFJqpY"><field name="State">On</field></block></value></block></value></block></value><statement name="DO1"><block type="logic_set" id="3*;-(ZVlJ9mz{N|U)X(X"><value name="A"><block type="switchvariablesGL" id="NP43nUo5hGH^4$?/1w)L"><field name="Switch">661</field></block></value><value name="B"><block type="logic_states" id="FYo}H/{njU2XR=?O`ho)"><field name="State">Off</field></block></value><next><block type="logic_set" id="ROnAN]tsh6.+{8iI6Wee"><value name="A"><block type="uservariablesGL" id="*I/L1Ag^+=[10eFtca)_"><field name="Variable">27</field></block></value><value name="B"><block type="logic_states" id="J;^+{W4{(1RPWb37cuN-"><field name="State">Off</field></block></value></block></next></block></statement></block></xml>
Masquez l'interupteur virtuel