Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "_id" : "admin@admin.com",
- "__v" : NumberInt(0),
- "things" : [
- {
- "_id" : ObjectId("58ff1f3ea594f331947e5d8c"),
- "value" : "false",
- "outputType" : "Boolean",
- "name" : "Bathroom Fan",
- "topic" : "tq3xxj/bathroom/fan",
- "hasWidget" : false,
- "thingType" : [
- "Read",
- "Write"
- ]
- },
- {
- "_id" : ObjectId("58ff1f5da594f331947e5d8d"),
- "value" : "true",
- "outputType" : "Boolean",
- "name" : "Bathroom Light",
- "topic" : "p6qfd0/bathroom/light",
- "hasWidget" : false,
- "thingType" : [
- "Read",
- "Write"
- ]
- },
- {
- "_id" : ObjectId("58ff1f9ba594f331947e5d8e"),
- "value" : "32",
- "outputType" : "Number",
- "name" : "Kitchen Temperature",
- "topic" : "j8kcorf7pc/kitchen/temperature",
- "minimumValue" : NumberInt(12),
- "maximamValue" : NumberInt(32),
- "hasWidget" : true,
- "thingType" : [
- "Read"
- ]
- },
- {
- "_id" : ObjectId("58ff1fb6a594f331947e5d8f"),
- "options" : [
- "Locked",
- "Unlocked"
- ],
- "value" : "Locked",
- "outputType" : "String",
- "name" : "Back door",
- "topic" : "740nsz5kq/back/door",
- "hasWidget" : true,
- "thingType" : [
- "Read",
- "Write"
- ]
- },
- {
- "_id" : ObjectId("58ff1fdba594f331947e5d90"),
- "maximamValue" : NumberInt(30),
- "minimumValue" : NumberInt(0),
- "value" : "11",
- "outputType" : "Number",
- "name" : "Attic Temperature",
- "topic" : "ow59y68me/attic/temperature",
- "hasWidget" : true,
- "thingType" : [
- "Read",
- "Write"
- ]
- }
- ],
- "rules" : [
- {
- "_id" : ObjectId("5903238ae38dcd3628a345f8"),
- "name" : "My first rule",
- "rule" : {
- "conditions" : {
- "all" : [
- {
- "fact" : "Bathroom Fan",
- "operator" : "equal",
- "value" : "On"
- },
- {
- "fact" : "Bathroom Light",
- "operator" : "equal",
- "value" : "On"
- }
- ]
- },
- "event" : {
- "sendNotification" : true,
- "sendSms" : true,
- "type" : "message"
- }
- },
- "devicesInvolved" : [
- "Bathroom Fan",
- "Bathroom Light"
- ],
- "active" : false,
- "triggerTime" : "14:12"
- },
- {
- "_id" : ObjectId("590324fbe38dcd3628a345f9"),
- "name" : "My second rule",
- "rule" : {
- "conditions" : {
- "all" : [
- {
- "fact" : "Bathroom Fan",
- "operator" : "equal",
- "value" : "On"
- },
- {
- "fact" : "Bathroom Light",
- "operator" : "equal",
- "value" : "Off"
- }
- ]
- },
- "event" : {
- "Back door" : "Locked",
- "sendNotification" : false,
- "sendSms" : true,
- "type" : "message"
- }
- },
- "devicesInvolved" : [
- "Bathroom Fan",
- "Bathroom Light"
- ],
- "active" : false
- },
- {
- "_id" : ObjectId("590325b6e38dcd3628a345fa"),
- "name" : "My third rule",
- "rule" : {
- "conditions" : {
- "any" : [
- {
- "fact" : "Bathroom Fan",
- "operator" : "equal",
- "value" : "On"
- }
- ]
- },
- "event" : {
- "Kitchen Temperature" : NumberInt(22),
- "sendNotification" : false,
- "sendSms" : false,
- "type" : "message"
- }
- },
- "devicesInvolved" : [
- "Bathroom Fan"
- ],
- "active" : false,
- "triggerTime" : "14:21"
- },
- {
- "_id" : ObjectId("590336fb4f1a850994275dab"),
- "name" : "My forth rule",
- "rule" : {
- "conditions" : {
- "any" : [
- {
- "fact" : "Attic Temperature",
- "operator" : "lessThan",
- "value" : NumberInt(20)
- }
- ]
- },
- "event" : {
- "Attic Temperature" : NumberInt(21),
- "sendNotification" : true,
- "sendSms" : false,
- "type" : "message"
- }
- },
- "devicesInvolved" : [
- "Attic Temperature"
- ],
- "active" : false
- },
- {
- "_id" : ObjectId("5903477c34a34028c86d3153"),
- "name" : "My fifth rule",
- "rule" : {
- "conditions" : {
- "any" : [
- {
- "fact" : "Attic Temperature",
- "operator" : "lessThan",
- "value" : NumberInt(15)
- }
- ]
- },
- "event" : {
- "do" : {
- "Attic Temperature" : NumberInt(20)
- },
- "type" : "message",
- "sendNotification" : true,
- "sendSms" : true
- }
- },
- "devicesInvolved" : [
- "Attic Temperature"
- ],
- "active" : false
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement