Intellinet PDU Control
Node-RED flow + dashboard for Intellinet's Power Distribution Unit (Model Number 163682)
What's a PDU?
A PDU is basically a power strip where each outlet can be controlled via ethernet.
If you prefer ethernet over WiFi to control your power plugs, and you want lots of them, get yourself a PDU.
- You can currently buy this device for ~ 150 EUR in Germany here
- You can get C14 adapters to plug in your household devices here
Requirements
[{"id":"abc6b93f.319458","type":"tab","label":"intellinet pdu","disabled":false,"info":""},{"id":"792c4ab0.183c0c","type":"ui_tab","z":"","name":"PDU","icon":"dashboard","disabled":false,"hidden":false},{"id":"7e747d9c.445d44","type":"ui_group","z":"","name":"outlets","tab":"792c4ab0.183c0c","order":2,"disp":true,"width":"8","collapse":false},{"id":"ab36d662.16d29","type":"ui_base","theme":{"name":"theme-dark","lightTheme":{"default":"#0094CE","baseColor":"#0094CE","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":false,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#097479","baseFont":"Arial,Arial,Helvetica,sans-serif","edited":true,"reset":false},"customTheme":{"name":"Untitled Theme 1","default":"#4B7930","baseColor":"#4B7930","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"},"themeState":{"base-color":{"default":"#097479","value":"#097479","edited":false},"page-titlebar-backgroundColor":{"value":"#097479","edited":false},"page-backgroundColor":{"value":"#111111","edited":false},"page-sidebar-backgroundColor":{"value":"#000000","edited":false},"group-textColor":{"value":"#0eb8c0","edited":false},"group-borderColor":{"value":"#555555","edited":false},"group-backgroundColor":{"value":"#333333","edited":false},"widget-textColor":{"value":"#eeeeee","edited":false},"widget-backgroundColor":{"value":"#097479","edited":false},"widget-borderColor":{"value":"#333333","edited":false},"base-font":{"value":"Arial,Arial,Helvetica,sans-serif"}},"angularTheme":{"primary":"indigo","accents":"blue","warn":"red","background":"grey"}},"site":{"name":"Node-RED Dashboard","hideToolbar":"false","allowSwipe":"false","lockMenu":"false","allowTempTheme":"true","dateFormat":"DD/MM/YYYY","sizes":{"sx":64,"sy":32,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"d7a36050.646e2","type":"ui_group","z":"","name":"sensors","tab":"792c4ab0.183c0c","order":3,"disp":true,"width":"8","collapse":false},{"id":"de1cc19c.1c1cf","type":"ui_group","z":"","name":"status","tab":"792c4ab0.183c0c","order":1,"disp":false,"width":"8","collapse":false},{"id":"42a9abdc.2dd34c","type":"http request","z":"abc6b93f.319458","name":"","method":"GET","ret":"txt","paytoqs":false,"url":"http://{{{host}}}/status.xml","tls":"","persist":false,"proxy":"","authType":"","x":570,"y":360,"wires":[["d1d31f3f.2e75b8"]]},{"id":"a6139928.be9598","type":"change","z":"abc6b93f.319458","name":"","rules":[{"t":"set","p":"host","pt":"msg","to":"$globalContext('pdu_host')\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":360,"wires":[["42a9abdc.2dd34c"]]},{"id":"3604448f.be21c4","type":"inject","z":"abc6b93f.319458","name":"","topic":"","payload":"192.168.0.100","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":180,"y":120,"wires":[["25f41b8b.634174"]]},{"id":"25f41b8b.634174","type":"change","z":"abc6b93f.319458","name":"","rules":[{"t":"set","p":"pdu_host","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":120,"wires":[[]]},{"id":"3260502b.b97488","type":"inject","z":"abc6b93f.319458","name":"","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":true,"onceDelay":0.1,"x":170,"y":260,"wires":[["a6139928.be9598"]]},{"id":"d1d31f3f.2e75b8","type":"xml","z":"abc6b93f.319458","name":"xml to json","property":"payload","attr":"","chr":"","x":750,"y":360,"wires":[["884d1ea0.7f8f28"]]},{"id":"a8486978.c3969","type":"comment","z":"abc6b93f.319458","name":"set IP of the PDU","info":"","x":160,"y":80,"wires":[]},{"id":"f62d487f.f5e768","type":"comment","z":"abc6b93f.319458","name":"request PDU status","info":"","x":590,"y":320,"wires":[]},{"id":"884d1ea0.7f8f28","type":"change","z":"abc6b93f.319458","name":"extract response","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.response","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":950,"y":360,"wires":[["d15803c2.d7aea"]]},{"id":"d15803c2.d7aea","type":"split","z":"abc6b93f.319458","name":"split response","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"signal","x":1160,"y":360,"wires":[["9bfff8a3.23e78"]]},{"id":"9bfff8a3.23e78","type":"change","z":"abc6b93f.319458","name":"extract value","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload[0]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1350,"y":360,"wires":[["a184aea7.9472"]]},{"id":"acde9b72.29bbd8","type":"switch","z":"abc6b93f.319458","name":"","property":"signal","propertyType":"msg","rules":[{"t":"eq","v":"curBan","vt":"str"},{"t":"eq","v":"tempBan","vt":"str"},{"t":"eq","v":"humBan","vt":"str"},{"t":"eq","v":"statBan","vt":"str"},{"t":"regex","v":"outletStat.","vt":"str","case":false}],"checkall":"true","repair":false,"outputs":5,"x":210,"y":700,"wires":[["80353528.614f78"],["8a976d69.1e7868"],["95f94a5b.fbfde8"],["41a3bab9.0d449c"],["9b29cf50.d5d3d8"]]},{"id":"41a3bab9.0d449c","type":"ui_text","z":"abc6b93f.319458","group":"de1cc19c.1c1cf","order":2,"width":0,"height":0,"name":"","label":"status","format":"{{msg.payload}}","layout":"row-spread","x":450,"y":780,"wires":[]},{"id":"5cf6232f.7782f4","type":"comment","z":"abc6b93f.319458","name":"sensors","info":"","x":650,"y":480,"wires":[]},{"id":"80353528.614f78","type":"ui_chart","z":"abc6b93f.319458","name":"","group":"d7a36050.646e2","order":1,"width":"0","height":"0","label":"current","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"5","removeOlderPoints":"","removeOlderUnit":"60","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":660,"y":580,"wires":[[]]},{"id":"8a976d69.1e7868","type":"ui_chart","z":"abc6b93f.319458","name":"","group":"d7a36050.646e2","order":2,"width":"0","height":"0","label":"temperature","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":670,"y":620,"wires":[[]]},{"id":"95f94a5b.fbfde8","type":"ui_chart","z":"abc6b93f.319458","name":"","group":"d7a36050.646e2","order":3,"width":"0","height":"0","label":"humidity","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":660,"y":660,"wires":[[]]},{"id":"a1326928.911a88","type":"ui_template","z":"abc6b93f.319458","group":"de1cc19c.1c1cf","name":"fixed width","order":1,"width":0,"height":0,"format":"<style>\n.masonry-container {\n width: 600px;\n}\n</style>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"global","x":670,"y":520,"wires":[[]]},{"id":"210e66c5.025942","type":"http request","z":"abc6b93f.319458","name":"","method":"GET","ret":"txt","paytoqs":false,"url":"http://{{{host}}}/control_outlet.htm?outlet{{{outlet}}}=1&op={{{op}}}","tls":"","persist":false,"proxy":"","authType":"","x":1330,"y":1220,"wires":[["64b08077.51c338"]]},{"id":"2c0d34d0.65f474","type":"change","z":"abc6b93f.319458","name":"","rules":[{"t":"set","p":"op","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":1220,"wires":[["210e66c5.025942"]]},{"id":"6e35155b.498c64","type":"switch","z":"abc6b93f.319458","name":"","property":"signal","propertyType":"msg","rules":[{"t":"eq","v":"outletStat0","vt":"str"},{"t":"eq","v":"outletStat1","vt":"str"},{"t":"eq","v":"outletStat2","vt":"str"},{"t":"eq","v":"outletStat3","vt":"str"},{"t":"eq","v":"outletStat4","vt":"str"},{"t":"eq","v":"outletStat5","vt":"str"},{"t":"eq","v":"outletStat6","vt":"str"},{"t":"eq","v":"outletStat7","vt":"str"}],"checkall":"true","repair":false,"outputs":8,"x":710,"y":880,"wires":[["a537d4e9.bbe58"],["f1f3e3f8.fc4e68"],["b49378e3.031ad8"],["bf3d8a61.28054"],["993f1ada.27f9a8"],["2b24ac3e.8b14ac"],["fe4ebfe1.3e51c8"],["b0edb451.7dc048"]]},{"id":"9b29cf50.d5d3d8","type":"change","z":"abc6b93f.319458","name":"to number","rules":[{"t":"change","p":"payload","pt":"msg","from":"off","fromt":"str","to":"0","tot":"num"},{"t":"change","p":"payload","pt":"msg","from":"on","fromt":"str","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":880,"wires":[["6e35155b.498c64"]]},{"id":"f7ccc785.29cf5","type":"change","z":"abc6b93f.319458","name":"topic to outlet ","rules":[{"t":"set","p":"outlet","pt":"msg","to":"$number(topic)","tot":"jsonata"},{"t":"set","p":"topic","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1320,"y":860,"wires":[["2895d4d3.9caadc"]]},{"id":"a537d4e9.bbe58","type":"ui_switch","z":"abc6b93f.319458","name":"","label":"outlet 0","tooltip":"","group":"7e747d9c.445d44","order":1,"width":"2","height":"1","passthru":false,"decouple":"true","topic":"0","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":980,"y":680,"wires":[["f7ccc785.29cf5"]]},{"id":"f1f3e3f8.fc4e68","type":"ui_switch","z":"abc6b93f.319458","name":"","label":"outlet 1","tooltip":"","group":"7e747d9c.445d44","order":2,"width":"2","height":"1","passthru":false,"decouple":"true","topic":"1","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":980,"y":740,"wires":[["f7ccc785.29cf5"]]},{"id":"b49378e3.031ad8","type":"ui_switch","z":"abc6b93f.319458","name":"","label":"outlet 2","tooltip":"","group":"7e747d9c.445d44","order":3,"width":"2","height":"1","passthru":false,"decouple":"true","topic":"2","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":980,"y":800,"wires":[["f7ccc785.29cf5"]]},{"id":"bf3d8a61.28054","type":"ui_switch","z":"abc6b93f.319458","name":"","label":"outlet 3","tooltip":"","group":"7e747d9c.445d44","order":4,"width":"2","height":"1","passthru":false,"decouple":"true","topic":"3","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":980,"y":860,"wires":[["f7ccc785.29cf5"]]},{"id":"993f1ada.27f9a8","type":"ui_switch","z":"abc6b93f.319458","name":"","label":"outlet 4","tooltip":"","group":"7e747d9c.445d44","order":5,"width":"2","height":"1","passthru":false,"decouple":"true","topic":"4","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":980,"y":920,"wires":[["f7ccc785.29cf5"]]},{"id":"2b24ac3e.8b14ac","type":"ui_switch","z":"abc6b93f.319458","name":"","label":"outlet 5","tooltip":"","group":"7e747d9c.445d44","order":6,"width":"2","height":"1","passthru":false,"decouple":"true","topic":"5","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":980,"y":980,"wires":[["f7ccc785.29cf5"]]},{"id":"fe4ebfe1.3e51c8","type":"ui_switch","z":"abc6b93f.319458","name":"","label":"outlet 6","tooltip":"","group":"7e747d9c.445d44","order":7,"width":"2","height":"1","passthru":false,"decouple":"true","topic":"6","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":980,"y":1040,"wires":[["f7ccc785.29cf5"]]},{"id":"b0edb451.7dc048","type":"ui_switch","z":"abc6b93f.319458","name":"","label":"outlet 7","tooltip":"","group":"7e747d9c.445d44","order":8,"width":"2","height":"1","passthru":false,"decouple":"true","topic":"7","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":980,"y":1100,"wires":[["f7ccc785.29cf5"]]},{"id":"64b08077.51c338","type":"link out","z":"abc6b93f.319458","name":"outgoing3","links":["cdba35b4.984c3"],"x":1475,"y":1220,"wires":[]},{"id":"cdba35b4.984c3","type":"link in","z":"abc6b93f.319458","name":"incoming1","links":["64b08077.51c338"],"x":95,"y":360,"wires":[["a6139928.be9598"]]},{"id":"a52f5d83.9c4c3","type":"comment","z":"abc6b93f.319458","name":"status","info":"","x":450,"y":740,"wires":[]},{"id":"c153ff77.cef588","type":"comment","z":"abc6b93f.319458","name":"outlets","info":"","x":970,"y":640,"wires":[]},{"id":"69fd0045.30e168","type":"comment","z":"abc6b93f.319458","name":"activate through switches","info":"","x":190,"y":320,"wires":[]},{"id":"a184aea7.9472","type":"link out","z":"abc6b93f.319458","name":"outgoing1","links":["560126ec.5e80c8"],"x":1475,"y":360,"wires":[]},{"id":"560126ec.5e80c8","type":"link in","z":"abc6b93f.319458","name":"incoming2","links":["a184aea7.9472"],"x":95,"y":700,"wires":[["acde9b72.29bbd8"]]},{"id":"2895d4d3.9caadc","type":"link out","z":"abc6b93f.319458","name":"outgoing2","links":["4bd2e1fb.385a78"],"x":1475,"y":860,"wires":[]},{"id":"4bd2e1fb.385a78","type":"link in","z":"abc6b93f.319458","name":"incoming3","links":["2895d4d3.9caadc"],"x":115,"y":1220,"wires":[["4fb2864d.d4ef88"]]},{"id":"4fb2864d.d4ef88","type":"change","z":"abc6b93f.319458","name":"","rules":[{"t":"set","p":"host","pt":"msg","to":"$globalContext('pdu_host')\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":250,"y":1220,"wires":[["34b3e23.5e20e1e"]]},{"id":"34b3e23.5e20e1e","type":"range","z":"abc6b93f.319458","minin":"0","maxin":"1","minout":"1","maxout":"0","action":"scale","round":true,"property":"payload","name":"flip 0 and 1","x":790,"y":1220,"wires":[["2c0d34d0.65f474"]]},{"id":"7b202b7a.2b57ec","type":"comment","z":"abc6b93f.319458","name":"request new outlet state","info":"","x":210,"y":1180,"wires":[]},{"id":"65571129.2b9de","type":"comment","z":"abc6b93f.319458","name":"parse status response","info":"","x":960,"y":320,"wires":[]},{"id":"2e0ac48b.363924","type":"comment","z":"abc6b93f.319458","name":"activate continuously","info":"","x":180,"y":220,"wires":[]},{"id":"b5ded1e9.56c92","type":"inject","z":"abc6b93f.319458","name":"reset plots","topic":"","payload":"[]","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":160,"y":520,"wires":[["80353528.614f78","8a976d69.1e7868","95f94a5b.fbfde8"]]},{"id":"5e6b9db7.7beb0c","type":"comment","z":"abc6b93f.319458","name":"press to reset","info":"","x":150,"y":480,"wires":[]}]