Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.74 KB | None | 0 0
  1. // Rob Lichtenberger
  2. // bassicrob@gmail.com
  3. // updated 03.17.19 21:20 ET
  4. //
  5. // Works at the moment for only a single Tilt
  6. //
  7. // TO DO:
  8. // Add Tilt Color in payload topic for MQTT
  9. // Add trigger for temp notification
  10. // Add trigger for stable SG notification
  11. // Add lovelace card in UI
  12. // Add logging into influxDB (or via Hassio)
  13. // Parse Beer Name to exclude number
  14. // Issue MQTT "on" and "off" cmd to initiate brewing status
  15. // Use "on/off" cmd for conditional lovelace card
  16. //
  17. // configuration.yaml for Homeassistant Sensors:
  18. // - platform: mqtt
  19. // name: "Beer Fermentation Temperature"
  20. // state_topic: "beer/Temp/"
  21. // unit_of_measurement: "°F"
  22. // - platform: mqtt
  23. // name: "Beer Specific Gravity"
  24. // state_topic: "beer/SG/"
  25. // unit_of_measurement: "SG" # allows for a chart in lovelace card, maybe?
  26. // - platform: mqtt
  27. // name: "Beer Name"
  28. // state_topic: "beer/name/"
  29. // - platform: mqtt
  30. // name: "Tilt Signal Strength"
  31. // state_topic: "beer/rssi/"
  32. // unit_of_measurement: "dBm"
  33. // - platform: mqtt
  34. // name: "Beer Last Reading"
  35. // state_topic: "beer/timeread/"
  36. //
  37. //
  38. [
  39. {
  40. "id": "aa8c849f.946628",
  41. "type": "tab",
  42. "label": "Flow 1",
  43. "disabled": false,
  44. "info": ""
  45. },
  46. {
  47. "id": "ff5da4f1.75beb8",
  48. "type": "link in",
  49. "z": "aa8c849f.946628",
  50. "name": "",
  51. "links": [
  52. "579d2c87.e45b54"
  53. ],
  54. "x": 360,
  55. "y": 360,
  56. "wires": [
  57. [
  58. "3469e0af.782fc"
  59. ]
  60. ]
  61. },
  62. {
  63. "id": "9921fc96.9697c",
  64. "type": "debug",
  65. "z": "aa8c849f.946628",
  66. "name": "",
  67. "active": true,
  68. "tosidebar": true,
  69. "console": false,
  70. "tostatus": false,
  71. "complete": "false",
  72. "x": 1170,
  73. "y": 240,
  74. "wires": []
  75. },
  76. {
  77. "id": "3469e0af.782fc",
  78. "type": "delay",
  79. "z": "aa8c849f.946628",
  80. "name": "",
  81. "pauseType": "rate",
  82. "timeout": "5",
  83. "timeoutUnits": "seconds",
  84. "rate": "1",
  85. "nbRateUnits": "1",
  86. "rateUnits": "minute",
  87. "randomFirst": "1",
  88. "randomLast": "5",
  89. "randomUnits": "seconds",
  90. "drop": true,
  91. "x": 490,
  92. "y": 360,
  93. "wires": [
  94. [
  95. "47c63e69.77bea"
  96. ]
  97. ]
  98. },
  99. {
  100. "id": "83a0384b.8e8ab8",
  101. "type": "mqtt out",
  102. "z": "aa8c849f.946628",
  103. "name": "",
  104. "topic": "beer/name/",
  105. "qos": "0",
  106. "retain": "false",
  107. "broker": "44631564.22e0ac",
  108. "x": 1150,
  109. "y": 280,
  110. "wires": []
  111. },
  112. {
  113. "id": "92a3f244.f0e98",
  114. "type": "inject",
  115. "z": "aa8c849f.946628",
  116. "name": "",
  117. "topic": "",
  118. "payload": "",
  119. "payloadType": "date",
  120. "repeat": "",
  121. "crontab": "",
  122. "once": false,
  123. "onceDelay": 0.1,
  124. "x": 400,
  125. "y": 460,
  126. "wires": [
  127. []
  128. ]
  129. },
  130. {
  131. "id": "47c63e69.77bea",
  132. "type": "split",
  133. "z": "aa8c849f.946628",
  134. "name": "",
  135. "splt": "\\n",
  136. "spltType": "str",
  137. "arraySplt": 1,
  138. "arraySpltType": "len",
  139. "stream": false,
  140. "addname": "topic",
  141. "x": 690,
  142. "y": 360,
  143. "wires": [
  144. [
  145. "1887d049.5eabe"
  146. ]
  147. ]
  148. },
  149. {
  150. "id": "1887d049.5eabe",
  151. "type": "switch",
  152. "z": "aa8c849f.946628",
  153. "name": "",
  154. "property": "topic",
  155. "propertyType": "msg",
  156. "rules": [
  157. {
  158. "t": "eq",
  159. "v": "Beer",
  160. "vt": "str"
  161. },
  162. {
  163. "t": "eq",
  164. "v": "formatteddate",
  165. "vt": "str"
  166. },
  167. {
  168. "t": "eq",
  169. "v": "SG",
  170. "vt": "str"
  171. },
  172. {
  173. "t": "eq",
  174. "v": "rssi",
  175. "vt": "str"
  176. },
  177. {
  178. "t": "eq",
  179. "v": "Temp",
  180. "vt": "str"
  181. }
  182. ],
  183. "checkall": "true",
  184. "repair": false,
  185. "outputs": 5,
  186. "x": 850,
  187. "y": 360,
  188. "wires": [
  189. [
  190. "9921fc96.9697c",
  191. "83a0384b.8e8ab8"
  192. ],
  193. [
  194. "9921fc96.9697c",
  195. "c5d02b30.8e4a78",
  196. "f36a011f.d7b9b"
  197. ],
  198. [
  199. "9921fc96.9697c",
  200. "751bc8db.f181c8"
  201. ],
  202. [
  203. "9921fc96.9697c",
  204. "11156dbb.bdd442"
  205. ],
  206. [
  207. "9921fc96.9697c",
  208. "b969b7ae.883f38"
  209. ]
  210. ]
  211. },
  212. {
  213. "id": "751bc8db.f181c8",
  214. "type": "mqtt out",
  215. "z": "aa8c849f.946628",
  216. "name": "",
  217. "topic": "beer/SG/",
  218. "qos": "0",
  219. "retain": "false",
  220. "broker": "44631564.22e0ac",
  221. "x": 1140,
  222. "y": 420,
  223. "wires": []
  224. },
  225. {
  226. "id": "b969b7ae.883f38",
  227. "type": "mqtt out",
  228. "z": "aa8c849f.946628",
  229. "name": "",
  230. "topic": "beer/Temp/",
  231. "qos": "0",
  232. "retain": "false",
  233. "broker": "44631564.22e0ac",
  234. "x": 1150,
  235. "y": 500,
  236. "wires": []
  237. },
  238. {
  239. "id": "11156dbb.bdd442",
  240. "type": "mqtt out",
  241. "z": "aa8c849f.946628",
  242. "name": "",
  243. "topic": "beer/rssi/",
  244. "qos": "0",
  245. "retain": "false",
  246. "broker": "44631564.22e0ac",
  247. "x": 1140,
  248. "y": 460,
  249. "wires": []
  250. },
  251. {
  252. "id": "c5d02b30.8e4a78",
  253. "type": "mqtt out",
  254. "z": "aa8c849f.946628",
  255. "name": "",
  256. "topic": "beer/timeread/",
  257. "qos": "0",
  258. "retain": "false",
  259. "broker": "44631564.22e0ac",
  260. "x": 1160,
  261. "y": 380,
  262. "wires": []
  263. },
  264. {
  265. "id": "f36a011f.d7b9b",
  266. "type": "trigger",
  267. "z": "aa8c849f.946628",
  268. "op1": "on",
  269. "op2": "off",
  270. "op1type": "str",
  271. "op2type": "str",
  272. "duration": "5",
  273. "extend": true,
  274. "units": "min",
  275. "reset": "",
  276. "bytopic": "all",
  277. "name": "",
  278. "x": 1150,
  279. "y": 340,
  280. "wires": [
  281. [
  282. "74b5bba0.c796d4"
  283. ]
  284. ]
  285. },
  286. {
  287. "id": "74b5bba0.c796d4",
  288. "type": "mqtt out",
  289. "z": "aa8c849f.946628",
  290. "name": "",
  291. "topic": "beer/status/",
  292. "qos": "0",
  293. "retain": "true",
  294. "broker": "44631564.22e0ac",
  295. "x": 1350,
  296. "y": 340,
  297. "wires": []
  298. },
  299. {
  300. "id": "e16157ce.31c808",
  301. "type": "comment",
  302. "z": "aa8c849f.946628",
  303. "name": "To Do",
  304. "info": "Add trigger for temp notification\nAdd trigger for stable SG notification\nAdd lovelace card in UI\nAdd logging into influxDB (or via Hassio)\n",
  305. "x": 870,
  306. "y": 160,
  307. "wires": []
  308. },
  309. {
  310. "id": "fd43597f.6ab718",
  311. "type": "comment",
  312. "z": "aa8c849f.946628",
  313. "name": "NODE LINK FROM INTERPOLATE",
  314. "info": "",
  315. "x": 420,
  316. "y": 300,
  317. "wires": []
  318. },
  319. {
  320. "id": "44631564.22e0ac",
  321. "type": "mqtt-broker",
  322. "z": "",
  323. "name": "HA Mqtt",
  324. "broker": "192.168.10.33",
  325. "port": "1883",
  326. "clientid": "tiltpi",
  327. "usetls": false,
  328. "compatmode": true,
  329. "keepalive": "60",
  330. "cleansession": true,
  331. "willTopic": "",
  332. "willQos": "0",
  333. "willPayload": "",
  334. "birthTopic": "",
  335. "birthQos": "0",
  336. "birthPayload": ""
  337. }
  338. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement