{"info":{"_postman_id":"55c132cb-0208-4ba4-92eb-11b511230dac","name":"ICS2000 API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"10414265","collectionId":"55c132cb-0208-4ba4-92eb-11b511230dac","publishedId":"SzzheeBJ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-06-14T18:12:12.000Z"},"item":[{"name":"Get devices","id":"45769ccc-f147-4d77-b52b-4a0e72129acb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://trustsmartcloud2.com/ics2000_api/gateway.php?action=sync&email=&mac=<mac of hub>&password_hash=<password in plain text ¯\\_(ツ)_/¯>&device_unique_id=<random uuid>&home_id=<your home id from the login request>","description":"<p>Get list of your connected devices</p>\n","urlObject":{"protocol":"https","path":["ics2000_api","gateway.php"],"host":["trustsmartcloud2","com"],"query":[{"key":"action","value":"sync"},{"key":"email","value":""},{"key":"mac","value":"<mac of hub>"},{"key":"password_hash","value":"<password in plain text ¯\\_(ツ)_/¯>"},{"key":"device_unique_id","value":"<random uuid>"},{"key":"home_id","value":"<your home id from the login request>"}],"variable":[]}},"response":[],"_postman_id":"45769ccc-f147-4d77-b52b-4a0e72129acb"},{"name":"Get energy reports","id":"c8021337-ca71-4ff2-9de7-6ab41392d018","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://trustsmartcloud2.com/ics2000_api/p1.php?action=aggregated_reports&email=&mac=<mac of hub>&password_hash=<password in plain text ¯\\_(ツ)_/¯>&device_unique_id=<your random uuid>&type=hours&start_date=2020-01-01 00:00:00&end_date=2020-05-01 00:00:00&precision=hours&differential=false&interpolate=true","urlObject":{"protocol":"https","path":["ics2000_api","p1.php"],"host":["trustsmartcloud2","com"],"query":[{"key":"action","value":"aggregated_reports"},{"key":"email","value":""},{"key":"mac","value":"<mac of hub>"},{"key":"password_hash","value":"<password in plain text ¯\\_(ツ)_/¯>"},{"key":"device_unique_id","value":"<your random uuid>"},{"key":"type","value":"hours"},{"key":"start_date","value":"2020-01-01 00:00:00"},{"key":"end_date","value":"2020-05-01 00:00:00"},{"key":"precision","value":"hours"},{"key":"differential","value":"false"},{"key":"interpolate","value":"true"}],"variable":[]}},"response":[],"_postman_id":"c8021337-ca71-4ff2-9de7-6ab41392d018"},{"name":"Send command","id":"50dd1dc1-b6ac-434a-97bf-ba71e76dd0ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://trustsmartcloud2.com/ics2000_api/command.php?action=add&email=&mac=<mac of hub>&password_hash=<password in plain text ¯\\_(ツ)_/¯>&device_unique_id=<your random uuid>&command=<your command generated by java code>","description":"<p>Send a command for example turning a light on or off</p>\n","urlObject":{"protocol":"https","path":["ics2000_api","command.php"],"host":["trustsmartcloud2","com"],"query":[{"key":"action","value":"add"},{"key":"email","value":""},{"key":"mac","value":"<mac of hub>"},{"key":"password_hash","value":"<password in plain text ¯\\_(ツ)_/¯>"},{"key":"device_unique_id","value":"<your random uuid>"},{"key":"command","value":"<your command generated by java code>"}],"variable":[]}},"response":[],"_postman_id":"50dd1dc1-b6ac-434a-97bf-ba71e76dd0ad"},{"name":"Get gateway info","id":"73e48a65-90a2-4060-9842-64b260e3d892","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://trustsmartcloud2.com/ics2000_api/gateway.php?action=settings&email=&mac=<mac of hub>&password_hash=<password in plain text ¯\\_(ツ)_/¯>","description":"<p>Get your gateway info</p>\n","urlObject":{"protocol":"https","path":["ics2000_api","gateway.php"],"host":["trustsmartcloud2","com"],"query":[{"key":"action","value":"settings"},{"key":"email","value":""},{"key":"mac","value":"<mac of hub>"},{"key":"password_hash","value":"<password in plain text ¯\\_(ツ)_/¯>"}],"variable":[]}},"response":[],"_postman_id":"73e48a65-90a2-4060-9842-64b260e3d892"},{"name":"Create account for uuid","id":"f83bdefb-9870-4b30-a3a6-243cff8ee27b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://trustsmartcloud2.com/ics2000_api/account.php?action=add&email=&mac=<mac of hub>&password_hash=<password in plain text ¯\\_(ツ)_/¯>&device_unique_id=<your uuid>&name=<name for your user can be anything>&newsletter=false&language=nl&platform=Android&app_flavor=kaku","description":"<p>Create an account for your random uuid</p>\n","urlObject":{"protocol":"https","path":["ics2000_api","account.php"],"host":["trustsmartcloud2","com"],"query":[{"key":"action","value":"add"},{"key":"email","value":""},{"key":"mac","value":"<mac of hub>"},{"key":"password_hash","value":"<password in plain text ¯\\_(ツ)_/¯>"},{"key":"device_unique_id","value":"<your uuid>"},{"key":"name","value":"<name for your user can be anything>"},{"key":"newsletter","value":"false"},{"key":"language","value":"nl"},{"key":"platform","value":"Android"},{"key":"app_flavor","value":"kaku"},{"disabled":true,"key":"home_id","value":"69982"}],"variable":[]}},"response":[],"_postman_id":"f83bdefb-9870-4b30-a3a6-243cff8ee27b"},{"name":"Login (get AES)","id":"4e7203a7-23c0-44cd-b108-60db570ef21f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://trustsmartcloud2.com/ics2000_api/account.php?action=login&email=&mac=<mac of hub>&password_hash=<password in plain text ¯\\_(ツ)_/¯>&device_unique_id=<your uuid>&platform=Android","description":"<p>Login with the random uuid and get a AES</p>\n","urlObject":{"protocol":"https","path":["ics2000_api","account.php"],"host":["trustsmartcloud2","com"],"query":[{"key":"action","value":"login"},{"key":"email","value":""},{"key":"mac","value":"<mac of hub>"},{"key":"password_hash","value":"<password in plain text ¯\\_(ツ)_/¯>"},{"key":"device_unique_id","value":"<your uuid>"},{"key":"platform","value":"Android"}],"variable":[]}},"response":[],"_postman_id":"4e7203a7-23c0-44cd-b108-60db570ef21f"}]}