Skip to content

Generic REST Server

The Generic REST Server export module provides a REST service via HTTP and HTTPS using the Generic IoT Data Model.

This is a “single service” module, so only one export instance can be created.

The module can be activated via the “IoT Export” area in the web configuration or the BSC Remote and the “x-api-key” can be stored.

The service is provided at the following URL:

https://<IP>/iot/export/generic/things

When activating the module, an “x-api-key” can be configured. This is filled with a random string by default.

If an empty string is stored, access is not protected.

Otherwise the key stored there must be sent with every request in the header field “x-api-key”.

The entry point is the /things end point. There all devices are listed with detailed information.

The other endpoints are used to read out specific information from a device or to make a value change.

Get a list of all available devices Objects

Code examples
curl --location --request GET 'https://<IP>/iot/export/generic/things' \
--header 'Accept: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://<IP>/iot/export/generic/things',
'headers': {
'Accept': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://<IP>/iot/export/generic/things", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
import requests
url = "https://<IP>/iot/export/generic/things"
payload={}
headers = {
'Accept': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "net/http"
url = URI("https://<IP>/iot/export/generic/things")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
response = https.request(request)
puts response.read_body
Responses
[{
"id": "b9f09ef8-3c3f-459e-841f-66bdaedff183",
"name": "FSB14",
"channelGroups": [{
"channelGroupId": "Sensor Group",
"channelDescriptionData": null,
"channels": [{
"channelId": "Jalousie",
"channelDescriptionData": {
"channelTypeEnum": "SHADING",
"label": {
"de_DE": "Jalousie",
"en_US": "shutters"
}
},
"value": "0.0",
"valueDescriptionData": {
"valueType": "NUMBER_DOUBLE",
"unit": "%",
"min": 0.0,
"max": 100.0,
"stepping": 1.0,
"decimalPartDigits": 1,
"possibleValues": null
},
"writeable": false,
"metaInfos": {
"METAINFO->id": "ASensor#b9f09ef8-3c3f-459e-841f-66bdaedff183#Jalousie",
"MESSAGE->COUNT": "0",
"EOAP->CHANGEABLE": "true",
"MESSAGE->ENABLED": "false",
"Sensor.Name": "Jalousie",
"TSYSTEMS->type": "value"
}
}, {
"channelId": "JalousieState",
"channelDescriptionData": {
"channelTypeEnum": "SHADING",
"label": {
"de_DE": "Jalousie",
"en_US": "shutters"
}
},
"value": "UNKNOWN",
"valueDescriptionData": {
"valueType": "STATE",
"unit": null,
"min": null,
"max": null,
"stepping": null,
"decimalPartDigits": null,
"possibleValues": {
"UNKNOWN": {
"de_DE": "Unbekannt",
"en_US": "unknown"
},
"UP": {
"de_DE": "Herauf",
"en_US": "up"
},
"DOWN": {
"de_DE": "Herunter",
"en_US": "down"
}
}
},
"writeable": false,
"metaInfos": {
"METAINFO->id": "ASensor#b9f09ef8-3c3f-459e-841f-66bdaedff183#JalousieState",
"MESSAGE->COUNT": "0",
"EOAP->CHANGEABLE": "false",
"MESSAGE->ENABLED": "false",
"Sensor.Name": "Direction",
"TSYSTEMS->type": "state"
}
}, {
"channelId": "Priority",
"channelDescriptionData": {
"channelTypeEnum": "SWITCH",
"label": {
"de_DE": "Priorität",
"en_US": "priority"
}
},
"value": "OFF",
"valueDescriptionData": {
"valueType": "STATE",
"unit": null,
"min": null,
"max": null,
"stepping": null,
"decimalPartDigits": null,
"possibleValues": {
"UNKNOWN": {
"de_DE": "Unbekannt",
"en_US": "unknown"
},
"ON": {
"de_DE": "An",
"en_US": "on"
},
"OFF": {
"de_DE": "Aus",
"en_US": "off"
}
}
},
"writeable": false,
"metaInfos": {
"METAINFO->id": "ASensor#b9f09ef8-3c3f-459e-841f-66bdaedff183#Priority",
"MESSAGE->COUNT": "0",
"EOAP->CHANGEABLE": "true",
"MESSAGE->ENABLED": "false",
"Sensor.Name": "Priority",
"TSYSTEMS->type": "state"
}
}, {
"channelId": "JalousieSlat",
"channelDescriptionData": {
"channelTypeEnum": "SHADING",
"label": {
"de_DE": "Jalousie (Lamellen)",
"en_US": "shutters (slats)"
}
},
"value": "UNKNOWN",
"valueDescriptionData": {
"valueType": "STATE",
"unit": null,
"min": null,
"max": null,
"stepping": null,
"decimalPartDigits": null,
"possibleValues": {
"UNKNOWN": {
"de_DE": "Unbekannt",
"en_US": "unknown"
},
"UP": {
"de_DE": "Herauf",
"en_US": "up"
},
"DOWN": {
"de_DE": "Herunter",
"en_US": "down"
}
}
},
"writeable": false,
"metaInfos": {
"METAINFO->id": "ASensor#b9f09ef8-3c3f-459e-841f-66bdaedff183#JalousieSlat",
"MESSAGE->COUNT": "0",
"EOAP->CHANGEABLE": "true",
"MESSAGE->ENABLED": "false",
"Sensor.Name": "JalousieSlat",
"TSYSTEMS->type": "state"
}
}]
}],
"state": "ONLINE",
"parameterGroups": null,
"metaInfos": {
"ALEXA->ALEXA_LIVE_UPDATES": "false",
"MONITORING->MONITORABLE": "true",
"TEACHIN->GROUP_DISPLAYNAME": "Test",
"BSC->SHORT_INFO": "FSB14",
"METAINFO->id": "ADevice#b9f09ef8-3c3f-459e-841f-66bdaedff183",
"TEACHIN->REFERENCE_ID": "enocean.eltako.fsb14",
"EOAP->ACTIVATED": "true",
"TEACHIN->TRANSMISSION_ID": "default=4291820288",
"lastModified": "1636489756075",
"EOAP->ALARM": "false"
}
}, {
"id": "97229120-d93b-41c6-9bf3-5a41cfcadb38",
"name": "fsr",
"channelGroups": [{
"channelGroupId": "Sensor Group",
"channelDescriptionData": null,
"channels": [{
"channelId": "Switch",
"channelDescriptionData": {
"channelTypeEnum": "SWITCH",
"label": {
"de_DE": "Schalter",
"en_US": "switch"
}
},
"value": "UNKNOWN",
"valueDescriptionData": {
"valueType": "STATE",
"unit": null,
"min": null,
"max": null,
"stepping": null,
"decimalPartDigits": null,
"possibleValues": {
"UNKNOWN": {
"de_DE": "Unbekannt",
"en_US": "unknown"
},
"ON": {
"de_DE": "An",
"en_US": "on"
},
"OFF": {
"de_DE": "Aus",
"en_US": "off"
}
}
},
"writeable": false,
"metaInfos": {
"METAINFO->id": "ASensor#97229120-d93b-41c6-9bf3-5a41cfcadb38#Switch",
"MESSAGE->COUNT": "0",
"EOAP->CHANGEABLE": "true",
"MESSAGE->ENABLED": "false",
"Sensor.Name": "On",
"TSYSTEMS->type": "state"
}
}, {
"channelId": "Priority",
"channelDescriptionData": {
"channelTypeEnum": "SWITCH",
"label": {
"de_DE": "Priorität",
"en_US": "priority"
}
},
"value": "OFF",
"valueDescriptionData": {
"valueType": "STATE",
"unit": null,
"min": null,
"max": null,
"stepping": null,
"decimalPartDigits": null,
"possibleValues": {
"UNKNOWN": {
"de_DE": "Unbekannt",
"en_US": "unknown"
},
"ON": {
"de_DE": "An",
"en_US": "on"
},
"OFF": {
"de_DE": "Aus",
"en_US": "off"
}
}
},
"writeable": false,
"metaInfos": {
"METAINFO->id": "ASensor#97229120-d93b-41c6-9bf3-5a41cfcadb38#Priority",
"MESSAGE->COUNT": "0",
"EOAP->CHANGEABLE": "true",
"MESSAGE->ENABLED": "false",
"Sensor.Name": "Priority",
"TSYSTEMS->type": "state"
}
}]
}],
"state": "ONLINE",
"parameterGroups": null,
"metaInfos": {
"ALEXA->ALEXA_LIVE_UPDATES": "false",
"MONITORING->MONITORABLE": "true",
"TEACHIN->GROUP_DISPLAYNAME": "test2",
"BSC->SHORT_INFO": "fsr",
"METAINFO->id": "ADevice#97229120-d93b-41c6-9bf3-5a41cfcadb38",
"TEACHIN->REFERENCE_ID": "enocean.eltako.fsr14",
"EOAP->ACTIVATED": "true",
"TEACHIN->TRANSMISSION_ID": "default=4291820289",
"lastModified": "1636489753561",
"EOAP->ALARM": "false"
}
}]

Retrieve a single device object by its ID.

Code examples
curl --location -g --request GET 'https://<ip>/iot/export/generic/things/{thingId}' \
--header 'Accept: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://<ip>/iot/export/generic/things/{thingId}',
'headers': {
'Accept': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://<ip>/iot/export/generic/things/{thingId}", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
import requests
url = "https://<ip>/iot/export/generic/things/{thingId}"
payload={}
headers = {
'Accept': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "net/http"
url = URI("https://<ip>/iot/export/generic/things/{thingId}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
response = https.request(request)
puts response.read_body
Responses
{
"id": "b9f09ef8-3c3f-459e-841f-66bdaedff183",
"name": "FSB14",
"channelGroups": [{
"channelGroupId": "Sensor Group",
"channelDescriptionData": null,
"channels": [{
"channelId": "Jalousie",
"channelDescriptionData": {
"channelTypeEnum": "SHADING",
"label": {
"de_DE": "Jalousie",
"en_US": "shutters"
}
},
"value": "0.0",
"valueDescriptionData": {
"valueType": "NUMBER_DOUBLE",
"unit": "%",
"min": 0.0,
"max": 100.0,
"stepping": 1.0,
"decimalPartDigits": 1,
"possibleValues": null
},
"writeable": false,
"metaInfos": {
"METAINFO->id": "ASensor#b9f09ef8-3c3f-459e-841f-66bdaedff183#Jalousie",
"MESSAGE->COUNT": "0",
"EOAP->CHANGEABLE": "true",
"MESSAGE->ENABLED": "false",
"Sensor.Name": "Jalousie",
"TSYSTEMS->type": "value"
}
}, {
"channelId": "JalousieState",
"channelDescriptionData": {
"channelTypeEnum": "SHADING",
"label": {
"de_DE": "Jalousie",
"en_US": "shutters"
}
},
"value": "UNKNOWN",
"valueDescriptionData": {
"valueType": "STATE",
"unit": null,
"min": null,
"max": null,
"stepping": null,
"decimalPartDigits": null,
"possibleValues": {
"UNKNOWN": {
"de_DE": "Unbekannt",
"en_US": "unknown"
},
"UP": {
"de_DE": "Herauf",
"en_US": "up"
},
"DOWN": {
"de_DE": "Herunter",
"en_US": "down"
}
}
},
"writeable": false,
"metaInfos": {
"METAINFO->id": "ASensor#b9f09ef8-3c3f-459e-841f-66bdaedff183#JalousieState",
"MESSAGE->COUNT": "0",
"EOAP->CHANGEABLE": "false",
"MESSAGE->ENABLED": "false",
"Sensor.Name": "Direction",
"TSYSTEMS->type": "state"
}
}, {
"channelId": "Priority",
"channelDescriptionData": {
"channelTypeEnum": "SWITCH",
"label": {
"de_DE": "Priorität",
"en_US": "priority"
}
},
"value": "OFF",
"valueDescriptionData": {
"valueType": "STATE",
"unit": null,
"min": null,
"max": null,
"stepping": null,
"decimalPartDigits": null,
"possibleValues": {
"UNKNOWN": {
"de_DE": "Unbekannt",
"en_US": "unknown"
},
"ON": {
"de_DE": "An",
"en_US": "on"
},
"OFF": {
"de_DE": "Aus",
"en_US": "off"
}
}
},
"writeable": false,
"metaInfos": {
"METAINFO->id": "ASensor#b9f09ef8-3c3f-459e-841f-66bdaedff183#Priority",
"MESSAGE->COUNT": "0",
"EOAP->CHANGEABLE": "true",
"MESSAGE->ENABLED": "false",
"Sensor.Name": "Priority",
"TSYSTEMS->type": "state"
}
}, {
"channelId": "JalousieSlat",
"channelDescriptionData": {
"channelTypeEnum": "SHADING",
"label": {
"de_DE": "Jalousie (Lamellen)",
"en_US": "shutters (slats)"
}
},
"value": "UNKNOWN",
"valueDescriptionData": {
"valueType": "STATE",
"unit": null,
"min": null,
"max": null,
"stepping": null,
"decimalPartDigits": null,
"possibleValues": {
"UNKNOWN": {
"de_DE": "Unbekannt",
"en_US": "unknown"
},
"UP": {
"de_DE": "Herauf",
"en_US": "up"
},
"DOWN": {
"de_DE": "Herunter",
"en_US": "down"
}
}
},
"writeable": false,
"metaInfos": {
"METAINFO->id": "ASensor#b9f09ef8-3c3f-459e-841f-66bdaedff183#JalousieSlat",
"MESSAGE->COUNT": "0",
"EOAP->CHANGEABLE": "true",
"MESSAGE->ENABLED": "false",
"Sensor.Name": "JalousieSlat",
"TSYSTEMS->type": "state"
}
}]
}],
"state": "ONLINE",
"parameterGroups": null,
"metaInfos": {
"ALEXA->ALEXA_LIVE_UPDATES": "false",
"MONITORING->MONITORABLE": "true",
"TEACHIN->GROUP_DISPLAYNAME": "Test",
"BSC->SHORT_INFO": "FSB14",
"METAINFO->id": "ADevice#b9f09ef8-3c3f-459e-841f-66bdaedff183",
"TEACHIN->REFERENCE_ID": "enocean.eltako.fsb14",
"EOAP->ACTIVATED": "true",
"TEACHIN->TRANSMISSION_ID": "default=4291820288",
"lastModified": "1636489756075",
"EOAP->ALARM": "false"
}
}

Retrieving the current connection status by means of a device ID

Code examples
curl --location -g --request GET 'https://<ip>/iot/export/generic/things/{thingId}/state' \
--header 'Accept: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://<ip>/iot/export/generic/things/{thingId}/state',
'headers': {
'Accept': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://<ip>/iot/export/generic/things/{thingId}/state", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
import requests
url = "https://<ip>/iot/export/generic/things/{thingId}/state}"
payload={}
headers = {
'Accept': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "net/http"
url = URI("https://<ip>/iot/export/generic/things/{thingId}/state")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
response = https.request(request)
puts response.read_body
Responses
{
"state":"Online"
}

Retrieve the meta information of a device by its ID

Code examples
curl --location -g --request GET 'https://<ip>/iot/export/generic/things/{thingId}/metaInfos' \
--header 'Accept: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://<ip>/iot/export/generic/things/{thingId}/metaInfos',
'headers': {
'Accept': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://<ip>/iot/export/generic/things/{thingId}/metaInfos", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
import requests
url = "https://<ip>/iot/export/generic/things/{thingId}/metaInfos}"
payload={}
headers = {
'Accept': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "net/http"
url = URI("https://<ip>/iot/export/generic/things/{thingId}/metaInfos")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
response = https.request(request)
puts response.read_body
Responses
{
"ALEXA->ALEXA_LIVE_UPDATES": "false",
"MONITORING->MONITORABLE": "true",
"TEACHIN->GROUP_DISPLAYNAME": "Test",
"BSC->SHORT_INFO": "FSB14",
"METAINFO->id": "ADevice#b9f09ef8-3c3f-459e-841f-66bdaedff183",
"TEACHIN->REFERENCE_ID": "enocean.eltako.fsb14",
"EOAP->ACTIVATED": "true",
"TEACHIN->TRANSMISSION_ID": "default=4291820288",
"lastModified": "1636489756075",
"EOAP->ALARM": "false"
}

Retrieving the channel object by means of the device and channel ID

Code examples
curl --location -g --request GET 'https://<ip>/iot/export/generic/things/{thingId}/{channelId}' \
--header 'Accept: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://<ip>/iot/export/generic/things/{thingId}/{channelId}',
'headers': {
'Accept': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://<ip>/iot/export/generic/things/{thingId}/{channelId}", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
import requests
url = "https://<ip>/iot/export/generic/things/{thingId}/{channelId}"
payload={}
headers = {
'Accept': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "net/http"
url = URI("https://<ip>/iot/export/generic/things/{thingId}/{channelId}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
response = https.request(request)
puts response.read_body
Responses
{
"channelId": "Jalousie",
"channelDescriptionData": {
"channelTypeEnum": "SHADING",
"label": {
"de_DE": "Jalousie",
"en_US": "shutters"
}
},
"value": "0.0",
"valueDescriptionData": {
"valueType": "NUMBER_DOUBLE",
"unit": "%",
"min": 0.0,
"max": 100.0,
"stepping": 1.0,
"decimalPartDigits": 1,
"possibleValues": null
},
"writeable": false,
"metaInfos": {
"METAINFO->id": "ASensor#b9f09ef8-3c3f-459e-841f-66bdaedff183#Jalousie",
"MESSAGE->COUNT": "0",
"EOAP->CHANGEABLE": "true",
"MESSAGE->ENABLED": "false",
"Sensor.Name": "Jalousie",
"TSYSTEMS->type": "value"
}
}

Retrieve the current channel value based on the device and channel ID

Code examples
curl --location -g --request GET 'https://<ip>/iot/export/generic/things/{thingId}/{channelId}/value' \
--header 'Accept: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://<ip>/iot/export/generic/things/{thingId}/{channelId}/value',
'headers': {
'Accept': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://<ip>/iot/export/generic/things/{thingId}/{channelId}/value", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
import requests
url = "https://<ip>/iot/export/generic/things/{thingId}/{channelId}/value"
payload={}
headers = {
'Accept': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "net/http"
url = URI("https://<ip>/iot/export/generic/things/{thingId}/{channelId}/value")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
response = https.request(request)
puts response.read_body
Responses
{
"value": "0.0"
}

Sets the value of the channel specified via the devices and channel ID

Code examples
curl --location -g --request POST 'https://<ip>/iot/export/generic/things/{thingId}/{channelId}/value/set' \
--header 'Accept: application/json' \
--data-raw '{newValue}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://<ip>/iot/export/generic/things/{thingId}/{channelId}/value/set',
'headers': {
'Accept': 'application/json'
},
body: '{newValue}'
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
var raw = "{newValue}";
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://<ip>/iot/export/generic/things/{thingId}/{channelId}/value/set", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
import requests
url = "https://<ip>/iot/export/generic/things/{thingId}/{channelId}/value/set"
payload = "{newValue}"
headers = {
'Accept': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "net/http"
url = URI("https://<ip>/iot/export/generic/things/{thingId}/{channelId}/value/set")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Accept"] = "application/json"
request.body = "{newValue}"
response = https.request(request)
puts response.read_body

Retrieving the meta information of a channel by means of the device and channel ID

Code examples
curl --location -g --request GET 'https://<ip>/iot/export/generic/things/{thingId}/{channelId}/metaInfos' \
--header 'Accept: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://<ip>/iot/export/generic/things/{thingId}/{channelId}/metaInfos',
'headers': {
'Accept': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://<ip>/iot/export/generic/things/{thingId}/{channelId}/metaInfos", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
import requests
url = "https://<ip>/iot/export/generic/things/{thingId}/{channelId}/metaInfos"
payload={}
headers = {
'Accept': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "net/http"
url = URI("https://<ip>/iot/export/generic/things/{thingId}/{channelId}/metaInfos")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
response = https.request(request)
puts response.read_body
Responses
{
"METAINFO->id": "ASensor#b9f09ef8-3c3f-459e-841f-66bdaedff183#Jalousie",
"MESSAGE->COUNT": "0",
"EOAP->CHANGEABLE": "true",
"MESSAGE->ENABLED": "false",
"Sensor.Name": "Jalousie",
"TSYSTEMS->type": "value"
}

Retrieving the values Description of a channel by means of the devices and channel ID

Code examples
curl --location -g --request GET 'https://<ip>/iot/export/generic/things/{thingId}/{channelId}/valueDescriptionData' \
--header 'Accept: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://<ip>/iot/export/generic/things/{thingId}/{channelId}/valueDescriptionData',
'headers': {
'Accept': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://<ip>/iot/export/generic/things/{thingId}/{channelId}/valueDescriptionData", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
import requests
url = "https://<ip>/iot/export/generic/things/{thingId}/{channelId}/valueDescriptionData"
payload={}
headers = {
'Accept': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "net/http"
url = URI("https://<ip>/iot/export/generic/things/{thingId}/{channelId}/valueDescriptionData")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
response = https.request(request)
puts response.read_body
Responses
// Value
{
"valueType": "NUMBER_DOUBLE",
"unit": "%",
"min": 0.0,
"max": 100.0,
"stepping": 1.0,
"decimalPartDigits": 1,
"possibleValues": null
}
// State
{
"valueType": "STATE",
"unit": null,
"min": null,
"max": null,
"stepping": null,
"decimalPartDigits": null,
"possibleValues": {
"UNKNOWN": {
"de_DE": "Unbekannt",
"en_US": "unknown"
},
"ON": {
"de_DE": "An",
"en_US": "on"
},
"OFF": {
"de_DE": "Aus",
"en_US": "off"
}
}
}

Retrieving the channel description by means of the devices and channel ID

Code examples
curl --location -g --request GET 'https://<ip>/iot/export/generic/things/{thingId}/{channelId}/channelDescriptionData' \
--header 'Accept: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://<ip>/iot/export/generic/things/{thingId}/{channelId}/channelDescriptionData',
'headers': {
'Accept': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://<ip>/iot/export/generic/things/{thingId}/{channelId}/channelDescriptionData", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
import requests
url = "https://<ip>/iot/export/generic/things/{thingId}/{channelId}/channelDescriptionData"
payload={}
headers = {
'Accept': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "net/http"
url = URI("https://<ip>/iot/export/generic/things/{thingId}/{channelId}/channelDescriptionData")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
response = https.request(request)
puts response.read_body
Responses
{
"channelTypeEnum": "SHADING",
"label": {
"de_DE": "Jalousie",
"en_US": "shutters"
}
}

Query whether the value of a channel can be changed

Code examples
curl --location -g --request GET 'https://<ip>/iot/export/generic/things/{thingId}/{channelId}/writable' \
--header 'Accept: application/json'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://<ip>/iot/export/generic/things/{thingId}/{channelId}/writable',
'headers': {
'Accept': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://<ip>/iot/export/generic/things/{thingId}/{channelId}/writable", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
import requests
url = "https://<ip>/iot/export/generic/things/{thingId}/{channelId}/writable"
payload={}
headers = {
'Accept': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "net/http"
url = URI("https://<ip>/iot/export/generic/things/{thingId}/{channelId}/writable")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
response = https.request(request)
puts response.read_body
Responses
{
"writable": false
}