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

Update lamp switches

Update one or more switches of a customer. Field communication job will be triggered if successful.

API endpoint

switch/slcID of customer

Request method

PUT

Request headers

-

Request URL parameters

-

Request content

EntityTypeNullableDescription
switcharray (mainEntity)noIf your request only contains one switch, you cann assign the object maainEntity directly. No array needed in this case.

mainEntity

EntityTypeNullableDescription
idintnoslcID of switch
switch_idintnoswitch number
namestringyesname of switch
brightnessintnobrightness if active
stateboolnois active
permanentboolnopersistent switch state
modeintno0 = OFF | 1 = Relative brightness | 2 = Absolute brightness | 3 = Blink

Request example

{
	"switch": [{
		"id": 3,
		"name": "99%",
		"brightness": 99,
		"state": true
	}]
}