DIYtechie

Simple mailbox flow

Apr 21st, 2024
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.89 KB | None | 0 0
  1. [
  2. {
  3. "id": "ad22b3ebed6f2fb2",
  4. "type": "tab",
  5. "label": "Simple mailbox flow",
  6. "disabled": false,
  7. "info": "",
  8. "env": []
  9. },
  10. {
  11. "id": "c1c01fc465fb809b",
  12. "type": "api-call-service",
  13. "z": "ad22b3ebed6f2fb2",
  14. "name": "mobile notification",
  15. "server": "",
  16. "version": 5,
  17. "debugenabled": true,
  18. "domain": "notify",
  19. "service": "mobile_app_gf_jr9gtqvhc3_iphone",
  20. "areaId": [],
  21. "deviceId": [],
  22. "entityId": [],
  23. "data": "{\"title\":\"New mail\",\"message\":\"You've got mail!\",\"data\":{\"url\":\"/lovelace-mobile/mail\"}}",
  24. "dataType": "json",
  25. "mergeContext": "",
  26. "mustacheAltTags": false,
  27. "outputProperties": [],
  28. "queue": "none",
  29. "output_location": "",
  30. "output_location_type": "none",
  31. "x": 570,
  32. "y": 120,
  33. "wires": [
  34. []
  35. ]
  36. },
  37. {
  38. "id": "8d6a3cc43f860c48",
  39. "type": "api-call-service",
  40. "z": "ad22b3ebed6f2fb2",
  41. "name": "Set mailstatus = true",
  42. "server": "",
  43. "version": 5,
  44. "debugenabled": false,
  45. "domain": "input_boolean",
  46. "service": "turn_on",
  47. "areaId": [],
  48. "deviceId": [],
  49. "entityId": [
  50. "input_boolean.post"
  51. ],
  52. "data": "",
  53. "dataType": "json",
  54. "mergeContext": "",
  55. "mustacheAltTags": true,
  56. "outputProperties": [],
  57. "queue": "none",
  58. "output_location": "payload",
  59. "output_location_type": "none",
  60. "x": 580,
  61. "y": 70,
  62. "wires": [
  63. []
  64. ]
  65. },
  66. {
  67. "id": "3be8d70432e2abc4",
  68. "type": "delay",
  69. "z": "ad22b3ebed6f2fb2",
  70. "name": "",
  71. "pauseType": "rate",
  72. "timeout": "1",
  73. "timeoutUnits": "seconds",
  74. "rate": "1",
  75. "nbRateUnits": "30",
  76. "rateUnits": "second",
  77. "randomFirst": "1",
  78. "randomLast": "5",
  79. "randomUnits": "seconds",
  80. "drop": true,
  81. "allowrate": false,
  82. "outputs": 1,
  83. "x": 350,
  84. "y": 90,
  85. "wires": [
  86. [
  87. "8d6a3cc43f860c48",
  88. "c1c01fc465fb809b"
  89. ]
  90. ]
  91. },
  92. {
  93. "id": "e752bfb61ad7af07",
  94. "type": "server-state-changed",
  95. "z": "ad22b3ebed6f2fb2",
  96. "name": "Mail slot sensor open",
  97. "server": "83669b94.30d108",
  98. "version": 5,
  99. "outputs": 2,
  100. "exposeAsEntityConfig": "",
  101. "entityId": "",
  102. "entityIdType": "exact",
  103. "outputInitially": false,
  104. "stateType": "str",
  105. "ifState": "on",
  106. "ifStateType": "str",
  107. "ifStateOperator": "is",
  108. "outputOnlyOnStateChange": true,
  109. "for": "0",
  110. "forType": "num",
  111. "forUnits": "minutes",
  112. "ignorePrevStateNull": true,
  113. "ignorePrevStateUnknown": true,
  114. "ignorePrevStateUnavailable": true,
  115. "ignoreCurrentStateUnknown": true,
  116. "ignoreCurrentStateUnavailable": true,
  117. "outputProperties": [
  118. {
  119. "property": "payload",
  120. "propertyType": "msg",
  121. "value": "",
  122. "valueType": "entityState"
  123. },
  124. {
  125. "property": "data",
  126. "propertyType": "msg",
  127. "value": "",
  128. "valueType": "eventData"
  129. },
  130. {
  131. "property": "topic",
  132. "propertyType": "msg",
  133. "value": "",
  134. "valueType": "triggerId"
  135. }
  136. ],
  137. "x": 140,
  138. "y": 90,
  139. "wires": [
  140. [
  141. "3be8d70432e2abc4"
  142. ],
  143. []
  144. ]
  145. },
  146. {
  147. "id": "8e59c2e3e3436a0f",
  148. "type": "server-state-changed",
  149. "z": "ad22b3ebed6f2fb2",
  150. "name": "Hatch sensor open",
  151. "server": "",
  152. "version": 5,
  153. "outputs": 2,
  154. "exposeAsEntityConfig": "",
  155. "entityIdType": "exact",
  156. "outputInitially": false,
  157. "stateType": "str",
  158. "ifState": "on",
  159. "ifStateType": "str",
  160. "ifStateOperator": "is",
  161. "outputOnlyOnStateChange": true,
  162. "for": "0",
  163. "forType": "num",
  164. "forUnits": "minutes",
  165. "ignorePrevStateNull": true,
  166. "ignorePrevStateUnknown": true,
  167. "ignorePrevStateUnavailable": true,
  168. "ignoreCurrentStateUnknown": true,
  169. "ignoreCurrentStateUnavailable": true,
  170. "outputProperties": [
  171. {
  172. "property": "payload",
  173. "propertyType": "msg",
  174. "value": "",
  175. "valueType": "entityState"
  176. },
  177. {
  178. "property": "data",
  179. "propertyType": "msg",
  180. "value": "",
  181. "valueType": "eventData"
  182. },
  183. {
  184. "property": "topic",
  185. "propertyType": "msg",
  186. "value": "",
  187. "valueType": "triggerId"
  188. }
  189. ],
  190. "x": 130,
  191. "y": 40,
  192. "wires": [
  193. [
  194. "c60edd4b71f8b828"
  195. ],
  196. []
  197. ]
  198. },
  199. {
  200. "id": "c60edd4b71f8b828",
  201. "type": "api-call-service",
  202. "z": "ad22b3ebed6f2fb2",
  203. "name": "Set mailstatus = false",
  204. "server": "",
  205. "version": 5,
  206. "debugenabled": false,
  207. "domain": "input_boolean",
  208. "service": "turn_off",
  209. "areaId": [],
  210. "deviceId": [],
  211. "entityId": [
  212. "input_boolean.post"
  213. ],
  214. "data": "",
  215. "dataType": "json",
  216. "mergeContext": "",
  217. "mustacheAltTags": true,
  218. "outputProperties": [],
  219. "queue": "none",
  220. "output_location": "payload",
  221. "output_location_type": "none",
  222. "x": 370,
  223. "y": 40,
  224. "wires": [
  225. []
  226. ]
  227. },
  228. {
  229. "id": "83669b94.30d108",
  230. "type": "server",
  231. "name": "Home Assistant local",
  232. "version": 5,
  233. "addon": true,
  234. "rejectUnauthorizedCerts": true,
  235. "ha_boolean": "y|yes|true|on|home|open",
  236. "connectionDelay": true,
  237. "cacheJson": false,
  238. "heartbeat": false,
  239. "heartbeatInterval": "30",
  240. "areaSelector": "friendlyName",
  241. "deviceSelector": "friendlyName",
  242. "entitySelector": "friendlyName",
  243. "statusSeparator": "at: ",
  244. "statusYear": "hidden",
  245. "statusMonth": "short",
  246. "statusDay": "numeric",
  247. "statusHourCycle": "h23",
  248. "statusTimeFormat": "h:m",
  249. "enableGlobalContextStore": true
  250. }
  251. ]
Advertisement
Add Comment
Please, Sign In to add comment