Rooms API
GET Room List
Returns a list of O3 rooms that the user, who has logged in, has access to. These rooms have sensor hubs that are online.
https://{enteliWEB Server IP Address}/enteliweb/api/rooms?alt=json
Request Path Parameters
| Name | Description |
|---|---|
|
{enteliWEB Server IP Address} |
The IP address of the enteliWEB server in the O3 room network. |
Response Body Attributes
| Name | Nested Names | Data Type | Description |
|---|---|---|---|
|
id |
-- |
string |
Room ID |
|
name |
-- |
string |
Room Name |
|
description |
-- |
string |
Room Description |
|
photo |
Room Photo |
||
|
id |
string |
Photo ID |
|
|
filename |
string |
Photo file name |
|
|
url |
string |
Photo file URL |
|
|
caption |
string |
Photo caption |
|
|
currentActivity |
-- |
string |
The current room activity ID |
|
deviceHubs |
|
Room's associated sensor hubs |
|
|
id |
string |
The sensor hub ID |
|
|
roomId |
string |
Room ID |
|
|
deviceRef |
string |
The sensor hub's associated O3-DIN controller DEV object |
|
|
instance |
integer |
Address of the sensor hub assigned by its rotary switch |
|
|
beaconId |
string |
Sensor hub MAC address |
{ "$base": "List", "876bc96d-ea0b-11e9-b9b4-4799bbba5e36": { "$base": "Composition", "id": { "$base": "String", "value": "876bc96d-ea0b-11e9-b9b4-4799bbba5e36" }, "name": { "$base": "String", "value": "West Conference Room" }, "description": { "$base": "String", "value": "West Conference Room located near reception desk" }, "photo": { "$base": "Composition", "id": { "$base": "String", "value": "22" }, "filename": { "$base": "String", "value": "roomphoto22.png" }, "url": { "$base": "String", "value": "http://10.230.22.58/enteliweb/images/room/roomphoto22.png" }, "caption": { "$base": "String", "value": "Shared Studio" } }, "currentActivity": { "$base": "String", "value": "" }, "deviceHubs": { "$base": "List", "876b7b4c-ea0b-11e9-b9b1-339975174527": { "$base": "Composition", "id": { "$base": "String", "value": "876b7b4c-ea0b-11e9-b9b1-339975174527" }, "roomId": { "$base": "String", "value": "876bc96d-ea0b-11e9-b9b4-4799bbba5e36" }, "deviceRef": { "$base": "String", "value": "//Technical Writers Room/4148916.DEV4148916" }, "instance": { "$base": "Integer", "value": "2" }, "beacondId": { "$base": "String", "value": "D4:CA:6E:B3:07:98" } } } } }
GET Room List by Sensor Hub
Returns a list of rooms closest to the Bluetooth antenna on the device of the logged in user. The room list is based on the proximity of the antenna to specific sensor hubs using the hub's MAC address and Bluetooth beacon signal strength received by the antenna.
https://{enteliWEB Server IP Address}/enteliweb/api/rooms?beacon[]={“id”:“sensor hub #1 MAC address”, “signal”:60}&beacon[]={“id”:“sensor hub # 2 MAC address”, “signal”:60}
In the above sample request, the signal strength received is a value of 60.
Note: The beacon information between the { } brackets has to be URL encoded.
Request Path Parameters
| Name | Description |
|---|---|
|
Sensor hub MAC Address |
To find out the MAC address of the O3-HUB sensor hub, see the Create the Sensor Hub Object Database section in the Getting Started topic. |
|
Received signal strength from the hub's Bluetooth beacon |
This is a required parameter. This value is derived from the user's device. |
Response Body Attributes
| Name | Nested Names | Data Type | Description |
|---|---|---|---|
|
id |
-- |
string |
Room ID |
|
name |
-- |
string |
Room Name |
|
description |
-- |
string |
Room Description |
|
photo |
Room Photo |
||
|
id |
string |
Photo ID |
|
|
filename |
string |
Photo file name |
|
|
url |
string |
Photo file URL |
|
|
caption |
string |
Photo caption |
|
|
currentActivity |
-- |
string |
The current room activity ID |
|
deviceHubs |
|
Room's associated sensor hubs |
|
|
id |
string |
Sensor hub ID |
|
|
roomId |
string |
Room ID |
|
|
deviceRef |
string |
The sensor hub's associated O3-DIN controller DEV object |
|
|
instance |
integer |
Address of the sensor hub assigned by its rotary switch |
|
|
beaconId |
string |
Sensor hub MAC address |
GET Single Room
Returns room information by room ID.
https://{enteliWEB Server IP Address}/enteliweb/api/rooms/{roomId}?alt=json
Returns room information by room name.
https://{enteliWEB Server IP Address}/enteliweb/api/rooms/{room name}?alt=json
Request Path Parameters
| Name | Data Type | Description |
|---|---|---|
|
{roomId} {room name} |
string |
The O3 room ID or room name. To find out the room ID or room name, perform a GET of the room list. |
Response Body Attributes
| Name | Nested Names | Data Type | Description |
|---|---|---|---|
|
id |
-- |
string |
Room ID |
|
name |
-- |
string |
Room Name |
|
description |
-- |
string |
Room Description |
|
photo |
Room Photo |
||
|
id |
string |
Photo ID |
|
|
filename |
string |
Photo file name |
|
|
url |
string |
Photo file URL |
|
|
caption |
string |
Photo caption |
|
|
currentActivity |
-- |
string |
The current room activity ID |
|
deviceHubs |
A list of the room's associated sensor hubs |
||
|
id |
string |
Sensor hub ID |
|
|
roomId |
string |
Room ID |
|
|
deviceRef |
string |
The sensor hub's associated O3-DIN controller DEV object |
|
|
instance |
integer |
Address of the sensor hub assigned by its rotary switch |
|
|
beaconId |
string |
Sensor hub MAC address |
|
|
activities |
A list of the room's activities that have been enabled in enteliWEB |
||
|
id |
string |
Room activity ID |
|
|
name |
string |
Name of room activity |
|
|
description |
string |
Room activity description |
|
|
color |
string |
Color hex associated with the activity to help users identify it in the O3 app. |
|
|
appLabel |
string |
Specifies the name used in the O3 app for this activity. When Activity Label in App is blank, then Activity Name is displayed in the O3 app. |
|
|
components |
list |
A list of the room's control setpoints set up in enteliWEB |
{ $base": "Composition", "id": { "$base": "String", "value": "876bc96d-ea0b-11e9-b9b4-4799bbba5e36" }, "name": { "$base": "String", "value": "West Conference Room" }, "description": { "$base": "String", "value": "West Conference Room located near reception desk" }, "photo": { "$base": "Composition", "id": { "$base": "String", "value": "10" }, "filename": { "$base": "String", "value": "roomphoto10.png" }, "url": { "$base": "String", "value": "http://13.230.22.58/enteliweb/images/room/roomphoto10.png" }, "caption": { "$base": "String", "value": "Meeting Room" } }, "currentActivity": { "$base": "String", "value": "" }, "deviceHubs": { "$base": "List", "876b7b4c-ea0b-11e9-b9b1-339975174527": { "$base": "Composition", "id": { "$base": "String", "value": "876b7b4c-ea0b-11e9-b9b1-339975174527" }, "roomId": { "$base": "String", "value": "876bc96d-ea0b-11e9-b9b4-4799bbba5e36" }, "deviceRef": { "$base": "String", "value": "//Technical Writers Room/4148916.DEV4148916" }, "instance": { "$base": "Integer", "value": "2" }, "beacondId": { "$base": "String", "value": "D4:CA:6E:B3:07:98" } } }, "activities": { "$base": "List", "8206edf0-3488-11e9-9514-238a9ee303f7": { "$base": "Composition", "id": { "$base": "String", "value": "8206edf0-3488-11e9-9514-238a9ee303f7" }, "name": { "$base": "String", "value": "Presentation" }, "description": { "$base": "String", "value": "For media presentations in the room" }, "color": { "$base": "String", "value": "#9B9B9B" }, "appLabel": { "$base": "String", "value": "Presentation Activity Label" } } }, "components": { "$base": "List", "4b01a6dc-ea1e-11e9-829e-e7b5f933184e": { "$base": "Composition", "id": { "$base": "String", "value": "4b01a6dc-ea1e-11e9-829e-e7b5f933184e" }, "name": { "$base": "String", "value": "Temperature" }, "type": { "$base": "String", "value": "temp" }, "controlType": { "$base": "String", "value": "" }, "roomId": { "$base": "String", "value": "876bc96d-ea0b-11e9-b9b4-4799bbba5e36" }, "controlPoints": { "$base": "Composition", "temp": { "$base": "Real", "value": "22.9384" }, "units": { "$base": "String", "value": "°C" } } }, "4b00bc7c-ea1e-11e9-8298-af8e5c426540": { "$base": "Composition", "id": { "$base": "String", "value": "4b00bc7c-ea1e-11e9-8298-af8e5c426540" }, "name": { "$base": "String", "value": "Setpoint" }, "type": { "$base": "String", "value": "temp sp" }, "controlType": { "$base": "String", "value": "SetPoint Absolute" }, "roomId": { "$base": "String", "value": "876bc96d-ea0b-11e9-b9b4-4799bbba5e36" }, "controlPoints": { "$base": "Composition", "minVal": { "$base": "Real", "value": "16.0" }, "maxVal": { "$base": "Real", "value": "28.0" } } } } }
PUT Absolute Temperature Setpoint
Changes the temperature setpoint in a room. The room must be set up in enteliWEB to use the Absolute Setpoint Type. This allows the O3 user to select the setpoint temperature within a range set by a minimum and a maximum value.
https://{enteliWEB Server IP Address}/enteliweb/api/rooms/{roomId}/components/{componentid}/controlpoints/temp sp?&alt=json
In the body of the request, add
{ "$base": "Real", "value": "new setpoint value" }
Request Body Parameters
| Name | Data Type | Description |
|---|---|---|
|
{roomId} |
string |
The O3 room ID. To find out the room ID, perform a GET of the room list. |
|
{componentid} |
string |
The ID of the temperature room control setpoint. |
Requires Authentication
Assumes request is made during a session that has not expired.
In the authorization header, add X-Csrf-Token: {_csrfToken} where {_csrfToken} is the CSRF token generated when you make a basic login GET request.
Response
{ "$base": "Real", "value": "new setpoint value" "errorText": "OK", "error": "-1" }
PUT Temperature Setpoint Offset
Changes the temperature setpoint offset in a room. The room must be set up in enteliWEB to use the Offset Setpoint Type. This allows the O3 user to increase or decrease an offset to the base setpoint temperature.
https://{enteliWEB Server IP Address}/enteliweb/api/rooms/{roomId}/components/{componentid}/controlpoints/offset?&alt=json
In the body of the request, add
{ "$base": "Real", "value": "new offset value" }
Request Body Parameters
| Name | Data Type | Description |
|---|---|---|
|
{roomId} |
string |
The O3 room ID. To find out the room ID, perform a GET of the room list. |
|
{componentid} |
string |
The ID of the temperature offset control. |
Requires Authentication
Assumes request is made during a session that has not expired.
In the authorization header, add X-Csrf-Token: {_csrfToken} where {_csrfToken} is the CSRF token generated when you make a basic login GET request.
Response
{ "$base": "Real", "value": "new offset value" "errorText": "OK", "error": "-1" }
PUT Light Controls
Turn on or off the lights in the room, or set a percentage value for the light dimmer.
For On/Off control type room control (no dimmer switch):
https://{enteliWEB Server IP Address}/enteliweb/api/rooms/{roomId}/components/{componentid}/controlpoints?&alt=json
In the body of the request, add:
{ "$base": "Composition", "on": { "base": "String", "value": "active" }, "off": { "base": "String", "value": "active" } }
If you are turning on the lights, remove the "off" name/value pair from the request, and set the "on" value to "active".
If you are turning off the lights, remove the "on" name/value pair from the request, and set the "off" value to "inactive".
For Dimmer control type room control:
https://{enteliWEB Server IP Address}/enteliweb/api/rooms/{roomId}/components/{componentid}/controlpoints?&alt=json
In the body of the request, add:
{ "$base": "Composition", "dimmer": { "base": "Real", "value": "new dimmer value" } }
For Dimmer and On/Off combination control type room control:
https://{enteliWEB Server IP Address}/enteliweb/api/rooms/{roomId}/components/{componentid}/controlpoints?&alt=json
In the body of the request, add:
{ "$base": "Composition", "dimmer": { "base": "Real", "value": "new dimmer value" }, "on": { "base": "String", "value": "active" }, "off": { "base": "String", "value": "active" } }
If you are only turning on the lights, remove the "off" and "dimmer" name/value pairs from the request, and set the "on" value to "active".
If you are only turning off the lights, remove the "on" and "dimmer" name/value pairs from the request, and set the "off" value to "inactive".
If you are changing the "dimmer" value and turning on or off the lights, remove the "on" or "off" name/value pair that isn't needed from the request.
Request Body Parameters
| Name | Data Type | Description |
|---|---|---|
|
{roomId} |
string |
The O3 room ID. To find out the room ID, perform a GET of the room list. |
|
{componentid} |
string |
The ID of the temperature room control setpoint. This ID changes if you change any settings in enteliWEB. To find out the component ID, perform a GET of the component list. |
Requires Authentication
Assumes request is made during a session that has not expired.
In the authorization header, add X-Csrf-Token: {_csrfToken} where {_csrfToken} is the CSRF token generated when you make a basic login GET request.
{ "$base": "Composition", "errorText": "OK", "error": "-1", "dimmer": { "$base": "Real", "value": "new dimmer value" }, "on": { "$base": "String", "value": "active" } }
PUT Blinds Position and Angle
Change the position of the blinds and blind angle (if controlled).
https://{enteliWEB Server IP Address}/enteliweb/api/rooms/{roomId}/components/{componentid}/controlpoints?&alt=json
In the body of the request, add:
{ "$base": "Composition", "position": { "base": "Real", "value": "new position value" }, "angle": { "base": "Real", "value": "new angle value" } }
Request Body Parameters
| Name | Data Type | Description |
|---|---|---|
|
{roomId} |
string |
The O3 room ID. To find out the room ID, perform a GET of the room list. |
|
{componentid} |
string |
The ID of the temperature room control setpoint. This ID changes if you change any settings in enteliWEB. To find out the component ID, perform a GET of the component list. |
Requires Authentication
Assumes request is made during a session that has not expired.
In the authorization header, add X-Csrf-Token: {_csrfToken} where {_csrfToken} is the CSRF token generated when you make a basic login GET request.
{ "$base": "Composition", "errorText": "OK", "error": "-1", "position": { "$base": "Real", "value": "75" }, "angle": { "$base": "Real", "value": "30" } }
PUT Blinds Position
Change the position of the blinds.
https://{enteliWEB Server IP Address}/enteliweb/api/rooms/{roomId}/components/{componentid}/controlpoints/position?&alt=json
In the body of the request, add:
{ "base": "Real", "value": "new blind position value" }
Request Body Parameters
| Name | Data Type | Description |
|---|---|---|
|
{roomId} |
string |
The O3 room ID. To find out the room ID, perform a GET of the room list. |
| {componentid} |
string |
The ID of the temperature room control setpoint. This ID changes if you change any settings in enteliWEB. To find out the component ID, perform a GET of the component list. |
Requires Authentication
Assumes request is made during a session that has not expired.
In the authorization header, add X-Csrf-Token: {_csrfToken} where {_csrfToken} is the CSRF token generated when you make a basic login GET request.
{ "$base": "Real", "value": "75", "errorText": "OK", "error": "-1" }
PUT Blinds Angle
Change the angle of the blinds.
https://{enteliWEB Server IP Address}/enteliweb/api/rooms/{roomId}/components/{componentid}/controlpoints/angle?&alt=json
In the body of the request, add:
{ "base": "Real", "value": "new blind angle value" }
Request Body Parameters
| Name | Data Type | Description |
|---|---|---|
|
{roomId} |
string |
The O3 room ID. To find out the room ID, perform a GET of the room list. |
|
{componentid} |
string |
The ID of the temperature room control setpoint. This ID changes if you change any settings in enteliWEB. To find out the component ID, perform a GET of the component list. |
Requires Authentication
Assumes request is made during a session that has not expired.
In the authorization header, add X-Csrf-Token: {_csrfToken} where {_csrfToken} is the CSRF token generated when you make a basic login GET request.
{ "$base": "Real", "value": "40", "errorText": "OK", "error": "-1" }
PUT Fan
Change the fan state in the room.
https://{enteliWEB Server IP Address}/enteliweb/api/rooms/{roomId}/components/{componentid}/controlpoints/fan?&alt=json
In the body of the request, add:
{ "base": "String", "value": "new fan state" }
Request Body Parameters
| Name | Data Type | Description |
|---|---|---|
|
{roomId} |
string |
The O3 room ID. To find out the room ID, perform a GET of the room list. |
|
{componentid} |
string |
The ID of the temperature room control setpoint. This ID changes if you change any settings in enteliWEB. To find out the component ID, perform a GET of the component list. |
Requires Authentication
Assumes request is made during a session that has not expired.
In the authorization header, add X-Csrf-Token: {_csrfToken} where {_csrfToken} is the CSRF token generated when you make a basic login GET request.
{ "$base": "String", "value": "new fan state", "errorText": "OK", "error": "-1" }
|
|
| © 2019 Delta Controls O3 Room REST API Version 1.0 |