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 motion data

Get energy data.

API endpoint

deviceMotion/slcID of customer

Request method

GET

Request headers

-

Request URL parameters

Limit by devices

You may restrict result by a comme delimited list of slcIDs of devices. No comma at the beginning or end of this list.

device=1578,1579

Limit number of records

You may restrict the number of records each device will return. You will always get the newest records first. Default limit is 10'000.

limit=100

Limit by time

You may restrict the recordset by start time and/oder end time. Timeconstraints are local time.

from=2017-11-25T08:00:35
to=2017-11-25T15:00:35

Response content

EntityTypeNullableDescription
deviceMotionarray (mainEntity)no

mainEntity

EntityTypeNullableDescription
device_idintnoslcID of device
motion_counterintnomotion counter
sample_timedatetimenodate of sample

Response: example in XML

<?xml version="1.0" encoding="UTF-8" ?>
<slControl>
	<deviceMotion>
		<device_id>354</device_id>
		<motion_counter>150</motion_counter>
		<sample_time>2018-05-01 00:00:00</sample_time>
	</deviceMotion>
	<deviceMotion>
		<device_id>354</device_id>
		<motion_counter>120</motion_counter>
		<sample_time>2018-04-02 00:00:00</sample_time>
	</deviceMotion>
</slControl>

Response: example in JSON

{
	"deviceMotion": [{
		"device_id": "354",
		"motion_counter": "150",
		"sample_time": "2018-05-01 00:00:00"
	}, {
		"device_id": "354",
		"motion_counter": "120",
		"sample_time": "2018-04-02 00:00:00"
	}]
}