Advertisement
Guest User

HueEmulator.py iOS

a guest
Jan 16th, 2018
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.17 KB | None | 0 0
  1. 192.168.178.49 - - [16/Jan/2018 16:35:07] "POST /api/470a0c52e89555f73b11904c84af61924c487816/sensors HTTP/1.1" 200 -
  2. in post method
  3. /api/470a0c52e89555f73b11904c84af61924c487816/sensors
  4. {"type":"CLIPGenericFlag","name":"Timer.companion","modelid":"PHA_CTRL_START","manufacturername":"Philips","uniqueid":"VvZKUF6mFY85","swversion":"1.0","recycle":true}
  5. [
  6.     {
  7.         "success": {
  8.             "id": "1"
  9.         }
  10.     }
  11. ]
  12. 192.168.178.49 - - [16/Jan/2018 16:35:07] "POST /api/470a0c52e89555f73b11904c84af61924c487816/schedules HTTP/1.1" 200 -
  13. in post method
  14. /api/470a0c52e89555f73b11904c84af61924c487816/schedules
  15. {"name":"Timer","description":"Timer","command":{"address":"/api/470a0c52e89555f73b11904c84af6192/sensors/1/state","method":"PUT","body":{"flag":true}},"localtime":"PT00:01:00","autodelete":false,"status":"enabled","recycle":true}
  16. [
  17.     {
  18.         "success": {
  19.             "id": "1"
  20.         }
  21.     }
  22. ]
  23. 192.168.178.49 - - [16/Jan/2018 16:35:08] "POST /api/470a0c52e89555f73b11904c84af61924c487816/rules HTTP/1.1" 200 -
  24. in post method
  25. /api/470a0c52e89555f73b11904c84af61924c487816/rules
  26. {"name":"Timer 1.action","recycle":true,"conditions":[{"address":"/sensors/1/state/flag","operator":"dx"},{"address":"/sensors/1/state/flag","operator":"eq","value":"true"}],"actions":[{"address":"/sensors/1/state","method":"PUT","body":{"flag":false}},{"address":"/groups/1/action","method":"PUT","body":{"scene":"5"}}]}
  27. [
  28.     {
  29.         "success": {
  30.             "id": "1"
  31.         }
  32.     }
  33. ]
  34. 192.168.178.49 - - [16/Jan/2018 16:35:08] "POST /api/470a0c52e89555f73b11904c84af61924c487816/resourcelinks HTTP/1.1" 200 -
  35. in post method
  36. /api/470a0c52e89555f73b11904c84af61924c487816/resourcelinks
  37. {"name":"Timer 1","description":"Timer 1 behavior","type":"Link","classid":20120,"recycle":false,"links":["/sensors/1","/schedules/1","/groups/1","/rules/1","/scenes/5"]}
  38. [
  39.     {
  40.         "success": {
  41.             "id": "1"
  42.         }
  43.     }
  44. ]
  45.  
  46.  
  47. Execute:
  48.  
  49. execute timmer: 1 withe delay 0
  50. 127.0.0.1 - - [16/Jan/2018 16:36:07] "PUT /api/470a0c52e89555f73b11904c84af6192/sensors/1/state HTTP/1.1" 200 -
  51. in PUT method
  52. /api/470a0c52e89555f73b11904c84af6192/sensors/1/state
  53. {"flag": true}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement