Interrupteur a pulsion RF 433 dans domoticz

Ajouter un interrupteur en detection auto dans domoticz et modifié le type en push on button

Crée une variable utilisateur :

Crée le script blocky

Script
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="domoticzcontrols_ifelseif" id="rYaf/cO{,wKTII%H?|5t" x="-199" y="7"><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="}E@P@^o`mV(a3`!ex5o3"><field name="Switch">1128</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="5MTt@}C6.,NK1#zHFp/_"><field name="Variable">26</field></block></value><value name="B"><block type="math_number" id="azY~2!FJ2cH6$wP|%3B}"><field name="NUM">1</field></block></value></block></value></block></value><statement name="DO0"><block type="logic_set" id="W|+ftI%8/0YYDxBz4jmJ"><value name="A"><block type="uservariablesGL" id="hCbI~~a-;niSs9*c[bv}"><field name="Variable">26</field></block></value><value name="B"><block type="math_number" id="RO^Nb[}0dg}`%u(h@kXA"><field name="NUM">0</field></block></value><next><block type="logic_set" id="zJ9ba7Oon2QiSq.Jlubi"><value name="A"><block type="switchvariablesAF" id="3X:r7pClfx/Mu3hrQnvP"><field name="Switch">856</field></block></value><value name="B"><block type="logic_states" id="fH%2}0Q}aX%(`LrUlx2X"><field name="State">Off</field></block></value><next><block type="writetolog" id="pBS[)-8q!RhnzvG.nd;^"><value name="writeToLog"><block type="text" id="Qd.PxHwPw@$16Nso%ZXg"><field name="TEXT">OFF_INTERRUPTEUR_CHEVET</field></block></value></block></next></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="SEaOqz+@7Q-QUqhy,81["><field name="Switch">1128</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="5[[O7PDFSp?=$D/w;|i."><field name="Variable">26</field></block></value><value name="B"><block type="math_number" id=";jDnUrL!6|j3J6/IG:?A"><field name="NUM">0</field></block></value></block></value></block></value><statement name="DO1"><block type="logic_set" id="I5p[K6fq_|FU[qoiQ9jQ"><value name="A"><block type="uservariablesGL" id="bJSxWO2DY[JYX_0N?iPH"><field name="Variable">26</field></block></value><value name="B"><block type="math_number" id="Sq`?:oViYR]6d1#kRV3{"><field name="NUM">1</field></block></value><next><block type="logic_setdelayed" id="mRub.0%B}JAJkeXp6?lo"><value name="A"><block type="switchvariablesAF" id="nyUuf8fYq5$@n4==]ZwZ"><field name="Switch">856</field></block></value><value name="B"><block type="logic_states" id="4rLKSCrOp[NU#Sx,PQ)a"><field name="State">On</field></block></value><value name="C"><block type="logic_timevalue" id="`0OLJ8Vh9Y/#lb:D%[A!"><field name="TEXT">00:01</field></block></value><next><block type="writetolog" id="-+eMYl)0?*;(^PwnL{1k"><value name="writeToLog"><block type="text" id="7ozJZ@$nc{B`9[|lBp5."><field name="TEXT">ON_INTERRUPTEUR_CHEVET</field></block></value></block></next></block></next></block></statement></block></xml>