Guest User

Untitled

a guest
Dec 18th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. {
  2. "devices": [
  3. {
  4. "deviceName": "HVAC Controller",
  5. "deviceType": "HVAC Controller",
  6. "devicePath": "",
  7. "parameters": [
  8. { "paramName": "heat", "paramType": "bool", "paramActions": "both"},
  9. { "paramName": "ac", "paramType": "bool","paramActions": "both"},
  10. { "paramName": "fan", "paramType": "bool", "paramActions": "both"},
  11. { "paramName": "off_time", "paramType": "number", "paramActions": "both"},
  12. { "paramName": "update_period", "paramType": "number", "paramActions": "both"}
  13. ]
  14. },
  15. {
  16. "deviceName": "Temperature Sensor",
  17. "deviceType": "Temperature Sensor",
  18. "devicePath": "",
  19. "parameters": [
  20. { "paramName": "temperature", "paramType": "number", "paramActions": "both"}
  21. ]
  22. },
  23. {
  24. "deviceName": "Temperature Set Point",
  25. "deviceType": "Temperature Set Point",
  26. "devicePath": "",
  27. "parameters": [
  28. { "paramName": "set_temperature", "paramType": "number", "paramActions": "both"}
  29. ]
  30. }
  31. ],
  32. "actions": [
  33. {
  34. "actionName": "HVAC Idle",
  35. "actionCommands": [
  36. {"paramID": "heat", "paramValue": "false"},
  37. {"paramID": "ac", "paramValue": "false"},
  38. {"paramID": "fan", "paramValue": "false"}
  39. ]
  40. },
  41. {
  42. "actionName": "HVAC Heat",
  43. "actionCommands": [
  44. {"paramID": "heat", "paramValue": "true"},
  45. {"paramID": "ac", "paramValue": "false"},
  46. {"paramID": "fan", "paramValue": "true"}
  47. ]
  48. },
  49. {
  50. "actionName": "HVAC Cool",
  51. "actionCommands": [
  52. {"paramID": "heat", "paramValue": "false"},
  53. {"paramID": "ac", "paramValue": "true"},
  54. {"paramID": "fan", "paramValue": "true"}
  55. ]
  56. },
  57. {
  58. "actionName": "HVAC Vent",
  59. "actionCommands": [
  60. {"paramID": "heat", "paramValue": "false"},
  61. {"paramID": "ac", "paramValue": "false"},
  62. {"paramID": "fan", "paramValue": "true"}
  63. ]
  64. }
  65. ],
  66.  
  67. "conditions": [
  68. {
  69. "conditionName": "Temperature Greater Than Set Temperature",
  70. "paramID": "temperature",
  71. "conditionType": "dynamic",
  72. "comparison": ">",
  73. "comparisonParameter": "set_temperature",
  74. "tolerance": "2",
  75. "actionID": "hvac_cool"
  76. },
  77. {
  78. "conditionName": "Temperature Less Than Set Temperature",
  79. "paramID": "temperature",
  80. "conditionType": "dynamic",
  81. "comparison": "<",
  82. "comparisonParameter": "set_temperature",
  83. "tolerance": "2",
  84. "actionID": "hvac_heat"
  85. },
  86. {
  87. "conditionName": "Temperature Equal to Set Temperature",
  88. "paramID": "temperature",
  89. "conditionType": "dynamic",
  90. "comparison": "=",
  91. "comparisonParameter": "set_temperature",
  92. "tolerance": "2",
  93. "actionID": "hvac_idle"
  94. }
  95. ]
  96. }
Add Comment
Please, Sign In to add comment