From 9834d6a967557af10146aeda2e0cee3a30d19a27 Mon Sep 17 00:00:00 2001 From: Karl Hudgell Date: Thu, 15 Dec 2022 17:16:30 +0000 Subject: [PATCH] add postman collections --- Postman/MiGenie.postman_collection.json | 333 +++++++++++++++++++ Postman/MiGenineHASS.postman_collection.json | 230 +++++++++++++ 2 files changed, 563 insertions(+) create mode 100644 Postman/MiGenie.postman_collection.json create mode 100644 Postman/MiGenineHASS.postman_collection.json diff --git a/Postman/MiGenie.postman_collection.json b/Postman/MiGenie.postman_collection.json new file mode 100644 index 0000000..a8e1251 --- /dev/null +++ b/Postman/MiGenie.postman_collection.json @@ -0,0 +1,333 @@ +{ + "info": { + "_postman_id": "8022322f-55e5-4ded-8e67-7c3ba8a6fd8d", + "name": "MiGenie", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "Get Endpoints", + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "{{password}}", + "type": "string" + }, + { + "key": "username", + "value": "{{username}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "User-Agent-Wiser", + "value": "iPhoneTestTool;iOS6;WiserApp2.0.0", + "type": "text" + }, + { + "key": "", + "value": "", + "type": "default", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{}", + "options": { + "raw": { + "language": "javascript" + } + } + }, + "url": { + "raw": "https://public.wcs.schneider-electric.ws/rpc/public_ssp/pua_init", + "protocol": "https", + "host": [ + "public", + "wcs", + "schneider-electric", + "ws" + ], + "path": [ + "rpc", + "public_ssp", + "pua_init" + ] + } + }, + "response": [] + }, + { + "name": "Turn Off Heating", + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "{{password}}", + "type": "string" + }, + { + "key": "username", + "value": "{{username}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "User-Agent-Wiser", + "type": "text", + "value": "iPhoneTestTool;iOS6;WiserApp2.0.0" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"zoneId\": [\n 0\n ],\n \"setpoint\": 0\n}", + "options": { + "raw": { + "language": "javascript" + } + } + }, + "url": { + "raw": "https://public.wcs.schneider-electric.ws/rpc/public_genie/adjust_setpoint", + "protocol": "https", + "host": [ + "public", + "wcs", + "schneider-electric", + "ws" + ], + "path": [ + "rpc", + "public_genie", + "adjust_setpoint" + ] + } + }, + "response": [] + }, + { + "name": "Turn On Heating 22Deg", + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "{{password}}", + "type": "string" + }, + { + "key": "username", + "value": "{{username}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "User-Agent-Wiser", + "type": "text", + "value": "iPhoneTestTool;iOS6;WiserApp2.0.0" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"zoneId\": [\n 0\n ],\n \"setpoint\": 84\n}", + "options": { + "raw": { + "language": "javascript" + } + } + }, + "url": { + "raw": "https://public.wcs.schneider-electric.ws/rpc/public_genie/adjust_setpoint", + "protocol": "https", + "host": [ + "public", + "wcs", + "schneider-electric", + "ws" + ], + "path": [ + "rpc", + "public_genie", + "adjust_setpoint" + ] + } + }, + "response": [] + }, + { + "name": "poll Genie", + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "username", + "value": "{{username}}", + "type": "string" + }, + { + "key": "password", + "value": "{{password}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "User-Agent-Wiser", + "type": "text", + "value": "iPhoneTestTool;iOS6;WiserApp2.0.0" + } + ], + "body": { + "mode": "raw", + "raw": "{}", + "options": { + "raw": { + "language": "javascript" + } + } + }, + "url": { + "raw": "https://public.wcs.schneider-electric.ws/rpc/public_genie/poll", + "protocol": "https", + "host": [ + "public", + "wcs", + "schneider-electric", + "ws" + ], + "path": [ + "rpc", + "public_genie", + "poll" + ] + } + }, + "response": [] + }, + { + "name": "Boost Hot Water 90 Mins", + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "{{password}}", + "type": "string" + }, + { + "key": "username", + "value": "{{username}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "User-Agent-Wiser", + "type": "text", + "value": "iPhoneTestTool;iOS6;WiserApp2.0.0" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"zoneId\": [\n 1\n ],\n \"setPoint\": 255,\n \"durationMinutes\": 90\n}", + "options": { + "raw": { + "language": "javascript" + } + } + }, + "url": { + "raw": "https://public.wcs.schneider-electric.ws/rpc/public_genie/apply_timer", + "protocol": "https", + "host": [ + "public", + "wcs", + "schneider-electric", + "ws" + ], + "path": [ + "rpc", + "public_genie", + "apply_timer" + ] + } + }, + "response": [] + }, + { + "name": "Turn Off Hot Water", + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "{{password}}", + "type": "string" + }, + { + "key": "username", + "value": "{{username}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "User-Agent-Wiser", + "type": "text", + "value": "iPhoneTestTool;iOS6;WiserApp2.0.0" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"zoneId\": [\n 1\n ]\n}", + "options": { + "raw": { + "language": "javascript" + } + } + }, + "url": { + "raw": "https://public.wcs.schneider-electric.ws/rpc/public_genie/cancel_timer", + "protocol": "https", + "host": [ + "public", + "wcs", + "schneider-electric", + "ws" + ], + "path": [ + "rpc", + "public_genie", + "cancel_timer" + ] + } + }, + "response": [] + } + ] +} \ No newline at end of file diff --git a/Postman/MiGenineHASS.postman_collection.json b/Postman/MiGenineHASS.postman_collection.json new file mode 100644 index 0000000..3a64945 --- /dev/null +++ b/Postman/MiGenineHASS.postman_collection.json @@ -0,0 +1,230 @@ +{ + "info": { + "_postman_id": "3db6d8ea-c867-46d4-a46c-7a1ad0376819", + "name": "MiGenineHASS", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "Get Water Root", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{url}}/water", + "host": [ + "{{url}}" + ], + "path": [ + "water" + ] + } + }, + "response": [] + }, + { + "name": "Get Water Status", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{url}}/water/status", + "host": [ + "{{url}}" + ], + "path": [ + "water", + "status" + ] + } + }, + "response": [] + }, + { + "name": "Get Heating Root", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{url}}/heating", + "host": [ + "{{url}}" + ], + "path": [ + "heating" + ] + } + }, + "response": [] + }, + { + "name": "Get Heating Status", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{url}}/heating/status", + "host": [ + "{{url}}" + ], + "path": [ + "heating", + "status" + ] + } + }, + "response": [] + }, + { + "name": "Boost Water for Time", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "default" + } + ], + "body": { + "mode": "raw", + "raw": "{}", + "options": { + "raw": { + "language": "javascript" + } + } + }, + "url": { + "raw": "{{url}}/water/boost?time=30", + "host": [ + "{{url}}" + ], + "path": [ + "water", + "boost" + ], + "query": [ + { + "key": "time", + "value": "30", + "description": "Length of boost in mins" + } + ] + } + }, + "response": [] + }, + { + "name": "Turn Off Water", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "default" + } + ], + "body": { + "mode": "raw", + "raw": "{}", + "options": { + "raw": { + "language": "javascript" + } + } + }, + "url": { + "raw": "{{url}}/water/turn_off", + "host": [ + "{{url}}" + ], + "path": [ + "water", + "turn_off" + ] + } + }, + "response": [] + }, + { + "name": "Turn Off Heating", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "default" + } + ], + "body": { + "mode": "raw", + "raw": "{}", + "options": { + "raw": { + "language": "javascript" + } + } + }, + "url": { + "raw": "{{url}}/heating/turn_off", + "host": [ + "{{url}}" + ], + "path": [ + "heating", + "turn_off" + ] + } + }, + "response": [] + }, + { + "name": "Turn On Heating to temp for time", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "default" + } + ], + "body": { + "mode": "raw", + "raw": "{}", + "options": { + "raw": { + "language": "javascript" + } + } + }, + "url": { + "raw": "{{url}}/heating/turn_on?temp&time", + "host": [ + "{{url}}" + ], + "path": [ + "heating", + "turn_on" + ], + "query": [ + { + "key": "temp", + "value": null, + "description": "Temp in Celcius" + }, + { + "key": "time", + "value": null, + "description": "Length of boost in Mins" + } + ] + } + }, + "response": [] + } + ] +} \ No newline at end of file