Advertisement
nurChrisYT

WaMa2

Jan 18th, 2020
1,895
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.01 KB | None | 0 0
  1. <xml xmlns="http://www.w3.org/1999/xhtml">
  2. <variables>
  3. <variable type="" id="=?OmOeJXP(6k$Q8a4v1*">WaMa_Dauerzaehler</variable>
  4. <variable type="" id="Hhe!Hg(xh7gHuy(6hLlx">WaMa_EinAus</variable>
  5. <variable type="undefined" id="Dauerzaehler">Dauerzaehler</variable>
  6. <variable type="undefined" id="timeout2">timeout2</variable>
  7. <variable type="undefined" id="timeout3">timeout3</variable>
  8. </variables>
  9. <block type="variables_set" id="VhvVE3UkVJB2fvjGzu*!" x="13" y="13">
  10. <field name="VAR" id="=?OmOeJXP(6k$Q8a4v1*" variabletype="">WaMa_Dauerzaehler</field>
  11. <value name="VALUE">
  12. <block type="math_number" id="g,Bx,*s}7,][vN=Z-Mt4">
  13. <field name="NUM">0</field>
  14. </block>
  15. </value>
  16. <next>
  17. <block type="variables_set" id="i@;~wXOo)(5+=$*9v:QF">
  18. <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">WaMa_EinAus</field>
  19. <value name="VALUE">
  20. <block type="logic_boolean" id="stD7DD67D[4(YSQ3dCvR">
  21. <field name="BOOL">FALSE</field>
  22. </block>
  23. </value>
  24. <next>
  25. <block type="on_ext" id="%l??Ns0%ZOhlZQJn)RIY">
  26. <mutation items="1"></mutation>
  27. <field name="CONDITION">ne</field>
  28. <field name="ACK_CONDITION"></field>
  29. <value name="OID0">
  30. <shadow type="field_oid" id="8p+iN2CjzC1M$2o|Xq=m">
  31. <field name="oid">sonoff.0.SP1_WaMa_4966_109.ENERGY_Power</field>
  32. </shadow>
  33. </value>
  34. <statement name="STATEMENT">
  35. <block type="controls_if" id="-4y,4m5H6`8[U,UjJH(0">
  36. <mutation elseif="1"></mutation>
  37. <value name="IF0">
  38. <block type="logic_operation" id="-^U__L=#GGG_LD~6o~hg" inline="false">
  39. <field name="OP">AND</field>
  40. <comment pinned="false" h="90" w="276">Falls Maschinengang erkannt (Wattzahl &gt;10) UND Modus ist auf falsch dann starte und schreibe den aktuellen verbrauch in DP</comment>
  41. <value name="A">
  42. <block type="logic_compare" id="-%Kg)H+S;{}Yyd@cqe=l">
  43. <field name="OP">GTE</field>
  44. <value name="A">
  45. <block type="on_source" id="QS5)==Ahwtfe.nNTl`R@">
  46. <field name="ATTR">state.val</field>
  47. </block>
  48. </value>
  49. <value name="B">
  50. <block type="math_number" id="OT1x**T)z3hCtGxhqDDI">
  51. <field name="NUM">10</field>
  52. </block>
  53. </value>
  54. </block>
  55. </value>
  56. <value name="B">
  57. <block type="logic_compare" id=",LW+*+gUB/lbO[yiNJdv">
  58. <field name="OP">EQ</field>
  59. <value name="A">
  60. <block type="variables_get" id="[$/1md}o9xogfLp*!}WA">
  61. <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">WaMa_EinAus</field>
  62. </block>
  63. </value>
  64. <value name="B">
  65. <block type="logic_boolean" id="V}KP*,b;J,.3q802Q0l^">
  66. <field name="BOOL">FALSE</field>
  67. </block>
  68. </value>
  69. </block>
  70. </value>
  71. </block>
  72. </value>
  73. <statement name="DO0">
  74. <block type="variables_set" id="HHIFm}6:*U#VVrIRv7e|">
  75. <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">WaMa_EinAus</field>
  76. <value name="VALUE">
  77. <block type="logic_boolean" id="%.`!o$LmcZOm0##5WWoJ">
  78. <field name="BOOL">TRUE</field>
  79. </block>
  80. </value>
  81. <next>
  82. <block type="timeouts_setinterval" id="(?2yHN!soJ=}mLZ7l]lF">
  83. <field name="NAME">Dauerzaehler</field>
  84. <field name="INTERVAL">1</field>
  85. <field name="UNIT">min</field>
  86. <statement name="STATEMENT">
  87. <block type="math_change" id="w,FoLyTV8R1TP-!PMN(k">
  88. <field name="VAR" id="=?OmOeJXP(6k$Q8a4v1*" variabletype="">WaMa_Dauerzaehler</field>
  89. <value name="DELTA">
  90. <shadow type="math_number" id="H!-!N4kZhgP#5;zrxCTY">
  91. <field name="NUM">1</field>
  92. </shadow>
  93. <block type="math_number" id="AF2;r}gdm2RpvV`mn)fr">
  94. <field name="NUM">1</field>
  95. </block>
  96. </value>
  97. </block>
  98. </statement>
  99. </block>
  100. </next>
  101. </block>
  102. </statement>
  103. <value name="IF1">
  104. <block type="logic_operation" id="[:7QWv4Op8S6o@lG45(y" inline="false">
  105. <field name="OP">AND</field>
  106. <comment pinned="false" h="80" w="160">Falls Verbrauch unter 3 Watt fällt und der Modus ist Wahr dann beende den Waschmodus.</comment>
  107. <value name="A">
  108. <block type="logic_compare" id="igy_8vlVI|k$sL-O!_Ya">
  109. <field name="OP">EQ</field>
  110. <value name="A">
  111. <block type="on_source" id="oKi^o%$Qa%i0^MVE?s)Y">
  112. <field name="ATTR">state.val</field>
  113. </block>
  114. </value>
  115. <value name="B">
  116. <block type="math_number" id="*bx}yjZ_C7J2#/$NzLoS">
  117. <field name="NUM">0</field>
  118. </block>
  119. </value>
  120. </block>
  121. </value>
  122. <value name="B">
  123. <block type="logic_compare" id="}A,!m2TVXL.^LQWg%!e|">
  124. <field name="OP">EQ</field>
  125. <value name="A">
  126. <block type="variables_get" id="r/rnzWL?1!/.2!+pr@5(">
  127. <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">WaMa_EinAus</field>
  128. </block>
  129. </value>
  130. <value name="B">
  131. <block type="logic_boolean" id="S,c^%F*KOd(.(Q(BL!=g">
  132. <field name="BOOL">TRUE</field>
  133. </block>
  134. </value>
  135. </block>
  136. </value>
  137. </block>
  138. </value>
  139. <statement name="DO1">
  140. <block type="timeouts_clearinterval" id="4Usl2WULucSJQ,Ptrt9^">
  141. <field name="NAME">Dauerzaehler</field>
  142. <next>
  143. <block type="variables_set" id="vj!Vu=sDr5yt.:ZU#OfU">
  144. <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">WaMa_EinAus</field>
  145. <value name="VALUE">
  146. <block type="logic_boolean" id="5xCJ(QRB3mIo5.*f1Fsg">
  147. <field name="BOOL">FALSE</field>
  148. </block>
  149. </value>
  150. <next>
  151. <block type="debug" id="~(eEE8/,iS{wG@j0X)TU">
  152. <field name="Severity">log</field>
  153. <value name="TEXT">
  154. <shadow type="text" id="3K0c5WSS9VmMq/XFB(e9">
  155. <field name="TEXT">test</field>
  156. </shadow>
  157. <block type="text_join" id="2xby$^zDuX^$?-Yp2~k,">
  158. <mutation items="2"></mutation>
  159. <value name="ADD0">
  160. <block type="text" id="L6trfC]%tV;Q1#[_3UQJ">
  161. <field name="TEXT">Status Waschmaschine Ein/Aus ist: </field>
  162. </block>
  163. </value>
  164. <value name="ADD1">
  165. <block type="variables_get" id="mN7^USWq(%,us)OL?!1#">
  166. <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">WaMa_EinAus</field>
  167. </block>
  168. </value>
  169. </block>
  170. </value>
  171. <next>
  172. <block type="timeouts_settimeout" id=",NjGW@Wtt+n7RKNkcxK!">
  173. <field name="NAME">timeout2</field>
  174. <field name="DELAY">5</field>
  175. <field name="UNIT">sec</field>
  176. <statement name="STATEMENT">
  177. <block type="telegram" id=":)Sqh|eio_J%+h7Q@6nJ">
  178. <field name="INSTANCE"></field>
  179. <field name="LOG"></field>
  180. <field name="SILENT">FALSE</field>
  181. <field name="PARSEMODE">default</field>
  182. <value name="MESSAGE">
  183. <shadow type="text" id="zaE.r=+WylppU_4Nmdx~">
  184. <field name="TEXT">Waschmaschine ist fertig</field>
  185. </shadow>
  186. <block type="text_join" id="3,~.TJZeugM.!B%S1^X}">
  187. <mutation items="5"></mutation>
  188. <value name="ADD0">
  189. <block type="text" id="|9?4%ic*sy2}Q088ry:q">
  190. <field name="TEXT">Wama2: Die Waschmaschine ist Fertig.</field>
  191. </block>
  192. </value>
  193. <value name="ADD1">
  194. <block type="time_get" id="a?D^RPe+s+Si=*kkfgj[">
  195. <mutation format="true" language="false"></mutation>
  196. <field name="OPTION">custom</field>
  197. <field name="FORMAT">\n</field>
  198. </block>
  199. </value>
  200. <value name="ADD2">
  201. <block type="text" id="grfj-@D75~7#;4n|*Zja">
  202. <field name="TEXT">Dauer: </field>
  203. </block>
  204. </value>
  205. <value name="ADD3">
  206. <block type="variables_get" id="n.X3BE*TU_{qnfXV+E~:">
  207. <field name="VAR" id="=?OmOeJXP(6k$Q8a4v1*" variabletype="">WaMa_Dauerzaehler</field>
  208. </block>
  209. </value>
  210. <value name="ADD4">
  211. <block type="text" id="hB0LeD{cRvcWSjG+y.+=">
  212. <field name="TEXT"> Minuten.</field>
  213. </block>
  214. </value>
  215. </block>
  216. </value>
  217. <value name="USERNAME">
  218. <block type="text" id="l]RV+0~qo^KV/:8|+|E9">
  219. <field name="TEXT">Chris</field>
  220. </block>
  221. </value>
  222. </block>
  223. </statement>
  224. <next>
  225. <block type="timeouts_settimeout" id=":DTtJMZX*6T[m5$MS#FV">
  226. <field name="NAME">timeout3</field>
  227. <field name="DELAY">10</field>
  228. <field name="UNIT">sec</field>
  229. <statement name="STATEMENT">
  230. <block type="variables_set" id=",${esm~ZSiljnImc}dcx">
  231. <field name="VAR" id="=?OmOeJXP(6k$Q8a4v1*" variabletype="">WaMa_Dauerzaehler</field>
  232. <value name="VALUE">
  233. <block type="math_number" id=";!%m^7forEuu5xZJ{}fV">
  234. <field name="NUM">0</field>
  235. </block>
  236. </value>
  237. </block>
  238. </statement>
  239. </block>
  240. </next>
  241. </block>
  242. </next>
  243. </block>
  244. </next>
  245. </block>
  246. </next>
  247. </block>
  248. </statement>
  249. </block>
  250. </statement>
  251. </block>
  252. </next>
  253. </block>
  254. </next>
  255. </block>
  256. </xml>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement