DeviceControls

interface DeviceControls

Actions to get and configure Device info on the hue system.

Functions

Link copied to clipboard
abstract suspend fun deleteDevice(deviceId: ResourceId): ResourceReference

Delete an existing device from the hue bridge.

Link copied to clipboard
abstract suspend fun getDevice(deviceId: ResourceId): Device

Get a specific device by ID.

Link copied to clipboard
abstract suspend fun identifyDevice(deviceId: ResourceId): ResourceReference

Trigger a visual identification sequence on a device.

Link copied to clipboard
abstract suspend fun listDevices(): List<Device>

Get a list of available devices on the Hue Bridge.

Link copied to clipboard
abstract suspend fun updateDevice(deviceId: ResourceId, parameters: UpdateDeviceParameters): ResourceReference

Update a device's information.