Last active
December 10, 2016 17:37
-
-
Save christianbauer/92ac576a4be8f28f32cab6e4f9277681 to your computer and use it in GitHub Desktop.
Agent/Thing asset model
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "ekOo0puKRdGtBhDOOFzBfA", | |
"type": "urn:openremote:asset:agent", | |
"name": "TestAgent 123", | |
"coordinates": [ | |
5.460315214821094, | |
51.44541688237109 | |
], | |
"attributes": { | |
"hueBridge456": { | |
"type": "String", | |
"value": "urn:openremote:protocol:hue", | |
"metadata": [ | |
{ | |
"name": "urn:openremote:protocol:hue:host", | |
"value": "192.168.123.123" | |
}, | |
{ | |
"name": "urn:openremote:protocol:hue:username", | |
"value": "1028d66426293e821ecfd9ef1a0731df" | |
}, | |
{ | |
"name": "urn:openremote:protocol:hue:pollInterval", | |
"value": 500 | |
} | |
] | |
}, | |
"zwave123": { | |
"type": "String", | |
"value": "urn:openremote:protocol:zwave", | |
"metadata": [ | |
{ | |
"name": "urn:openremote:asset:meta:description", | |
"value": "Aeon Labs ZWave Adapter in USB Port 123" | |
}, | |
{ | |
"name": "urn:openremote:protocol:zwave:usbport", | |
"value": "/dev/cu.usbmodem1411" | |
}, | |
{ | |
"name": "urn:openremote:protocol:zwave:checkAliveInterval", | |
"value": 3000 | |
} | |
] | |
} | |
} | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "s3xHx6NLSzSajk0TdsVteA", | |
"type": "urn:openremote:asset:thing", | |
"name": "TestThing", | |
"coordinates": [ | |
5.460315214821094, | |
51.44541688237109 | |
], | |
"attributes": { | |
"light1Toggle": { | |
"type": "Boolean", | |
"value": true, | |
"metadata": [ | |
{ | |
"name": "urn:openremote:asset:meta:description", | |
"value": "The switch for the light in the living room" | |
}, | |
{ | |
"name": "urn:openremote:agent:link", | |
"value": [ | |
"ekOo0puKRdGtBhDOOFzBfA", | |
"hueBridge456" | |
] | |
}, | |
{ | |
"name": "urn:openremote:protocol:hue:lightId", | |
"value": 3 | |
}, | |
{ | |
"name": "urn:openremote:protocol:hue:command", | |
"value": "switch" | |
} | |
] | |
}, | |
"light1Dimmer": { | |
"type": "Integer", | |
"value": 55, | |
"metadata": [ | |
{ | |
"name": "urn:openremote:asset:meta:description", | |
"value": "The dimmer for the light in the living room" | |
}, | |
{ | |
"name": "urn:openremote:asset:meta:rangeMin", | |
"value": 0 | |
}, | |
{ | |
"name": "urn:openremote:asset:meta:rangeMax", | |
"value": 100 | |
}, | |
{ | |
"name": "urn:openremote:agent:link", | |
"value": [ | |
"ekOo0puKRdGtBhDOOFzBfA", | |
"hueBridge456" | |
] | |
}, | |
{ | |
"name": "urn:openremote:protocol:hue:lightId", | |
"value": 3 | |
}, | |
{ | |
"name": "urn:openremote:protocol:hue:command", | |
"value": "brightness" | |
} | |
] | |
}, | |
"light1Color": { | |
"type": "Color", | |
"value": { | |
"red": 88, | |
"green": 123, | |
"blue": 88 | |
}, | |
"metadata": [ | |
{ | |
"name": "urn:openremote:asset:meta:description", | |
"value": "The color of the living room light" | |
}, | |
{ | |
"name": "urn:openremote:agent:link", | |
"value": [ | |
"ekOo0puKRdGtBhDOOFzBfA", | |
"hueBridge456" | |
] | |
}, | |
{ | |
"name": "urn:openremote:protocol:hue:lightId", | |
"value": 3 | |
}, | |
{ | |
"name": "urn:openremote:protocol:hue:command", | |
"value": "color" | |
} | |
] | |
}, | |
"light1PowerConsumption": { | |
"type": "Integer", | |
"value": 123, | |
"metadata": [ | |
{ | |
"name": "urn:openremote:asset:meta:description", | |
"value": "The total power consumption of the living room light" | |
}, | |
{ | |
"name": "urn:openremote:asset:meta:readOnly", | |
"value": true | |
}, | |
{ | |
"name": "urn:openremote:asset:meta:format", | |
"value": "%3d kWh" | |
}, | |
{ | |
"name": "urn:openremote:agent:link", | |
"value": [ | |
"ekOo0puKRdGtBhDOOFzBfA", | |
"zwave123" | |
] | |
}, | |
{ | |
"name": "urn:openremote:protocol:zwave:nodeId", | |
"value": 5 | |
}, | |
{ | |
"name": "urn:openremote:protocol:zwave:command", | |
"value": "STATUS" | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment