NodeRED Lesson: eWeLink Device

eWeLink adalah platfom aplikasi yang menyokong pelbagai jenama peranti pintar termasuk sonoff. Terdapat pelbagai peranti pintar yang boleh disambungkan seperti eWeLink 63A Circuit Breaker, Sonoff Wall Switch dan lain-lain lagi.

Berikut adalah video demo eWeLink 63A Circuit Breaker nya.

Node-RED Flow

[{"id":"ca09fc55f3b1f529","type":"ewelink-devices","z":"21d4894ecb8cb44f","name":"","auth":"408a780e8d58afc1","x":410,"y":260,"wires":[["5b1053eb65b7ab2c"]]},{"id":"5b1053eb65b7ab2c","type":"function","z":"21d4894ecb8cb44f","name":"","func":"//voltage = msg.payload[0].params.voltage;\n//current = msg.payload[0].params.current;\nvoltage = {\n \"payload\":msg.payload[0].params.voltage\n};\ncurrent = {\n \"payload\":msg.payload[0].params.current\n};\npower = {\n \"payload\":msg.payload[0].params.power\n};\nreturn [voltage,current,power];","outputs":3,"noerr":0,"initialize":"","finalize":"","libs":[],"x":600,"y":260,"wires":[["6d4b59251f7e6b31"],["de235f21a0f30420"],["3e71e2c9f286327c"]]},{"id":"6d4b59251f7e6b31","type":"ui_gauge","z":"21d4894ecb8cb44f","name":"","group":"be292c268ce3a5ea","order":0,"width":0,"height":0,"gtype":"gage","title":"Voltage","label":"V","format":"{{value}}","min":0,"max":"300","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":760,"y":220,"wires":[]},{"id":"de235f21a0f30420","type":"ui_gauge","z":"21d4894ecb8cb44f","name":"","group":"a4e399c91ea1045a","order":1,"width":0,"height":0,"gtype":"gage","title":"Current","label":"A","format":"{{value}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":760,"y":260,"wires":[]},{"id":"3e71e2c9f286327c","type":"ui_gauge","z":"21d4894ecb8cb44f","name":"","group":"c07f49c0783c48b5","order":2,"width":0,"height":0,"gtype":"gage","title":"Power","label":"W","format":"{{value}}","min":0,"max":"1000","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":750,"y":300,"wires":[]},{"id":"bf54c3fa71e9dc0f","type":"inject","z":"21d4894ecb8cb44f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"1","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":210,"y":260,"wires":[["ca09fc55f3b1f529"]]},{"id":"408a780e8d58afc1","type":"ewelink-credentials"},{"id":"be292c268ce3a5ea","type":"ui_group","name":"Monitor1","tab":"943f273a.07ed38","order":1,"disp":false,"width":"6","collapse":false},{"id":"a4e399c91ea1045a","type":"ui_group","name":"Monitor2","tab":"943f273a.07ed38","order":2,"disp":false,"width":"6","collapse":false},{"id":"c07f49c0783c48b5","type":"ui_group","name":"Monitor3","tab":"943f273a.07ed38","order":3,"disp":false,"width":"6","collapse":false},{"id":"943f273a.07ed38","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.