Guest User

node red mpp5048

a guest
Mar 10th, 2020
228
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [
  2. {
  3. "id": "cbb1deb.a482f2",
  4. "type": "tab",
  5. "label": "change on bat status",
  6. "disabled": false,
  7. "info": ""
  8. },
  9. {
  10. "id": "39cc1b31.77d604",
  11. "type": "mqtt-broker",
  12. "z": "",
  13. "name": "raspberry broker",
  14. "broker": "localhost",
  15. "port": "1883",
  16. "clientid": "",
  17. "usetls": false,
  18. "compatmode": false,
  19. "keepalive": "60",
  20. "cleansession": true,
  21. "birthTopic": "",
  22. "birthQos": "0",
  23. "birthPayload": "",
  24. "closeTopic": "",
  25. "closeQos": "0",
  26. "closePayload": "",
  27. "willTopic": "",
  28. "willQos": "0",
  29. "willPayload": ""
  30. },
  31. {
  32. "id": "a342b5a0.ee7a78",
  33. "type": "mqtt in",
  34. "z": "cbb1deb.a482f2",
  35. "name": "",
  36. "topic": "solpiplog/pip/battv",
  37. "qos": "0",
  38. "datatype": "auto",
  39. "broker": "39cc1b31.77d604",
  40. "x": 110,
  41. "y": 100,
  42. "wires": [
  43. [
  44. "da612be7.9721e8",
  45. "ed388786.d2c388"
  46. ]
  47. ]
  48. },
  49. {
  50. "id": "8ee2dfbc.05e28",
  51. "type": "mqtt out",
  52. "z": "cbb1deb.a482f2",
  53. "name": "",
  54. "topic": "solpiplog/pip/status/set",
  55. "qos": "",
  56. "retain": "",
  57. "broker": "39cc1b31.77d604",
  58. "x": 640,
  59. "y": 240,
  60. "wires": []
  61. },
  62. {
  63. "id": "a73b2115.8f80d",
  64. "type": "change",
  65. "z": "cbb1deb.a482f2",
  66. "name": "change to eco <=48v",
  67. "rules": [
  68. {
  69. "t": "set",
  70. "p": "payload",
  71. "pt": "msg",
  72. "to": "eco",
  73. "tot": "str"
  74. }
  75. ],
  76. "action": "",
  77. "property": "",
  78. "from": "",
  79. "to": "",
  80. "reg": false,
  81. "x": 420,
  82. "y": 200,
  83. "wires": [
  84. [
  85. "8ee2dfbc.05e28"
  86. ]
  87. ]
  88. },
  89. {
  90. "id": "da612be7.9721e8",
  91. "type": "debug",
  92. "z": "cbb1deb.a482f2",
  93. "name": "",
  94. "active": true,
  95. "tosidebar": false,
  96. "console": false,
  97. "tostatus": true,
  98. "complete": "payload",
  99. "targetType": "msg",
  100. "x": 330,
  101. "y": 100,
  102. "wires": []
  103. },
  104. {
  105. "id": "d5b0aa09.baa0a8",
  106. "type": "change",
  107. "z": "cbb1deb.a482f2",
  108. "name": "change to automatic >=52",
  109. "rules": [
  110. {
  111. "t": "set",
  112. "p": "payload",
  113. "pt": "msg",
  114. "to": "aut",
  115. "tot": "str"
  116. }
  117. ],
  118. "action": "",
  119. "property": "",
  120. "from": "",
  121. "to": "",
  122. "reg": false,
  123. "x": 410,
  124. "y": 280,
  125. "wires": [
  126. [
  127. "8ee2dfbc.05e28"
  128. ]
  129. ]
  130. },
  131. {
  132. "id": "ed388786.d2c388",
  133. "type": "switch",
  134. "z": "cbb1deb.a482f2",
  135. "name": "choose bat value",
  136. "property": "payload",
  137. "propertyType": "msg",
  138. "rules": [
  139. {
  140. "t": "lte",
  141. "v": "48",
  142. "vt": "num"
  143. },
  144. {
  145. "t": "gte",
  146. "v": "52",
  147. "vt": "num"
  148. }
  149. ],
  150. "checkall": "true",
  151. "repair": false,
  152. "outputs": 2,
  153. "x": 150,
  154. "y": 220,
  155. "wires": [
  156. [
  157. "a73b2115.8f80d"
  158. ],
  159. [
  160. "d5b0aa09.baa0a8"
  161. ]
  162. ]
  163. }
  164. ]
RAW Paste Data