[email protected] Integration

These Flows use the exec node embedded in a few subflows to log into your [email protected] account, to get information about and to control your Miele device. For commands, status lists and an account to use the API check out https://www.miele.com/developer/swagger-ui/index.html#/ Also check the FAQ-tab.

It seams to me, like the API is still buggy. Some actions shown by "get action" are not supported by my device (yet) and some actions like START and STOP result in an error but are carried out anyways.

[{"id":"e23577f5.4a4eb8","type":"subflow","name":"put Action","info":"","category":"miele","in":[{"x":60,"y":100,"wires":[{"id":"60e52748.87a178"}]}],"out":[{"x":680,"y":160,"wires":[{"id":"1a7112a2.b37f1d","port":0}]}],"env":[{"name":"bearer","type":"str","value":""},{"name":"device","type":"str","value":""},{"name":"action","type":"str","value":""},{"name":"parameter","type":"str","value":""}],"color":"#DDAA99","status":{"x":680,"y":80,"wires":[{"id":"60e52748.87a178","port":0},{"id":"1a7112a2.b37f1d","port":1}]}},{"id":"e963ed39.6ef07","type":"exec","z":"e23577f5.4a4eb8","command":"","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"get devices","x":310,"y":140,"wires":[["2a72e8aa.aceec8"],[],[]]},{"id":"2a72e8aa.aceec8","type":"json","z":"e23577f5.4a4eb8","name":"","property":"payload","action":"","pretty":false,"x":450,"y":140,"wires":[["1a7112a2.b37f1d"]]},{"id":"60e52748.87a178","type":"function","z":"e23577f5.4a4eb8","name":"","func":"let bearer = env.get(\"bearer\");\nif (bearer === \"\" && msg.bearer ===\"\")  node.send({payload:\"bearer missing\"});\nif(msg.hasOwnProperty('bearer')) bearer=msg.bearer;\nlet action = env.get(\"action\");\nif (action === \"\" && msg.action ===\"\")  node.send({payload:\"action missing\"});\nif(msg.hasOwnProperty('action')) action=msg.action;\nlet device = env.get(\"device\");\nif (device === \"\" && msg.device ===\"\")  node.send({payload:\"device missing\"});\nif(msg.hasOwnProperty('device')) device=msg.device;\nlet parameter = env.get(\"parameter\");\nif (parameter === \"\" && msg.parameter ===\"\")  node.send({payload:\"parameter missing\"});\nif(msg.hasOwnProperty('parameter')) parameter=msg.parameter;\n\nvar msg2;\nmsg2={payload: \"curl -X PUT \\\"https:\\/\\/api.mcs3.miele.com\\/v1\\/devices\\/\"+device+\"\\/actions\\\" -H \\\"accept: *\\/*\\\" -H \\\"Authorization: Bearer \"+bearer+\"\\\" -H \\\"Content-Type: application\\/json\\\" -d \\\"{\\\\\\\"\"+action+\"\\\\\\\":\"+parameter+\"}\\\"\"};\nmsg1=null;\nreturn [[msg1],[msg2]];\n","outputs":2,"noerr":0,"x":150,"y":100,"wires":[[],["e963ed39.6ef07"]]},{"id":"1a7112a2.b37f1d","type":"function","z":"e23577f5.4a4eb8","name":"","func":"var msg1={topic:msg.topic, payload: msg.payload};\nvar msg2;\n//if(msg.payload.status.hasOwnProperty(\"value_raw\")) msg2={payload:{fill:\"green\",shape:\"dot\",text:\"OK\"}};\n\nreturn [[msg1],[msg2]];","outputs":2,"noerr":0,"x":570,"y":140,"wires":[[],[]]},{"id":"b4c5c5ea.b2a928","type":"subflow","name":"get Action","info":"","category":"miele","in":[{"x":160,"y":100,"wires":[{"id":"98e5b950.6a2c58"}]}],"out":[{"x":920,"y":160,"wires":[{"id":"3a80d692.13ff1a","port":0}]}],"env":[{"name":"bearer","type":"str","value":""},{"name":"lang","type":"str","value":""},{"name":"device","type":"str","value":""}],"color":"#DDAA99","status":{"x":840,"y":80,"wires":[{"id":"98e5b950.6a2c58","port":0},{"id":"3a80d692.13ff1a","port":1}]}},{"id":"da26411a.dd69c","type":"exec","z":"b4c5c5ea.b2a928","command":"","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"get devices","x":430,"y":140,"wires":[["eac26908.58f308"],[],[]]},{"id":"eac26908.58f308","type":"json","z":"b4c5c5ea.b2a928","name":"","property":"payload","action":"","pretty":false,"x":570,"y":140,"wires":[["3a80d692.13ff1a"]]},{"id":"98e5b950.6a2c58","type":"function","z":"b4c5c5ea.b2a928","name":"","func":"let bearer = env.get(\"bearer\");\nif (bearer === \"\" && msg.bearer ===\"\")  node.send({payload:\"bearer missing\"});\nif(msg.hasOwnProperty('bearer')) bearer=msg.bearer;\nlet device = env.get(\"device\");\nif (device === \"\" && msg.device ===\"\")  node.send({payload:\"device missing\"});\nif(msg.hasOwnProperty('device')) device=msg.device;\nvar msg2;\nmsg2={payload: \"curl -X GET \\\"https://api.mcs3.miele.com/v1/devices/\"+device+\"/actions\\\" -H \\\"accept: application/json; charset=utf-8\\\" -H \\\"Authorization: Bearer \" + bearer + \"\\\"\"};\nmsg1=null;\nreturn [[msg1],[msg2]];\n","outputs":2,"noerr":0,"x":270,"y":100,"wires":[[],["da26411a.dd69c"]]},{"id":"3a80d692.13ff1a","type":"function","z":"b4c5c5ea.b2a928","name":"","func":"var msg1={topic:msg.topic, payload: msg.payload};\nvar msg2;\nif(msg.payload.hasOwnProperty(\"powerOn\")) msg2={payload:{fill:\"green\",shape:\"dot\",text:\"OK\"}};\n\nreturn [[msg1],[msg2]];","outputs":2,"noerr":0,"x":690,"y":140,"wires":[[],[]]},{"id":"8755d135.de6bf","type":"subflow","name":"get device state","info":"","category":"miele","in":[{"x":100,"y":120,"wires":[{"id":"98292c27.d877"}]}],"out":[{"x":820,"y":160,"wires":[{"id":"1e7270f4.3abf8f","port":0}]}],"env":[],"color":"#DDAA99","status":{"x":700,"y":40,"wires":[{"id":"98292c27.d877","port":0},{"id":"1e7270f4.3abf8f","port":1}]}},{"id":"7466cfd7.a3fcd","type":"exec","z":"8755d135.de6bf","command":"","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"get devices","x":370,"y":160,"wires":[["fff7f619.892af8"],[],[]]},{"id":"fff7f619.892af8","type":"json","z":"8755d135.de6bf","name":"","property":"payload","action":"","pretty":false,"x":510,"y":160,"wires":[["1e7270f4.3abf8f"]]},{"id":"98292c27.d877","type":"function","z":"8755d135.de6bf","name":"","func":"let bearer = env.get(\"bearer\");\nif (bearer === \"\" && msg.bearer ===\"\")  node.send({payload:\"bearer missing\"});\nif(msg.hasOwnProperty('bearer')) bearer=msg.bearer;\nlet lang = env.get(\"lang\");\nif (lang === \"\" && msg.lang ===\"\")  node.send({payload:\"language missing\"});\nif(msg.hasOwnProperty('lang')) lang=msg.lang;\nlet device = env.get(\"device\");\nif (device === \"\" && msg.device ===\"\")  node.send({payload:\"device missing\"});\nif(msg.hasOwnProperty('device')) device=msg.device;\nvar msg2;\nmsg2={payload: \"curl -X GET \\\"https://api.mcs3.miele.com/v1/devices/\"+device+\"/state?language=\" + lang +\"\\\" -H \\\"accept: application/json; charset=utf-8\\\" -H \\\"Authorization: Bearer \" + bearer + \"\\\"\"};\nmsg1=null;\nreturn [[msg1],[msg2]];\n","outputs":2,"noerr":0,"x":210,"y":120,"wires":[[],["7466cfd7.a3fcd"]]},{"id":"1e7270f4.3abf8f","type":"function","z":"8755d135.de6bf","name":"","func":"var msg1={topic:msg.topic, payload: msg.payload};\nvar msg2;\nif(msg.payload.status.hasOwnProperty(\"value_raw\")) msg2={payload:{fill:\"green\",shape:\"dot\",text:\"OK\"}};\n\nreturn [[msg1],[msg2]];","outputs":2,"noerr":0,"x":630,"y":160,"wires":[[],[]]},{"id":"bcad6a16.fbc798","type":"subflow","name":"get device ident","info":"","category":"miele","in":[{"x":140,"y":80,"wires":[{"id":"81c0a717.e9f738"}]}],"out":[{"x":840,"y":80,"wires":[{"id":"b462fa37.689438","port":0}]}],"env":[{"name":"bearer","type":"str","value":""},{"name":"lang","type":"str","value":""},{"name":"device","type":"str","value":""}],"color":"#DDAA99","status":{"x":760,"y":40,"wires":[{"id":"81c0a717.e9f738","port":0},{"id":"b462fa37.689438","port":1}]}},{"id":"245908be.c28b58","type":"exec","z":"bcad6a16.fbc798","command":"","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"get devices","x":410,"y":120,"wires":[["2e2c716e.8292ee"],[],[]]},{"id":"2e2c716e.8292ee","type":"json","z":"bcad6a16.fbc798","name":"","property":"payload","action":"","pretty":false,"x":550,"y":120,"wires":[["b462fa37.689438"]]},{"id":"81c0a717.e9f738","type":"function","z":"bcad6a16.fbc798","name":"","func":"let bearer = env.get(\"bearer\");\nif (bearer === \"\" && msg.bearer ===\"\")  node.send({payload:\"bearer missing\"});\nif(msg.hasOwnProperty('bearer')) bearer=msg.bearer;\nlet lang = env.get(\"lang\");\nif (lang === \"\" && msg.lang ===\"\")  node.send({payload:\"language missing\"});\nif(msg.hasOwnProperty('lang')) lang=msg.lang;\nlet device = env.get(\"device\");\nif (device === \"\" && msg.device ===\"\")  node.send({payload:\"device missing\"});\nif(msg.hasOwnProperty('device')) device=msg.device;\nvar msg2;\nmsg2={payload: \"curl -X GET \\\"https://api.mcs3.miele.com/v1/devices/\"+device+\"/ident?language=\" + lang +\"\\\" -H \\\"accept: application/json; charset=utf-8\\\" -H \\\"Authorization: Bearer \" + bearer + \"\\\"\"};\nmsg1=null;\nreturn [[msg1],[msg2]];\n","outputs":2,"noerr":0,"x":250,"y":80,"wires":[[],["245908be.c28b58"]]},{"id":"b462fa37.689438","type":"function","z":"bcad6a16.fbc798","name":"","func":"var msg1={topic:msg.topic, payload: msg.payload};\nvar msg2;\nif(msg.payload.deviceIdentLabel.hasOwnProperty(\"fabNumber\")) msg2={payload:{fill:\"green\",shape:\"dot\",text:\"OK\"}};\n\nreturn [[msg1],[msg2]];","outputs":2,"noerr":0,"x":670,"y":120,"wires":[[],[]]},{"id":"390beeb8.8a5162","type":"subflow","name":"get device info","info":"","category":"miele","in":[{"x":260,"y":80,"wires":[{"id":"fdbbe7f7.00ba18"}]}],"out":[{"x":940,"y":100,"wires":[{"id":"70e93124.23da5","port":0}]}],"env":[{"name":"bearer","type":"str","value":""},{"name":"lang","type":"str","value":""},{"name":"device","type":"str","value":""}],"color":"#DDAA99","status":{"x":680,"y":40,"wires":[{"id":"fdbbe7f7.00ba18","port":0},{"id":"70e93124.23da5","port":1}]}},{"id":"e8cbb2ba.6bc16","type":"exec","z":"390beeb8.8a5162","command":"","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"get devices","x":530,"y":120,"wires":[["ee0f6d14.6f4c3"],[],[]]},{"id":"ee0f6d14.6f4c3","type":"json","z":"390beeb8.8a5162","name":"","property":"payload","action":"","pretty":false,"x":670,"y":120,"wires":[["70e93124.23da5"]]},{"id":"fdbbe7f7.00ba18","type":"function","z":"390beeb8.8a5162","name":"","func":"let bearer = env.get(\"bearer\");\nif (bearer === \"\" && msg.bearer ===\"\")  node.send({payload:\"bearer missing\"});\nif(msg.hasOwnProperty('bearer')) bearer=msg.bearer;\nlet lang = env.get(\"lang\");\nif (lang === \"\" && msg.lang ===\"\")  node.send({payload:\"language missing\"});\nif(msg.hasOwnProperty('lang')) lang=msg.lang;\nlet device = env.get(\"device\");\nif (device === \"\" && msg.device ===\"\")  node.send({payload:\"device missing\"});\nif(msg.hasOwnProperty('device')) device=msg.device;\nvar msg2;\nmsg2={payload: \"curl -X GET \\\"https://api.mcs3.miele.com/v1/devices/\"+device+\"?language=\" + lang +\"\\\" -H \\\"accept: application/json; charset=utf-8\\\" -H \\\"Authorization: Bearer \" + bearer + \"\\\"\"};\nmsg1=null;\nreturn [[msg1],[msg2]];\n","outputs":2,"noerr":0,"x":370,"y":80,"wires":[[],["e8cbb2ba.6bc16"]]},{"id":"70e93124.23da5","type":"function","z":"390beeb8.8a5162","name":"","func":"var msg1={topic:msg.topic, payload: msg.payload};\nvar msg2;\nif(msg.payload.ident.hasOwnProperty(\"deviceName\")) msg2={payload:{fill:\"green\",shape:\"dot\",text:\"OK\"}};\n\nreturn [[msg1],[msg2]];","outputs":2,"noerr":0,"x":790,"y":120,"wires":[[],[]]},{"id":"d79e6968.80ffa8","type":"subflow","name":"get devices","info":"","category":"miele","in":[{"x":50,"y":30,"wires":[{"id":"9c6730e2.d8dcd"}]}],"out":[{"x":680,"y":140,"wires":[{"id":"3c9ff92.07e6c06","port":0}]}],"env":[{"name":"bearer","type":"str","value":""},{"name":"lang","type":"str","value":""}],"color":"#DDAA99","status":{"x":700,"y":20,"wires":[{"id":"9c6730e2.d8dcd","port":0}]}},{"id":"1cd22b3c.108b05","type":"exec","z":"d79e6968.80ffa8","command":"","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"get devices","x":430,"y":140,"wires":[["3c9ff92.07e6c06"],[],[]]},{"id":"3c9ff92.07e6c06","type":"json","z":"d79e6968.80ffa8","name":"","property":"payload","action":"","pretty":false,"x":590,"y":140,"wires":[[]]},{"id":"9c6730e2.d8dcd","type":"function","z":"d79e6968.80ffa8","name":"","func":"let bearer = env.get(\"bearer\");\nif (bearer === \"\" && msg.bearer ===\"\")  node.send({payload:\"bearer missing\"});\nif(msg.hasOwnProperty('bearer')) bearer=msg.bearer;\nlet lang = env.get(\"lang\");\nif (lang === \"\" && msg.lang ===\"\")  node.send({payload:\"language missing\"});\nif(msg.hasOwnProperty('lang')) lang=msg.lang;\nvar msg2;\nmsg2={payload: \"curl -X GET \\\"https://api.mcs3.miele.com/v1/devices/?language=\" + lang +\"\\\" -H \\\"accept: application/json; charset=utf-8\\\" -H \\\"Authorization: Bearer \" + bearer + \"\\\"\"};\nmsg1=null;\nreturn [[msg1],[msg2]];\n","outputs":2,"noerr":0,"x":270,"y":100,"wires":[[],["1cd22b3c.108b05"]]},{"id":"62e1dc3f.85c464","type":"subflow","name":"get Bearer","info":"This node uses your client_id, client_secret, username and password to get an autorization token, a so called Bearer (output 1) and a refresh token (output 2).\nAll parameters can be set using the incoming message.\nmsg.client_id, msg.client_secret, msg.[variable_name]...\ncoun_lang requires a combination of language and coubtry, for germany it's DE-de.","category":"miele","in":[{"x":60,"y":80,"wires":[{"id":"13429ed.ffa4261"}]}],"out":[{"x":720,"y":40,"wires":[{"id":"b9e13524.d952a8","port":0}]},{"x":720,"y":100,"wires":[{"id":"b9e13524.d952a8","port":1}]}],"env":[{"name":"client_id","type":"str","value":""},{"name":"client_secret","type":"str","value":""},{"name":"username","type":"str","value":""},{"name":"password","type":"str","value":""},{"name":"coun_lang","type":"str","value":""}],"color":"#DDAA99","outputLabels":["Authorization Token","Refresh Token"],"status":{"x":720,"y":160,"wires":[{"id":"b9e13524.d952a8","port":2},{"id":"13429ed.ffa4261","port":0}]}},{"id":"da81ee12.d21b6","type":"exec","z":"62e1dc3f.85c464","command":"curl","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"get Bearer","x":290,"y":40,"wires":[["eb52f514.05e9d8"],[],[]]},{"id":"eb52f514.05e9d8","type":"json","z":"62e1dc3f.85c464","name":"","property":"payload","action":"","pretty":false,"x":440,"y":40,"wires":[["b9e13524.d952a8"]]},{"id":"b9e13524.d952a8","type":"function","z":"62e1dc3f.85c464","name":"","func":"var msg1={topic:\"access_token\", payload: msg.payload.access_token};\nvar msg2={topic:\"refresh_token\", payload: msg.payload.refresh_token};\nvar msg3=null;\nif(msg.payload.hasOwnProperty('access_token') && msg.payload.hasOwnProperty('refresh_token')) msg3={payload:{fill:\"green\",shape:\"dot\",text:\"OK\"}};\n\nreturn [[msg1],[msg2],[msg3]];","outputs":3,"noerr":0,"x":570,"y":40,"wires":[[],[],[]]},{"id":"13429ed.ffa4261","type":"function","z":"62e1dc3f.85c464","name":"","func":"let client_id = env.get(\"client_id\");\nif (client_id === \"\") node.send({payload:\"Client_id fehlt\"});\nlet client_secret = env.get(\"client_secret\");\nif (client_secret === \"\") node.send({payload:\"Client_secret fehlt\"});\nlet username = env.get(\"username\");\nif (username === \"\") node.send({payload:\"Username fehlt\"});\nlet password = env.get(\"password\");\nif (password === \"\") node.send({payload:\"Password fehlt\"});\nlet coun_lang = env.get(\"coun_lang\");\nif (coun_lang === \"\") node.send({payload:\"Country-Language fehlt\"});\nvar msg2;\nmsg2={payload:\" -d \\\"grant_type=password\\\" -d \\\"client_id=\"+client_id+\n            \"\\\" -d \\\"client_secret=\"+client_secret+\"\\\" -d \\\"username=\"+username+\n            \"\\\" -d \\\"password=\"+password+\"\\\" -d \\\"vg=\"+coun_lang+\n            \"\\\" https://api.mcs3.miele.com/thirdparty/token/\"};\nmsg1=null;\nreturn [[msg1],[msg2]];","outputs":2,"noerr":0,"x":150,"y":80,"wires":[[],["da81ee12.d21b6"]]},{"id":"8cc73ce4.b2345","type":"inject","z":"d0f6da93.5603c8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":220,"y":160,"wires":[["6076bc79.2e71a4"]]},{"id":"6076bc79.2e71a4","type":"subflow:62e1dc3f.85c464","z":"d0f6da93.5603c8","name":"","env":[],"x":380,"y":160,"wires":[["32015fbe.2f516"],[]]},{"id":"32015fbe.2f516","type":"function","z":"d0f6da93.5603c8","name":"set var","func":"global.set(\"mielebearer\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":530,"y":160,"wires":[[]]},{"id":"2b0c40f3.cc07c","type":"subflow:d79e6968.80ffa8","z":"d0f6da93.5603c8","name":"","env":[],"x":490,"y":220,"wires":[["ac0d4f3c.3f422"]],"info":"This node uses your autorization token, or Bearer your desired language (de and en are supported) to give you information about all of your devices as describes in https://www.miele.com/developer/swagger-ui/index.html#/.\nAll parameters can be set using the incoming message.\nmsg.bearer, msg.lang, basically  it's msg.[variable_name]..."},{"id":"3cffc84c.a8b748","type":"inject","z":"d0f6da93.5603c8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":220,"y":220,"wires":[["d073836.dc6fb8"]]},{"id":"d073836.dc6fb8","type":"function","z":"d0f6da93.5603c8","name":"set var","func":"msg.lang=\"de\";\nmsg.bearer=global.get(\"mielebearer\");\nreturn msg;","outputs":1,"noerr":0,"x":350,"y":220,"wires":[["2b0c40f3.cc07c"]]},{"id":"ac0d4f3c.3f422","type":"debug","z":"d0f6da93.5603c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":630,"y":220,"wires":[]},{"id":"e0817a83.3638c8","type":"inject","z":"d0f6da93.5603c8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":220,"y":280,"wires":[["91b577ba.e11378"]]},{"id":"91b577ba.e11378","type":"function","z":"d0f6da93.5603c8","name":"set var","func":"msg.lang=\"de\";\nmsg.bearer=global.get(\"mielebearer\");\n//msg.device=\"XXXXXXXXXXXX\";\nreturn msg;","outputs":1,"noerr":0,"x":350,"y":280,"wires":[["679210e5.bb4a1"]]},{"id":"84b603eb.7fb6d","type":"debug","z":"d0f6da93.5603c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":650,"y":280,"wires":[]},{"id":"679210e5.bb4a1","type":"subflow:390beeb8.8a5162","z":"d0f6da93.5603c8","name":"","env":[],"x":500,"y":280,"wires":[["84b603eb.7fb6d"]],"info":"This node uses your autorization token, or Bearer your desired language (de and en are supported) to give you information about one specific devices as describes in https://www.miele.com/developer/swagger-ui/index.html#/.\nAll parameters can be set using the incoming message.\nmsg.bearer, msg.lang, basically  it's msg.[variable_name]..."},{"id":"2d89999e.2e6c96","type":"inject","z":"d0f6da93.5603c8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":220,"y":340,"wires":[["b331d5f2.a1c138"]]},{"id":"b331d5f2.a1c138","type":"function","z":"d0f6da93.5603c8","name":"set var","func":"msg.lang=\"de\";\nmsg.bearer=global.get(\"mielebearer\");\n//msg.device=\"XXXXXXXXXXXX\";\nreturn msg;","outputs":1,"noerr":0,"x":350,"y":340,"wires":[["69058e24.4db0e"]]},{"id":"fc3b7cc5.0ac43","type":"debug","z":"d0f6da93.5603c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":650,"y":340,"wires":[]},{"id":"4d8b4405.b609cc","type":"comment","z":"d0f6da93.5603c8","name":"Returns all information about appliances linked to an user account.","info":"","x":1020,"y":220,"wires":[]},{"id":"37d27f0d.8c6b8","type":"comment","z":"d0f6da93.5603c8","name":"Returns all information about a single appliance linked to an user account","info":"","x":1040,"y":280,"wires":[]},{"id":"4f0c966b.5c13e8","type":"comment","z":"d0f6da93.5603c8","name":"Returns your access token / Bearer","info":"","x":920,"y":160,"wires":[]},{"id":"69058e24.4db0e","type":"subflow:bcad6a16.fbc798","z":"d0f6da93.5603c8","name":"","env":[],"x":500,"y":340,"wires":[["fc3b7cc5.0ac43"]],"info":"This node uses your autorization token, or Bearer your desired language (de and en are supported) to give you id-information about one specific devices as describes in https://www.miele.com/developer/swagger-ui/index.html#/.\nAll parameters can be set using the incoming message.\nmsg.bearer, msg.lang, basically  it's msg.[variable_name]..."},{"id":"2940a41f.6a1dec","type":"inject","z":"d0f6da93.5603c8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":220,"y":460,"wires":[["8d502f9a.9cfae"]]},{"id":"8d502f9a.9cfae","type":"function","z":"d0f6da93.5603c8","name":"set var","func":"msg.lang=\"de\";\nmsg.bearer=global.get(\"mielebearer\");\n//msg.device=\"XXXXXXXXXXXX\";\nreturn msg;","outputs":1,"noerr":0,"x":350,"y":460,"wires":[["29bb8380.76988c"]]},{"id":"1903fd7b.0d45a3","type":"debug","z":"d0f6da93.5603c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":650,"y":460,"wires":[]},{"id":"791c55db.267dcc","type":"comment","z":"d0f6da93.5603c8","name":"Returns the ident information of a single device","info":"","x":960,"y":340,"wires":[]},{"id":"a3209786.dafdc8","type":"comment","z":"d0f6da93.5603c8","name":"The GET action is used to request a device so send the currently supported actions","info":"","x":1070,"y":460,"wires":[]},{"id":"87379dd7.af663","type":"inject","z":"d0f6da93.5603c8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":220,"y":400,"wires":[["75c4daa.7552024"]]},{"id":"75c4daa.7552024","type":"function","z":"d0f6da93.5603c8","name":"set var","func":"msg.lang=\"de\";\nmsg.bearer=global.get(\"mielebearer\");\n//msg.device=\"XXXXXXXXXXXX\";\nreturn msg;","outputs":1,"noerr":0,"x":350,"y":400,"wires":[["22cd4a84.feb3f6"]]},{"id":"d47b12a8.4c8ab","type":"debug","z":"d0f6da93.5603c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":650,"y":400,"wires":[]},{"id":"b4a6a8cf.4e9628","type":"comment","z":"d0f6da93.5603c8","name":"Returns the state information of a single device","info":"","x":960,"y":400,"wires":[]},{"id":"22cd4a84.feb3f6","type":"subflow:8755d135.de6bf","z":"d0f6da93.5603c8","name":"","env":[],"x":500,"y":400,"wires":[["d47b12a8.4c8ab"]],"info":"This node uses your autorization token, or Bearer your desired language (de and en are supported) to give you the status of one specific devices as describes in https://www.miele.com/developer/swagger-ui/index.html#/.\nAll parameters can be set using the incoming message.\nmsg.bearer, msg.lang, basically  it's msg.[variable_name]..."},{"id":"29bb8380.76988c","type":"subflow:b4c5c5ea.b2a928","z":"d0f6da93.5603c8","name":"","env":[],"x":480,"y":460,"wires":[["1903fd7b.0d45a3"]],"info":"This node uses your autorization token, or Bearer your desired language (de and en are supported) to give you the availible actions of one specific devices in it's current status as describes in https://www.miele.com/developer/swagger-ui/index.html#/.\nAll parameters can be set using the incoming message.\nmsg.bearer, msg.lang, basically  it's msg.[variable_name]..."},{"id":"1c6f442f.16a17c","type":"inject","z":"d0f6da93.5603c8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":220,"y":520,"wires":[["322386e.eaa967a"]]},{"id":"322386e.eaa967a","type":"function","z":"d0f6da93.5603c8","name":"set var","func":"msg.bearer=global.get(\"mielebearer\");\n//msg.device=\"XXXXXXXXXXXX\";\nmsg.action=\"processAction\";\nmsg.parameter=\"2\";\n//msg.action=\"deviceName\";\n//msg.parameter=\"\\\\\\\"myDevice\\\\\\\"\";\nreturn msg;","outputs":1,"noerr":0,"x":350,"y":520,"wires":[["2bc4684f.4d5bc8"]]},{"id":"4686037.45bf3fc","type":"debug","z":"d0f6da93.5603c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":650,"y":520,"wires":[]},{"id":"8909e20.acfb22","type":"comment","z":"d0f6da93.5603c8","name":"The PUT action is used invoke an action on a single device","info":"","x":990,"y":520,"wires":[]},{"id":"2bc4684f.4d5bc8","type":"subflow:e23577f5.4a4eb8","z":"d0f6da93.5603c8","name":"","env":[],"x":480,"y":520,"wires":[["4686037.45bf3fc"]],"info":"This node uses your autorization token, or Bearer your desired language (de and en are supported) to give you control over one specific devices as describes in https://www.miele.com/developer/swagger-ui/index.html#/.\nAll parameters can be set using the incoming message.\nmsg.bearer, msg.lang, basically  it's msg.[variable_name]..."}]

Flow Info

Created 10 months, 1 week ago
Rating: not yet rated

Node Types

Core
  • comment (x7)
  • debug (x6)
  • exec (x7)
  • function (x20)
  • inject (x7)
  • json (x7)
  • subflow (x7)
Other
  • subflow:390beeb8.8a5162 (x1)
  • subflow:62e1dc3f.85c464 (x1)
  • subflow:8755d135.de6bf (x1)
  • subflow:b4c5c5ea.b2a928 (x1)
  • subflow:bcad6a16.fbc798 (x1)
  • subflow:d79e6968.80ffa8 (x1)
  • subflow:e23577f5.4a4eb8 (x1)

Tags

  • Miele
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option