Advertisement
nurChrisYT

WaMa3

Jan 18th, 2020
3,385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.44 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="control" id="z]7Pj2YXS1-d)pnchN,!">
  83. <mutation delay_input="false"></mutation>
  84. <field name="OID">javascript.0.EigeneDP.Sonstige.Energieüberwachung.Waschmaschine.Waschstart</field>
  85. <field name="WITH_DELAY">FALSE</field>
  86. <value name="VALUE">
  87. <block type="get_value" id="b$lgvB*z^u:a@_hX4hL]">
  88. <field name="ATTR">val</field>
  89. <field name="OID">sonoff.0.SP1_WaMa_4966_109.ENERGY_Total</field>
  90. </block>
  91. </value>
  92. <next>
  93. <block type="timeouts_setinterval" id="(?2yHN!soJ=}mLZ7l]lF">
  94. <field name="NAME">Dauerzaehler</field>
  95. <field name="INTERVAL">1</field>
  96. <field name="UNIT">min</field>
  97. <statement name="STATEMENT">
  98. <block type="math_change" id="w,FoLyTV8R1TP-!PMN(k">
  99. <field name="VAR" id="=?OmOeJXP(6k$Q8a4v1*" variabletype="">WaMa_Dauerzaehler</field>
  100. <value name="DELTA">
  101. <shadow type="math_number" id="H!-!N4kZhgP#5;zrxCTY">
  102. <field name="NUM">1</field>
  103. </shadow>
  104. <block type="math_number" id="AF2;r}gdm2RpvV`mn)fr">
  105. <field name="NUM">1</field>
  106. </block>
  107. </value>
  108. </block>
  109. </statement>
  110. </block>
  111. </next>
  112. </block>
  113. </next>
  114. </block>
  115. </statement>
  116. <value name="IF1">
  117. <block type="logic_operation" id="[:7QWv4Op8S6o@lG45(y" inline="false">
  118. <field name="OP">AND</field>
  119. <comment pinned="false" h="80" w="160">Falls Verbrauch unter 3 Watt fällt und der Modus ist Wahr dann beende den Waschmodus.</comment>
  120. <value name="A">
  121. <block type="logic_compare" id="igy_8vlVI|k$sL-O!_Ya">
  122. <field name="OP">EQ</field>
  123. <value name="A">
  124. <block type="on_source" id="oKi^o%$Qa%i0^MVE?s)Y">
  125. <field name="ATTR">state.val</field>
  126. </block>
  127. </value>
  128. <value name="B">
  129. <block type="math_number" id="*bx}yjZ_C7J2#/$NzLoS">
  130. <field name="NUM">0</field>
  131. </block>
  132. </value>
  133. </block>
  134. </value>
  135. <value name="B">
  136. <block type="logic_compare" id="}A,!m2TVXL.^LQWg%!e|">
  137. <field name="OP">EQ</field>
  138. <value name="A">
  139. <block type="variables_get" id="r/rnzWL?1!/.2!+pr@5(">
  140. <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">WaMa_EinAus</field>
  141. </block>
  142. </value>
  143. <value name="B">
  144. <block type="logic_boolean" id="S,c^%F*KOd(.(Q(BL!=g">
  145. <field name="BOOL">TRUE</field>
  146. </block>
  147. </value>
  148. </block>
  149. </value>
  150. </block>
  151. </value>
  152. <statement name="DO1">
  153. <block type="timeouts_clearinterval" id="4Usl2WULucSJQ,Ptrt9^">
  154. <field name="NAME">Dauerzaehler</field>
  155. <next>
  156. <block type="variables_set" id="vj!Vu=sDr5yt.:ZU#OfU">
  157. <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">WaMa_EinAus</field>
  158. <value name="VALUE">
  159. <block type="logic_boolean" id="5xCJ(QRB3mIo5.*f1Fsg">
  160. <field name="BOOL">FALSE</field>
  161. </block>
  162. </value>
  163. <next>
  164. <block type="control" id="{MMg6Za}8I|gw.4cE6oG">
  165. <mutation delay_input="false"></mutation>
  166. <field name="OID">javascript.0.EigeneDP.Sonstige.Energieüberwachung.Waschmaschine.Waschende</field>
  167. <field name="WITH_DELAY">FALSE</field>
  168. <value name="VALUE">
  169. <block type="get_value" id="}_}=j6pEBm+0afN/394(">
  170. <field name="ATTR">val</field>
  171. <field name="OID">sonoff.0.SP1_WaMa_4966_109.ENERGY_Total</field>
  172. </block>
  173. </value>
  174. <next>
  175. <block type="debug" id="~(eEE8/,iS{wG@j0X)TU">
  176. <field name="Severity">log</field>
  177. <value name="TEXT">
  178. <shadow type="text" id="3K0c5WSS9VmMq/XFB(e9">
  179. <field name="TEXT">test</field>
  180. </shadow>
  181. <block type="text_join" id="2xby$^zDuX^$?-Yp2~k,">
  182. <mutation items="2"></mutation>
  183. <value name="ADD0">
  184. <block type="text" id="L6trfC]%tV;Q1#[_3UQJ">
  185. <field name="TEXT">Status Waschmaschine Ein/Aus ist: </field>
  186. </block>
  187. </value>
  188. <value name="ADD1">
  189. <block type="variables_get" id="mN7^USWq(%,us)OL?!1#">
  190. <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">WaMa_EinAus</field>
  191. </block>
  192. </value>
  193. </block>
  194. </value>
  195. <next>
  196. <block type="timeouts_settimeout" id=",NjGW@Wtt+n7RKNkcxK!">
  197. <field name="NAME">timeout2</field>
  198. <field name="DELAY">5</field>
  199. <field name="UNIT">sec</field>
  200. <statement name="STATEMENT">
  201. <block type="telegram" id=":)Sqh|eio_J%+h7Q@6nJ">
  202. <field name="INSTANCE"></field>
  203. <field name="LOG"></field>
  204. <field name="SILENT">FALSE</field>
  205. <field name="PARSEMODE">default</field>
  206. <value name="MESSAGE">
  207. <shadow type="text" id="zaE.r=+WylppU_4Nmdx~">
  208. <field name="TEXT">Waschmaschine ist fertig</field>
  209. </shadow>
  210. <block type="text_join" id="3,~.TJZeugM.!B%S1^X}">
  211. <mutation items="9"></mutation>
  212. <value name="ADD0">
  213. <block type="text" id="|9?4%ic*sy2}Q088ry:q">
  214. <field name="TEXT">Die Waschmaschine ist Fertig.</field>
  215. </block>
  216. </value>
  217. <value name="ADD1">
  218. <block type="time_get" id="a?D^RPe+s+Si=*kkfgj[">
  219. <mutation format="true" language="false"></mutation>
  220. <field name="OPTION">custom</field>
  221. <field name="FORMAT">\n</field>
  222. </block>
  223. </value>
  224. <value name="ADD2">
  225. <block type="text" id="grfj-@D75~7#;4n|*Zja">
  226. <field name="TEXT">Dauer: </field>
  227. </block>
  228. </value>
  229. <value name="ADD3">
  230. <block type="variables_get" id="n.X3BE*TU_{qnfXV+E~:">
  231. <field name="VAR" id="=?OmOeJXP(6k$Q8a4v1*" variabletype="">WaMa_Dauerzaehler</field>
  232. </block>
  233. </value>
  234. <value name="ADD4">
  235. <block type="text" id="hB0LeD{cRvcWSjG+y.+=">
  236. <field name="TEXT"> Minuten.</field>
  237. </block>
  238. </value>
  239. <value name="ADD5">
  240. <block type="time_get" id="cA93H,ih=ovnjMRR4?Q6">
  241. <mutation format="true" language="false"></mutation>
  242. <field name="OPTION">custom</field>
  243. <field name="FORMAT">\n</field>
  244. </block>
  245. </value>
  246. <value name="ADD6">
  247. <block type="text" id="iq5Tj*K!:5+gf]#fZ42]">
  248. <field name="TEXT">Verbrauch: </field>
  249. </block>
  250. </value>
  251. <value name="ADD7">
  252. <block type="math_rndfixed" id=")6B|F41_epI9gP[THRW[">
  253. <field name="n">2</field>
  254. <value name="x">
  255. <shadow type="math_number" id="}[m8CJ[~.H(X2Ez)$MNC">
  256. <field name="NUM">3.1234</field>
  257. </shadow>
  258. <block type="math_arithmetic" id="vkHPDt[yds%_+|}F~JlI" inline="false">
  259. <field name="OP">MINUS</field>
  260. <value name="A">
  261. <shadow type="math_number" id=";x*EJIT-UHcl7Q0j{G#U">
  262. <field name="NUM">1</field>
  263. </shadow>
  264. <block type="get_value" id="v-h3Ax9U5D^A[-sA.*VR">
  265. <field name="ATTR">val</field>
  266. <field name="OID">javascript.0.EigeneDP.Sonstige.Energieüberwachung.Waschmaschine.Waschende</field>
  267. </block>
  268. </value>
  269. <value name="B">
  270. <shadow type="math_number" id=")KC,Lt~MMGdb=v/v*dsR">
  271. <field name="NUM">1</field>
  272. </shadow>
  273. <block type="get_value" id="Y8iAp,Pk9o!]nby,SpJ^">
  274. <field name="ATTR">val</field>
  275. <field name="OID">javascript.0.EigeneDP.Sonstige.Energieüberwachung.Waschmaschine.Waschstart</field>
  276. </block>
  277. </value>
  278. </block>
  279. </value>
  280. </block>
  281. </value>
  282. <value name="ADD8">
  283. <block type="text" id="Gq}sI5F*R]paEBl+;3+e">
  284. <field name="TEXT"> kWh.</field>
  285. </block>
  286. </value>
  287. </block>
  288. </value>
  289. </block>
  290. </statement>
  291. <next>
  292. <block type="timeouts_settimeout" id=":DTtJMZX*6T[m5$MS#FV">
  293. <field name="NAME">timeout3</field>
  294. <field name="DELAY">10</field>
  295. <field name="UNIT">sec</field>
  296. <statement name="STATEMENT">
  297. <block type="variables_set" id=",${esm~ZSiljnImc}dcx">
  298. <field name="VAR" id="=?OmOeJXP(6k$Q8a4v1*" variabletype="">WaMa_Dauerzaehler</field>
  299. <value name="VALUE">
  300. <block type="math_number" id=";!%m^7forEuu5xZJ{}fV">
  301. <field name="NUM">0</field>
  302. </block>
  303. </value>
  304. </block>
  305. </statement>
  306. </block>
  307. </next>
  308. </block>
  309. </next>
  310. </block>
  311. </next>
  312. </block>
  313. </next>
  314. </block>
  315. </next>
  316. </block>
  317. </statement>
  318. </block>
  319. </statement>
  320. </block>
  321. </next>
  322. </block>
  323. </next>
  324. </block>
  325. </xml>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement