Advertisement
Guest User

BWM Script

a guest
Feb 2nd, 2020
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.31 KB | None | 0 0
  1. <xml xmlns="http://www.w3.org/1999/xhtml">
  2. <variables>
  3. <variable type="undefined" id="timeout">timeout</variable>
  4. </variables>
  5. <block type="on_ext" id="Mv!MT1rvco3XETzCuTGB" x="-787" y="-912">
  6. <mutation items="2"></mutation>
  7. <field name="CONDITION">ne</field>
  8. <field name="ACK_CONDITION"></field>
  9. <value name="OID0">
  10. <shadow type="field_oid" id="~NO]0hcHc./IMm+_GnLa">
  11. <field name="oid">sonoff.0.DVES_Treppenlichtsensor.POWER</field>
  12. </shadow>
  13. </value>
  14. <value name="OID1">
  15. <shadow type="field_oid" id="}y0Dw$Pr@zU0UdS17zq/">
  16. <field name="oid">sonoff.0.SONOFF_Treppenlich_C48C2D.POWER2</field>
  17. </shadow>
  18. </value>
  19. <statement name="STATEMENT">
  20. <block type="controls_if" id="qHht;}xWiBega3|mT1Zv">
  21. <mutation elseif="3"></mutation>
  22. <value name="IF0">
  23. <block type="logic_compare" id="#gOv!+{*d2Q%d,Fi?@r=">
  24. <field name="OP">EQ</field>
  25. <value name="A">
  26. <block type="get_value" id="=K=tDst$GQTmoo7C~I^$">
  27. <field name="ATTR">val</field>
  28. <field name="OID">sonoff.0.SONOFF_Treppenlich_C48C2D.POWER2</field>
  29. </block>
  30. </value>
  31. <value name="B">
  32. <block type="logic_boolean" id="ev]No3T7Od%19xO,{^!A">
  33. <field name="BOOL">TRUE</field>
  34. </block>
  35. </value>
  36. </block>
  37. </value>
  38. <statement name="DO0">
  39. <block type="control" id="N6US=*^t#l]Yus}CWLE#">
  40. <mutation delay_input="false"></mutation>
  41. <field name="OID">sonoff.0.SONOFF_Treppenlich_C48C2D.POWER</field>
  42. <field name="WITH_DELAY">FALSE</field>
  43. <value name="VALUE">
  44. <block type="logic_boolean" id="z*/1Y!9riEaPTzvVpuSb">
  45. <field name="BOOL">TRUE</field>
  46. </block>
  47. </value>
  48. <next>
  49. <block type="timeouts_cleartimeout" id="+*uHEl]oCNQHH4F0W0)x">
  50. <field name="NAME">timeout</field>
  51. <next>
  52. <block type="debug" id="^nsk*x!M,_(#z,W?oZQK">
  53. <field name="Severity">log</field>
  54. <value name="TEXT">
  55. <shadow type="text" id="P:qZ`8yHEt`8g)M433J7">
  56. <field name="TEXT">geschaltet</field>
  57. </shadow>
  58. <block type="text" id="zeP,B9%VL@mx*CZOG.Qk">
  59. <field name="TEXT">Taster gedrückt, licht daueran</field>
  60. </block>
  61. </value>
  62. </block>
  63. </next>
  64. </block>
  65. </next>
  66. </block>
  67. </statement>
  68. <value name="IF1">
  69. <block type="logic_operation" id="[.lNWTlVaR^MLgFJVFIG">
  70. <field name="OP">AND</field>
  71. <value name="A">
  72. <block type="logic_compare" id="PPx{Ll?C3.BYz8z0~,.O">
  73. <field name="OP">EQ</field>
  74. <value name="A">
  75. <block type="get_value" id="RO*#v~0lk8s4.frEN}*f">
  76. <field name="ATTR">val</field>
  77. <field name="OID">sonoff.0.DVES_Treppenlichtsensor.POWER</field>
  78. </block>
  79. </value>
  80. <value name="B">
  81. <block type="logic_boolean" id="2tdh1v@d/z/D6Zd0#Ny}">
  82. <field name="BOOL">TRUE</field>
  83. </block>
  84. </value>
  85. </block>
  86. </value>
  87. <value name="B">
  88. <block type="logic_compare" id="@WEWIGmx54/s*p.RX}9R">
  89. <field name="OP">EQ</field>
  90. <value name="A">
  91. <block type="get_value" id="ERGsA=E?DeaasSiTSsVB">
  92. <field name="ATTR">val</field>
  93. <field name="OID">sonoff.0.SONOFF_Treppenlich_C48C2D.POWER</field>
  94. </block>
  95. </value>
  96. <value name="B">
  97. <block type="logic_boolean" id="BhBbpdv),^6^XZ|^3Woj">
  98. <field name="BOOL">FALSE</field>
  99. </block>
  100. </value>
  101. </block>
  102. </value>
  103. </block>
  104. </value>
  105. <statement name="DO1">
  106. <block type="control" id="Gr7sa[#FoRVMp*n}Vs*w">
  107. <mutation delay_input="false"></mutation>
  108. <field name="OID">sonoff.0.SONOFF_Treppenlich_C48C2D.POWER</field>
  109. <field name="WITH_DELAY">FALSE</field>
  110. <value name="VALUE">
  111. <block type="logic_boolean" id="tM1D_I8FtZnZx#m*X[tT">
  112. <field name="BOOL">TRUE</field>
  113. </block>
  114. </value>
  115. <next>
  116. <block type="debug" id="w=9Azu8gW+TuV9YNYCFd">
  117. <field name="Severity">log</field>
  118. <value name="TEXT">
  119. <shadow type="text" id="P:qZ`8yHEt`8g)M433J7">
  120. <field name="TEXT">geschaltet</field>
  121. </shadow>
  122. <block type="text" id="U7|?`tPT){*s:UTMK4](">
  123. <field name="TEXT">Bewegung Erkannt -&gt; Treppenlicht AN</field>
  124. </block>
  125. </value>
  126. </block>
  127. </next>
  128. </block>
  129. </statement>
  130. <value name="IF2">
  131. <block type="logic_operation" id="i*v]sjdQ)Z.6+k3g|/!e">
  132. <field name="OP">AND</field>
  133. <value name="A">
  134. <block type="logic_compare" id="Q8!{^ZD=+MoVfML1O]pm">
  135. <field name="OP">EQ</field>
  136. <value name="A">
  137. <block type="get_value" id="Rk-51aLRjAi}#b)N@5*x">
  138. <field name="ATTR">val</field>
  139. <field name="OID">sonoff.0.DVES_Treppenlichtsensor.POWER</field>
  140. </block>
  141. </value>
  142. <value name="B">
  143. <block type="logic_boolean" id="MFG!,Mv=[xt]SuyJ)+K)">
  144. <field name="BOOL">TRUE</field>
  145. </block>
  146. </value>
  147. </block>
  148. </value>
  149. <value name="B">
  150. <block type="logic_compare" id="ESU]Nkj?#PANmu1^r`@y">
  151. <field name="OP">EQ</field>
  152. <value name="A">
  153. <block type="get_value" id="90n-FJ.Vb2g}jAUrZ^li">
  154. <field name="ATTR">val</field>
  155. <field name="OID">sonoff.0.SONOFF_Treppenlich_C48C2D.POWER</field>
  156. </block>
  157. </value>
  158. <value name="B">
  159. <block type="logic_boolean" id="q3cwU9kz%zKQF,BHw*Q`">
  160. <field name="BOOL">TRUE</field>
  161. </block>
  162. </value>
  163. </block>
  164. </value>
  165. </block>
  166. </value>
  167. <statement name="DO2">
  168. <block type="timeouts_cleartimeout" id="GbSiSCG-y{J+*)yr1-qm">
  169. <field name="NAME">timeout</field>
  170. <next>
  171. <block type="debug" id="uwi:gPIl}^XI+DR~Ej(U">
  172. <field name="Severity">log</field>
  173. <value name="TEXT">
  174. <shadow type="text" id="P:qZ`8yHEt`8g)M433J7">
  175. <field name="TEXT">geschaltet</field>
  176. </shadow>
  177. <block type="text" id="ik5V^;3feEBA;O~XM}fE">
  178. <field name="TEXT">Bewegung wiederholt erkannt -&gt; Timer angehalten</field>
  179. </block>
  180. </value>
  181. </block>
  182. </next>
  183. </block>
  184. </statement>
  185. <value name="IF3">
  186. <block type="logic_operation" id="x3vz-[H|fD-IQCWJR0T?">
  187. <field name="OP">AND</field>
  188. <value name="A">
  189. <block type="logic_compare" id="f`0vvn1a:n{ZRWKS+,IC">
  190. <field name="OP">EQ</field>
  191. <value name="A">
  192. <block type="get_value" id="[]Un=8gjQ^3QeNGDj?bq">
  193. <field name="ATTR">val</field>
  194. <field name="OID">sonoff.0.DVES_Treppenlichtsensor.POWER</field>
  195. </block>
  196. </value>
  197. <value name="B">
  198. <block type="logic_boolean" id="Ru;//M[#J^s9-]~?i{[o">
  199. <field name="BOOL">FALSE</field>
  200. </block>
  201. </value>
  202. </block>
  203. </value>
  204. <value name="B">
  205. <block type="logic_compare" id="]Km:JyA#]}OGsxFe6f=+">
  206. <field name="OP">EQ</field>
  207. <value name="A">
  208. <block type="get_value" id="U7Ol[JR-JN%{3dDUYMtU">
  209. <field name="ATTR">val</field>
  210. <field name="OID">sonoff.0.SONOFF_Treppenlich_C48C2D.POWER</field>
  211. </block>
  212. </value>
  213. <value name="B">
  214. <block type="logic_boolean" id="c5,|+2IndqRJHTY;*Wy-">
  215. <field name="BOOL">TRUE</field>
  216. </block>
  217. </value>
  218. </block>
  219. </value>
  220. </block>
  221. </value>
  222. <statement name="DO3">
  223. <block type="timeouts_settimeout" id="I0sUAS/_Kb%ipxBR!}0%">
  224. <field name="NAME">timeout</field>
  225. <field name="DELAY">16</field>
  226. <field name="UNIT">sec</field>
  227. <statement name="STATEMENT">
  228. <block type="control" id="uUG(C1wQ%IOnk@8ilY1g">
  229. <mutation delay_input="false"></mutation>
  230. <field name="OID">sonoff.0.SONOFF_Treppenlich_C48C2D.POWER</field>
  231. <field name="WITH_DELAY">FALSE</field>
  232. <value name="VALUE">
  233. <block type="logic_boolean" id="(#0`Y|YSc.|~+Ndn{ybq">
  234. <field name="BOOL">FALSE</field>
  235. </block>
  236. </value>
  237. <next>
  238. <block type="debug" id="__,]wCQv64}rr*5{!wru">
  239. <field name="Severity">log</field>
  240. <value name="TEXT">
  241. <shadow type="text" id="P:qZ`8yHEt`8g)M433J7">
  242. <field name="TEXT">geschaltet</field>
  243. </shadow>
  244. <block type="text" id="TFY~[XlDUnU)0G~ZDt5`">
  245. <field name="TEXT">Bewegung nicht mehr Vorhanden -&gt; Aus!</field>
  246. </block>
  247. </value>
  248. </block>
  249. </next>
  250. </block>
  251. </statement>
  252. <next>
  253. <block type="debug" id="D)dP^UBxesUWq[CDO~%3">
  254. <field name="Severity">log</field>
  255. <value name="TEXT">
  256. <shadow type="text" id="P:qZ`8yHEt`8g)M433J7">
  257. <field name="TEXT">geschaltet</field>
  258. </shadow>
  259. <block type="text" id=";?m|f6q@nq*D}6?1Y7Vk">
  260. <field name="TEXT">Bewegung nicht mehr Vorhanden -&gt; Aus in 15 Sekunden</field>
  261. </block>
  262. </value>
  263. </block>
  264. </next>
  265. </block>
  266. </statement>
  267. </block>
  268. </statement>
  269. </block>
  270. </xml>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement