slControl API

LogoutChangelog (26.08.2024)Legal notesBasic usageRequest EmulatorTroubleshooting
Global
Get list of accessible customersGet lookup tables for settingsGet lookup tables for devicesGet lookup tables for operationModeGet lookup tables for gatewaysGet lookup tables for jobsGet lookup tables for alerts
Customers
Get customer configurationUpdate customer configurationGet mesh network
Groups
Get group tree
Lamp switches
Get lamp switchesUpdate lamp switches
Luminaire points
Get luminaire pointsUpdate luminaire pointsCreate luminaire pointsDelete luminaire points
Devices
Get devicesGet device dataGet device stateUpdate device dataUpdate device operation stateGet operation modeUpdate operation modeDelete deviceDelete devices
Devices - Statistics/Logs
Get radar dataGet motion dataGet device energyGet environmental data
Gateways
Get gatewaysGet gateway dataCreate gatewaysDelete a gateway
Jobs
Get jobs state of a deviceGet job state by slcID
Alerts
Get alertsCreate alertsUpdate alerts

Get devices

This request delivers all devices of a certain customer.

API endpoint

device/list/slcID of customer

Request method

GET

Request headers

-

Request URL parameters

Format

This parameter is optional. Default is "json".

format=json|xml

Filter by attributes

This parameter is optional. Expects a comma separated list of values. Default is "base".

Please note that if you use "state", no base data will be delivered. Therefore use "base,state" as filter if you want base data to be included in this case.

data=base,state (base=base value attributes, state=state value attributes)

Filter by kind

This parameter is optional. No filter if missing. Expects a comma separated list of values.

kind=0,1 (0=conventional lamps, 1=intelligent lamps/sensors)

Filter by state

This parameter is optional. No filter if missing. Expects a comma separated list of values.

Please note that conventional lamps do not have an online state. You may filter them out with "kind=1" for now.

state=0,1 ... (see onlineState for possible values)

Response content

EntityTypeNullableDescription
customerarray (mainEntity)no

mainEntity

EntityTypeNullableDescription
customer_idintnoslcID of customer
device[]array (device)nolist of devices

device

EntityTypeNullableDescription
idintnoslcID of device
slcDeviceAddressintyesslcDeviceAddress
namestringyesname of device (base)
locationintyesslcID of node in tree (base)
luminaire_pointintyesslcID of luminaire point (base)
coordsarray (coords)nolocation (base)
online_status_idint (onlineState)nodevice online state (state)
last_connection_attimestampyeslast actualization of the device state data (state)
led_brightnessbyteyesled brightness in %

Please note that some attributes are dependent on data-filter (base/state).

coords

EntityTypeNullableDescription
latitudestringyeslatitude (WGS84)
longitudestringyeslongitude (WGS84)
xstringyesx (LV95)
ystringyesy (LV95)

onlineState

ValueDescription
0Unbekannt
1Verfügbar (Online)
2Nicht verfügbar (Offline)
3Inaktiv

Response: example in XML

<?xml version="1.0" encoding="UTF-8" ?>
<slControl>
	<customer>
		<customer_id>122</customer_id>
		<device>
			<id>18496</id>
			<name>Johann-Mutter-Str. 002</name>
			<location>2565</location>
			<luminaire_point>19049</luminaire_point>
			<coords>
				<latitude>48.046474456787</latitude>
				<longitude>10.873240470886</longitude>
			</coords>
		</device>
		<device>
			<id>19036</id>
			<name>Johann-Arnold-Strasse 009</name>
			<location>2621</location>
			<coords></coords>
		</device>
	</customer>
</slControl>

Response: example in JSON

{
	"customer": {
		"customer_id": "122",
		"device": [{
			"id": "18496",
			"name": "Johann-Mutter-Str. 002",
			"location": "2565",
			"luminaire_point": "19049",
			"coords": {
				"latitude": "48.046474456787",
				"longitude": "10.873240470886"
			}
		}, {
			"id": "19036",
			"name": "Johann-Arnold-Strasse 009",
			"location": "2621",
			"coords": {}
		}]
	}
}