Skip to content

Instantly share code, notes, and snippets.

@jwildeboer
Last active December 8, 2016 18:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwildeboer/2a3ea0505c5a268bacd428c80b41689c to your computer and use it in GitHub Desktop.
Save jwildeboer/2a3ea0505c5a268bacd428c80b41689c to your computer and use it in GitHub Desktop.
Flow to collect data and do some cosmetics for easy use
-------------------------------------------------------
[{"id":"da6359b0.b70c18","type":"inject","z":"b96f9c86.269df","name":"GetMaxStatus","topic":"","payload":"true","payloadType":"bool","repeat":"120","crontab":"","once":true,"x":120,"y":660,"wires":[["16dd8fcc.73ed4"]]},{"id":"dbd2c465.a601f8","type":"switch","z":"b96f9c86.269df","name":"MaxSwitch","property":"payload.rf_address","propertyType":"msg","rules":[{"t":"eq","v":"0c975a","vt":"str"},{"t":"eq","v":"0c9768","vt":"str"},{"t":"eq","v":"0c98bd","vt":"str"},{"t":"eq","v":"0c98c6","vt":"str"},{"t":"eq","v":"0ca84e","vt":"str"}],"checkall":"true","outputs":5,"x":110,"y":1020,"wires":[["375772aa.47842e","d030e6ae.5ebc68","6ed5536c.4198cc"],["989ccf5d.9275b","3fce1e5.18b1ae2","1daa2389.bb563c"],["172c3cd.16dd9c3","3d3c8b7a.85c824","8f9e6adb.389bd8"],["a0c89a54.b6cba8","4571c950.f02738","8e874b35.819328"],["3c78114d.c79cde","a1c4af3a.cd5a5","bb0f9d7e.78621"]]},{"id":"918d3397.bb1eb","type":"link out","z":"b96f9c86.269df","name":"GetMAXTempLivingroom","links":["9c2e09c5.9c6608","79053f9d.50bb8","35c9bdd7.7518d2"],"x":415,"y":720,"wires":[]},{"id":"6b7fc22e.7f6f3c","type":"link out","z":"b96f9c86.269df","name":"GetMAXTempKitchen","links":["60ba9b03.191f54","7f0cbff1.39fe2","f112c719.195b68"],"x":415,"y":800,"wires":[]},{"id":"43d5c28d.ab8e7c","type":"link out","z":"b96f9c86.269df","name":"GetMAXTempBathroom","links":["c2c0d70f.c9db48","59bac0d.eaad74","73448e90.adc0e"],"x":415,"y":840,"wires":[]},{"id":"b47d9158.680a9","type":"link out","z":"b96f9c86.269df","name":"GetMAXTempBedroom","links":["ebc87567.206278","5615aca6.1b18f4","60b20a6.92f0cf4"],"x":415,"y":880,"wires":[]},{"id":"375772aa.47842e","type":"template","z":"b96f9c86.269df","name":"MAXTemp","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.setpoint}}","x":320,"y":720,"wires":[["918d3397.bb1eb"]]},{"id":"172c3cd.16dd9c3","type":"template","z":"b96f9c86.269df","name":"MAXTemp","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.setpoint}}","x":320,"y":800,"wires":[["6b7fc22e.7f6f3c"]]},{"id":"a0c89a54.b6cba8","type":"template","z":"b96f9c86.269df","name":"MAXTemp","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.setpoint}}","x":320,"y":840,"wires":[["43d5c28d.ab8e7c"]]},{"id":"3c78114d.c79cde","type":"template","z":"b96f9c86.269df","name":"MAXTemp","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.setpoint}}","x":320,"y":880,"wires":[["b47d9158.680a9"]]},{"id":"d030e6ae.5ebc68","type":"template","z":"b96f9c86.269df","name":"MAXMode","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.mode}}","x":320,"y":940,"wires":[["9bb737e5.f5a4c8"]]},{"id":"3d3c8b7a.85c824","type":"template","z":"b96f9c86.269df","name":"MAXMode","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.mode}}","x":320,"y":1020,"wires":[["966eb6c4.43e7c8"]]},{"id":"4571c950.f02738","type":"template","z":"b96f9c86.269df","name":"MAXMode","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.mode}}","x":320,"y":1060,"wires":[["28505535.ba9f4a"]]},{"id":"a1c4af3a.cd5a5","type":"template","z":"b96f9c86.269df","name":"MAXMode","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.mode}}","x":320,"y":1100,"wires":[["62d5535d.a7569c"]]},{"id":"9bb737e5.f5a4c8","type":"link out","z":"b96f9c86.269df","name":"GetMAXModeLivingrroom","links":["c237854e.6baa18","a9c43a3d.f34138","8edfb4db.cfdbf8"],"x":415,"y":940,"wires":[]},{"id":"966eb6c4.43e7c8","type":"link out","z":"b96f9c86.269df","name":"GetMAXModeKitchen","links":["1971fab.f2c9e05","ce6fc621.daa748","bb7307f4.3a6ff8"],"x":415,"y":1020,"wires":[]},{"id":"28505535.ba9f4a","type":"link out","z":"b96f9c86.269df","name":"GetMAXModeBathroom","links":["b2f89f54.52d67","c1e0a543.e27d48","effefb81.85d228"],"x":415,"y":1060,"wires":[]},{"id":"62d5535d.a7569c","type":"link out","z":"b96f9c86.269df","name":"GetMAXModeBedroom","links":["c8a513a.ea0b7f","8567a4de.196318","c6a1ff2b.5aceb"],"x":415,"y":1100,"wires":[]},{"id":"6ed5536c.4198cc","type":"template","z":"b96f9c86.269df","name":"MAXValve","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.valve}}","x":320,"y":1160,"wires":[["ec87ada2.98362"]]},{"id":"989ccf5d.9275b","type":"template","z":"b96f9c86.269df","name":"MAXValve","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.valve}}","x":320,"y":1200,"wires":[[]]},{"id":"8f9e6adb.389bd8","type":"template","z":"b96f9c86.269df","name":"MAXValve","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.valve}}","x":320,"y":1240,"wires":[["8527be47.3ba53"]]},{"id":"bb0f9d7e.78621","type":"template","z":"b96f9c86.269df","name":"MAXValve","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.valve}}","x":320,"y":1320,"wires":[["eeb2268c.c5e8b8"]]},{"id":"8e874b35.819328","type":"template","z":"b96f9c86.269df","name":"MAXValve","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.valve}}","x":320,"y":1280,"wires":[["3d8a40c2.e12b"]]},{"id":"ec87ada2.98362","type":"link out","z":"b96f9c86.269df","name":"GetMAXValveLivingrroom","links":["eb078414.eff2a8","4c86e8b6.c64a88","f75456b5.523c78"],"x":415,"y":1160,"wires":[]},{"id":"8527be47.3ba53","type":"link out","z":"b96f9c86.269df","name":"GetMAXValveKitchen","links":["ef51c5ce.f6d788","193a8dab.12fa82"],"x":415,"y":1240,"wires":[]},{"id":"3d8a40c2.e12b","type":"link out","z":"b96f9c86.269df","name":"GetMAXValveBathroom","links":["1d5b61ff.82580e","6120b90f.a6e518"],"x":415,"y":1280,"wires":[]},{"id":"eeb2268c.c5e8b8","type":"link out","z":"b96f9c86.269df","name":"GetMAXValveBedroom","links":["c3d7ce1c.a3e11","8bd8080b.9233d8"],"x":415,"y":1320,"wires":[]},{"id":"16dd8fcc.73ed4","type":"maxcube out","z":"b96f9c86.269df","server":"3e2fbbb0.322774","x":100,"y":760,"wires":[["dbd2c465.a601f8","3dd93c8c.4c01b4"]]},{"id":"3fce1e5.18b1ae2","type":"template","z":"b96f9c86.269df","name":"MAXTemp","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.setpoint}}","x":320,"y":760,"wires":[[]]},{"id":"1daa2389.bb563c","type":"template","z":"b96f9c86.269df","name":"MAXMode","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.mode}}","x":320,"y":980,"wires":[[]]},{"id":"3e2fbbb0.322774","type":"maxcube-server","z":"","host":"192.168.1.250","port":"62910"}]
UI flow using node-red-dashboard for nice display
-------------------------------------------------
[{"id":"35c9bdd7.7518d2","type":"link in","z":"e83c1b1.41d1be8","name":"UIMAXLivingroom","links":["918d3397.bb1eb"],"x":135,"y":800,"wires":[["d8f194ec.abf608"]]},{"id":"f112c719.195b68","type":"link in","z":"e83c1b1.41d1be8","name":"UIMAXKitchen","links":["6b7fc22e.7f6f3c"],"x":135,"y":940,"wires":[["ede075ff.ab1dc8"]]},{"id":"73448e90.adc0e","type":"link in","z":"e83c1b1.41d1be8","name":"UIMAXBathroom","links":["43d5c28d.ab8e7c"],"x":135,"y":1080,"wires":[["b35dcece.9719c"]]},{"id":"60b20a6.92f0cf4","type":"link in","z":"e83c1b1.41d1be8","name":"UIMAXBedroom","links":["b47d9158.680a9"],"x":135,"y":1220,"wires":[["d79e73aa.cc655"]]},{"id":"e6c4cc97.84cad","type":"ui_text","z":"e83c1b1.41d1be8","group":"f19c2581.4d9268","order":1,"width":"2","height":"1","name":"Livingroom","label":"Livingroom","format":"{{msg.payload}}","layout":"col-center","x":410,"y":880,"wires":[]},{"id":"d12eb53.2a9cf48","type":"ui_text","z":"e83c1b1.41d1be8","group":"f19c2581.4d9268","order":2,"width":"2","height":"1","name":"Kitchen","label":"Kitchen","format":"{{msg.payload}}","layout":"col-center","x":420,"y":1020,"wires":[]},{"id":"7e1fa2c3.8cd82c","type":"ui_text","z":"e83c1b1.41d1be8","group":"f19c2581.4d9268","order":3,"width":"2","height":"1","name":"Bathroom","label":"Bathroom","format":"{{msg.payload}}","layout":"col-center","x":420,"y":1160,"wires":[]},{"id":"e801e90f.b49a48","type":"ui_text","z":"e83c1b1.41d1be8","group":"f19c2581.4d9268","order":4,"width":"2","height":"1","name":"Bedroom","label":"Bedroom","format":"{{msg.payload}}","layout":"col-center","x":420,"y":1300,"wires":[]},{"id":"d8f194ec.abf608","type":"ui_gauge","z":"e83c1b1.41d1be8","name":"TargetLivingroom","group":"f19c2581.4d9268","order":5,"width":"2","height":"1","gtype":"gage","title":"","label":"","format":"{{value}}","min":0,"max":"35","colors":["#00b500","#e6e600","#ca3838"],"x":390,"y":800,"wires":[]},{"id":"ede075ff.ab1dc8","type":"ui_gauge","z":"e83c1b1.41d1be8","name":"TargetKitchen","group":"f19c2581.4d9268","order":6,"width":"2","height":"1","gtype":"gage","title":"","label":"","format":"{{value}}","min":0,"max":"35","colors":["#00b500","#e6e600","#ca3838"],"x":400,"y":940,"wires":[]},{"id":"b35dcece.9719c","type":"ui_gauge","z":"e83c1b1.41d1be8","name":"TargetBathroom","group":"f19c2581.4d9268","order":7,"width":"2","height":"1","gtype":"gage","title":"","label":"","format":"{{value}}","min":0,"max":"35","colors":["#00b500","#e6e600","#ca3838"],"x":400,"y":1080,"wires":[]},{"id":"d79e73aa.cc655","type":"ui_gauge","z":"e83c1b1.41d1be8","name":"TargetBedroom","group":"f19c2581.4d9268","order":8,"width":"2","height":"1","gtype":"gage","title":"","label":"","format":"{{value}}","min":0,"max":"35","colors":["#00b500","#e6e600","#ca3838"],"x":400,"y":1220,"wires":[]},{"id":"8edfb4db.cfdbf8","type":"link in","z":"e83c1b1.41d1be8","name":"UIMAXModeLivingroom","links":["9bb737e5.f5a4c8"],"x":135,"y":880,"wires":[["e6c4cc97.84cad"]]},{"id":"bb7307f4.3a6ff8","type":"link in","z":"e83c1b1.41d1be8","name":"UIMAXBedroom","links":["966eb6c4.43e7c8"],"x":135,"y":1020,"wires":[["d12eb53.2a9cf48"]]},{"id":"effefb81.85d228","type":"link in","z":"e83c1b1.41d1be8","name":"UIMAXBedroom","links":["28505535.ba9f4a"],"x":135,"y":1160,"wires":[["7e1fa2c3.8cd82c"]]},{"id":"c6a1ff2b.5aceb","type":"link in","z":"e83c1b1.41d1be8","name":"UIMAXBedroom","links":["62d5535d.a7569c"],"x":135,"y":1300,"wires":[["e801e90f.b49a48"]]},{"id":"f75456b5.523c78","type":"link in","z":"e83c1b1.41d1be8","name":"UIMAXValveLivingroom","links":["ec87ada2.98362"],"x":135,"y":840,"wires":[["dccc68d2.62b448"]]},{"id":"dccc68d2.62b448","type":"ui_gauge","z":"e83c1b1.41d1be8","name":"ValveLivingroom","group":"f19c2581.4d9268","order":9,"width":"2","height":"1","gtype":"wave","title":"","label":"","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"x":400,"y":840,"wires":[]},{"id":"6120b90f.a6e518","type":"link in","z":"e83c1b1.41d1be8","name":"UIMAXValveLivingroom","links":["3d8a40c2.e12b"],"x":135,"y":1120,"wires":[["73642ea.a49c0d"]]},{"id":"73642ea.a49c0d","type":"ui_gauge","z":"e83c1b1.41d1be8","name":"ValveBathroom","group":"f19c2581.4d9268","order":11,"width":"2","height":"1","gtype":"wave","title":"","label":"","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"x":400,"y":1120,"wires":[]},{"id":"8bd8080b.9233d8","type":"link in","z":"e83c1b1.41d1be8","name":"UIMAXValveLivingroom","links":["eeb2268c.c5e8b8"],"x":135,"y":1260,"wires":[["7ae72fc9.eb40c"]]},{"id":"7ae72fc9.eb40c","type":"ui_gauge","z":"e83c1b1.41d1be8","name":"ValveBedroom","group":"f19c2581.4d9268","order":12,"width":"2","height":"1","gtype":"wave","title":"","label":"","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"x":400,"y":1260,"wires":[]},{"id":"193a8dab.12fa82","type":"link in","z":"e83c1b1.41d1be8","name":"UIMAXValveLivingroom","links":["8527be47.3ba53"],"x":135,"y":980,"wires":[["d9a1cf83.2c415"]]},{"id":"d9a1cf83.2c415","type":"ui_gauge","z":"e83c1b1.41d1be8","name":"ValveKitchen","group":"f19c2581.4d9268","order":10,"width":"2","height":"1","gtype":"wave","title":"","label":"","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"x":410,"y":980,"wires":[]},{"id":"f19c2581.4d9268","type":"ui_group","z":"","name":"HEATING","tab":"53b65ec5.8a96a","order":5,"disp":false,"width":"8"},{"id":"53b65ec5.8a96a","type":"ui_tab","z":"e83c1b1.41d1be8","name":"Dashboard","icon":"home","order":2}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment