andyjacobs

Bathroom

Mar 20th, 2021
26
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [
  2. {
  3. "id": "fb65a176.4424",
  4. "type": "tab",
  5. "label": "Landing",
  6. "disabled": false,
  7. "info": ""
  8. },
  9. {
  10. "id": "2f3bfb45.32e1a4",
  11. "type": "server-state-changed",
  12. "z": "fb65a176.4424",
  13. "name": "Motion on",
  14. "server": "96ebf4f8.6d0e78",
  15. "version": 1,
  16. "exposeToHomeAssistant": false,
  17. "haConfig": [
  18. {
  19. "property": "name",
  20. "value": ""
  21. },
  22. {
  23. "property": "icon",
  24. "value": ""
  25. }
  26. ],
  27. "entityidfilter": "binary_sensor.landing_motion",
  28. "entityidfiltertype": "exact",
  29. "outputinitially": false,
  30. "state_type": "str",
  31. "haltifstate": "on",
  32. "halt_if_type": "str",
  33. "halt_if_compare": "is",
  34. "outputs": 2,
  35. "output_only_on_state_change": true,
  36. "for": 0,
  37. "forType": "num",
  38. "forUnits": "minutes",
  39. "ignorePrevStateNull": false,
  40. "ignorePrevStateUnknown": false,
  41. "ignorePrevStateUnavailable": false,
  42. "ignoreCurrentStateUnknown": false,
  43. "ignoreCurrentStateUnavailable": false,
  44. "x": 80,
  45. "y": 120,
  46. "wires": [
  47. [
  48. "f830b2f2.a218a",
  49. "6ec81d74.17b6d4"
  50. ],
  51. []
  52. ]
  53. },
  54. {
  55. "id": "f830b2f2.a218a",
  56. "type": "api-current-state",
  57. "z": "fb65a176.4424",
  58. "name": "Night mode test",
  59. "server": "96ebf4f8.6d0e78",
  60. "version": 1,
  61. "outputs": 2,
  62. "halt_if": "on",
  63. "halt_if_type": "str",
  64. "halt_if_compare": "is",
  65. "override_topic": false,
  66. "entity_id": "input_boolean.night_mode",
  67. "state_type": "str",
  68. "state_location": "payload",
  69. "override_payload": "msg",
  70. "entity_location": "data",
  71. "override_data": "msg",
  72. "blockInputOverrides": false,
  73. "x": 300,
  74. "y": 60,
  75. "wires": [
  76. [
  77. "252852a.52710ae"
  78. ],
  79. []
  80. ]
  81. },
  82. {
  83. "id": "6ec81d74.17b6d4",
  84. "type": "api-current-state",
  85. "z": "fb65a176.4424",
  86. "name": "Evening mode test",
  87. "server": "96ebf4f8.6d0e78",
  88. "version": 1,
  89. "outputs": 2,
  90. "halt_if": "on",
  91. "halt_if_type": "str",
  92. "halt_if_compare": "is",
  93. "override_topic": false,
  94. "entity_id": "input_boolean.evening_mode",
  95. "state_type": "str",
  96. "state_location": "payload",
  97. "override_payload": "msg",
  98. "entity_location": "data",
  99. "override_data": "msg",
  100. "blockInputOverrides": false,
  101. "x": 310,
  102. "y": 120,
  103. "wires": [
  104. [
  105. "8f1065c7.868738"
  106. ],
  107. []
  108. ]
  109. },
  110. {
  111. "id": "252852a.52710ae",
  112. "type": "api-call-service",
  113. "z": "fb65a176.4424",
  114. "name": "Landing light on",
  115. "server": "96ebf4f8.6d0e78",
  116. "version": 1,
  117. "debugenabled": false,
  118. "service_domain": "switch",
  119. "service": "turn_on",
  120. "entityId": "switch.landing_light",
  121. "data": "",
  122. "dataType": "json",
  123. "mergecontext": "",
  124. "output_location": "",
  125. "output_location_type": "none",
  126. "mustacheAltTags": false,
  127. "x": 520,
  128. "y": 60,
  129. "wires": [
  130. []
  131. ]
  132. },
  133. {
  134. "id": "8f1065c7.868738",
  135. "type": "api-call-service",
  136. "z": "fb65a176.4424",
  137. "name": "Landing light on",
  138. "server": "96ebf4f8.6d0e78",
  139. "version": 1,
  140. "debugenabled": false,
  141. "service_domain": "switch",
  142. "service": "turn_on",
  143. "entityId": "switch.landing_light",
  144. "data": "",
  145. "dataType": "json",
  146. "mergecontext": "",
  147. "output_location": "",
  148. "output_location_type": "none",
  149. "mustacheAltTags": false,
  150. "x": 520,
  151. "y": 120,
  152. "wires": [
  153. []
  154. ]
  155. },
  156. {
  157. "id": "72519bfe.b42984",
  158. "type": "server-state-changed",
  159. "z": "fb65a176.4424",
  160. "name": "Motion off",
  161. "server": "96ebf4f8.6d0e78",
  162. "version": 1,
  163. "exposeToHomeAssistant": false,
  164. "haConfig": [
  165. {
  166. "property": "name",
  167. "value": ""
  168. },
  169. {
  170. "property": "icon",
  171. "value": ""
  172. }
  173. ],
  174. "entityidfilter": "binary_sensor.landing_motion",
  175. "entityidfiltertype": "exact",
  176. "outputinitially": false,
  177. "state_type": "str",
  178. "haltifstate": "off",
  179. "halt_if_type": "str",
  180. "halt_if_compare": "is",
  181. "outputs": 2,
  182. "output_only_on_state_change": true,
  183. "for": "5",
  184. "forType": "num",
  185. "forUnits": "minutes",
  186. "ignorePrevStateNull": false,
  187. "ignorePrevStateUnknown": false,
  188. "ignorePrevStateUnavailable": false,
  189. "ignoreCurrentStateUnknown": false,
  190. "ignoreCurrentStateUnavailable": false,
  191. "x": 80,
  192. "y": 200,
  193. "wires": [
  194. [
  195. "8d9364e2.183558",
  196. "90f2c2de.cf914"
  197. ],
  198. []
  199. ]
  200. },
  201. {
  202. "id": "8d9364e2.183558",
  203. "type": "api-current-state",
  204. "z": "fb65a176.4424",
  205. "name": "Night mode test",
  206. "server": "96ebf4f8.6d0e78",
  207. "version": 1,
  208. "outputs": 2,
  209. "halt_if": "on",
  210. "halt_if_type": "str",
  211. "halt_if_compare": "is",
  212. "override_topic": false,
  213. "entity_id": "input_boolean.night_mode",
  214. "state_type": "str",
  215. "state_location": "payload",
  216. "override_payload": "msg",
  217. "entity_location": "data",
  218. "override_data": "msg",
  219. "blockInputOverrides": false,
  220. "x": 300,
  221. "y": 220,
  222. "wires": [
  223. [
  224. "2820b718.c11028"
  225. ],
  226. []
  227. ]
  228. },
  229. {
  230. "id": "90f2c2de.cf914",
  231. "type": "api-current-state",
  232. "z": "fb65a176.4424",
  233. "name": "Evening mode test",
  234. "server": "96ebf4f8.6d0e78",
  235. "version": 1,
  236. "outputs": 2,
  237. "halt_if": "on",
  238. "halt_if_type": "str",
  239. "halt_if_compare": "is",
  240. "override_topic": false,
  241. "entity_id": "input_boolean.evening_mode",
  242. "state_type": "str",
  243. "state_location": "payload",
  244. "override_payload": "msg",
  245. "entity_location": "data",
  246. "override_data": "msg",
  247. "blockInputOverrides": false,
  248. "x": 310,
  249. "y": 280,
  250. "wires": [
  251. [
  252. "3326bc5d.5b0324"
  253. ],
  254. []
  255. ]
  256. },
  257. {
  258. "id": "3326bc5d.5b0324",
  259. "type": "api-call-service",
  260. "z": "fb65a176.4424",
  261. "name": "Landing light off",
  262. "server": "96ebf4f8.6d0e78",
  263. "version": 1,
  264. "debugenabled": false,
  265. "service_domain": "switch",
  266. "service": "turn_off",
  267. "entityId": "switch.landing_light",
  268. "data": "",
  269. "dataType": "json",
  270. "mergecontext": "",
  271. "output_location": "",
  272. "output_location_type": "none",
  273. "mustacheAltTags": false,
  274. "x": 520,
  275. "y": 280,
  276. "wires": [
  277. []
  278. ]
  279. },
  280. {
  281. "id": "2820b718.c11028",
  282. "type": "api-call-service",
  283. "z": "fb65a176.4424",
  284. "name": "Landing light off",
  285. "server": "96ebf4f8.6d0e78",
  286. "version": 1,
  287. "debugenabled": false,
  288. "service_domain": "switch",
  289. "service": "turn_off",
  290. "entityId": "switch.landing_light",
  291. "data": "",
  292. "dataType": "json",
  293. "mergecontext": "",
  294. "output_location": "",
  295. "output_location_type": "none",
  296. "mustacheAltTags": false,
  297. "x": 520,
  298. "y": 220,
  299. "wires": [
  300. []
  301. ]
  302. },
  303. {
  304. "id": "96ebf4f8.6d0e78",
  305. "type": "server",
  306. "name": "Home Assistant",
  307. "addon": true
  308. }
  309. ]
RAW Paste Data