Advertisement
cypmaster14

Untitled

Apr 28th, 2017
621
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 6.84 KB | None | 0 0
  1. {
  2.     "_id" : "admin@admin.com",
  3.     "__v" : NumberInt(0),
  4.     "things" : [
  5.         {
  6.             "_id" : ObjectId("58ff1f3ea594f331947e5d8c"),
  7.             "value" : "false",
  8.             "outputType" : "Boolean",
  9.             "name" : "Bathroom Fan",
  10.             "topic" : "tq3xxj/bathroom/fan",
  11.             "hasWidget" : false,
  12.             "thingType" : [
  13.                 "Read",
  14.                 "Write"
  15.             ]
  16.         },
  17.         {
  18.             "_id" : ObjectId("58ff1f5da594f331947e5d8d"),
  19.             "value" : "true",
  20.             "outputType" : "Boolean",
  21.             "name" : "Bathroom Light",
  22.             "topic" : "p6qfd0/bathroom/light",
  23.             "hasWidget" : false,
  24.             "thingType" : [
  25.                 "Read",
  26.                 "Write"
  27.             ]
  28.         },
  29.         {
  30.             "_id" : ObjectId("58ff1f9ba594f331947e5d8e"),
  31.             "value" : "32",
  32.             "outputType" : "Number",
  33.             "name" : "Kitchen Temperature",
  34.             "topic" : "j8kcorf7pc/kitchen/temperature",
  35.             "minimumValue" : NumberInt(12),
  36.             "maximamValue" : NumberInt(32),
  37.             "hasWidget" : true,
  38.             "thingType" : [
  39.                 "Read"
  40.             ]
  41.         },
  42.         {
  43.             "_id" : ObjectId("58ff1fb6a594f331947e5d8f"),
  44.             "options" : [
  45.                 "Locked",
  46.                 "Unlocked"
  47.             ],
  48.             "value" : "Locked",
  49.             "outputType" : "String",
  50.             "name" : "Back door",
  51.             "topic" : "740nsz5kq/back/door",
  52.             "hasWidget" : true,
  53.             "thingType" : [
  54.                 "Read",
  55.                 "Write"
  56.             ]
  57.         },
  58.         {
  59.             "_id" : ObjectId("58ff1fdba594f331947e5d90"),
  60.             "maximamValue" : NumberInt(30),
  61.             "minimumValue" : NumberInt(0),
  62.             "value" : "11",
  63.             "outputType" : "Number",
  64.             "name" : "Attic Temperature",
  65.             "topic" : "ow59y68me/attic/temperature",
  66.             "hasWidget" : true,
  67.             "thingType" : [
  68.                 "Read",
  69.                 "Write"
  70.             ]
  71.         }
  72.     ],
  73.     "rules" : [
  74.         {
  75.             "_id" : ObjectId("5903238ae38dcd3628a345f8"),
  76.             "name" : "My first rule",
  77.             "rule" : {
  78.                 "conditions" : {
  79.                     "all" : [
  80.                         {
  81.                             "fact" : "Bathroom Fan",
  82.                             "operator" : "equal",
  83.                             "value" : "On"
  84.                         },
  85.                         {
  86.                             "fact" : "Bathroom Light",
  87.                             "operator" : "equal",
  88.                             "value" : "On"
  89.                         }
  90.                     ]
  91.                 },
  92.                 "event" : {
  93.                     "sendNotification" : true,
  94.                     "sendSms" : true,
  95.                     "type" : "message"
  96.                 }
  97.             },
  98.             "devicesInvolved" : [
  99.                 "Bathroom Fan",
  100.                 "Bathroom Light"
  101.             ],
  102.             "active" : false,
  103.             "triggerTime" : "14:12"
  104.         },
  105.         {
  106.             "_id" : ObjectId("590324fbe38dcd3628a345f9"),
  107.             "name" : "My second rule",
  108.             "rule" : {
  109.                 "conditions" : {
  110.                     "all" : [
  111.                         {
  112.                             "fact" : "Bathroom Fan",
  113.                             "operator" : "equal",
  114.                             "value" : "On"
  115.                         },
  116.                         {
  117.                             "fact" : "Bathroom Light",
  118.                             "operator" : "equal",
  119.                             "value" : "Off"
  120.                         }
  121.                     ]
  122.                 },
  123.                 "event" : {
  124.                     "Back door" : "Locked",
  125.                     "sendNotification" : false,
  126.                     "sendSms" : true,
  127.                     "type" : "message"
  128.                 }
  129.             },
  130.             "devicesInvolved" : [
  131.                 "Bathroom Fan",
  132.                 "Bathroom Light"
  133.             ],
  134.             "active" : false
  135.         },
  136.         {
  137.             "_id" : ObjectId("590325b6e38dcd3628a345fa"),
  138.             "name" : "My third rule",
  139.             "rule" : {
  140.                 "conditions" : {
  141.                     "any" : [
  142.                         {
  143.                             "fact" : "Bathroom Fan",
  144.                             "operator" : "equal",
  145.                             "value" : "On"
  146.                         }
  147.                     ]
  148.                 },
  149.                 "event" : {
  150.                     "Kitchen Temperature" : NumberInt(22),
  151.                     "sendNotification" : false,
  152.                     "sendSms" : false,
  153.                     "type" : "message"
  154.                 }
  155.             },
  156.             "devicesInvolved" : [
  157.                 "Bathroom Fan"
  158.             ],
  159.             "active" : false,
  160.             "triggerTime" : "14:21"
  161.         },
  162.         {
  163.             "_id" : ObjectId("590336fb4f1a850994275dab"),
  164.             "name" : "My forth rule",
  165.             "rule" : {
  166.                 "conditions" : {
  167.                     "any" : [
  168.                         {
  169.                             "fact" : "Attic Temperature",
  170.                             "operator" : "lessThan",
  171.                             "value" : NumberInt(20)
  172.                         }
  173.                     ]
  174.                 },
  175.                 "event" : {
  176.                     "Attic Temperature" : NumberInt(21),
  177.                     "sendNotification" : true,
  178.                     "sendSms" : false,
  179.                     "type" : "message"
  180.                 }
  181.             },
  182.             "devicesInvolved" : [
  183.                 "Attic Temperature"
  184.             ],
  185.             "active" : false
  186.         },
  187.         {
  188.             "_id" : ObjectId("5903477c34a34028c86d3153"),
  189.             "name" : "My fifth rule",
  190.             "rule" : {
  191.                 "conditions" : {
  192.                     "any" : [
  193.                         {
  194.                             "fact" : "Attic Temperature",
  195.                             "operator" : "lessThan",
  196.                             "value" : NumberInt(15)
  197.                         }
  198.                     ]
  199.                 },
  200.                 "event" : {
  201.                     "do" : {
  202.                         "Attic Temperature" : NumberInt(20)
  203.                     },
  204.                     "type" : "message",
  205.                     "sendNotification" : true,
  206.                     "sendSms" : true
  207.                 }
  208.             },
  209.             "devicesInvolved" : [
  210.                 "Attic Temperature"
  211.             ],
  212.             "active" : false
  213.         }
  214.     ]
  215. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement