mirror of
https://github.com/karl0ss/MiGenieHASS.git
synced 2025-04-28 12:33:40 +01:00
add postman collections
This commit is contained in:
parent
6cb70894ba
commit
9834d6a967
333
Postman/MiGenie.postman_collection.json
Normal file
333
Postman/MiGenie.postman_collection.json
Normal file
@ -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": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
230
Postman/MiGenineHASS.postman_collection.json
Normal file
230
Postman/MiGenineHASS.postman_collection.json
Normal file
@ -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": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user