Access this instance at HomeyAPIV3Cloud.devices
.
Extends
- HomeyAPIV3.ManagerDevices
Classes
Instance Methods
deleteDevice
(async) deleteDevice(opts)Scopes
homey.device
HTTP
DELETE /api/manager/devices/device/:id
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
id
|
string | |
|
getCapabilityValue
(async) getCapabilityValue(opts): Promise.<any>Scopes
homey.device.readonly
HTTP
GET /api/manager/devices/device/:deviceId/capability/:capabilityId
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
capabilityId
|
string | |
deviceId
|
string | |
|
Returns
Promise.<any>
getDevice
(async) getDevice(opts): Promise.<HomeyAPIV3Cloud.ManagerDevices.Device>Scopes
homey.device.readonly
HTTP
GET /api/manager/devices/device/:id
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
id
|
string | |
|
Returns
Promise.<HomeyAPIV3Cloud.ManagerDevices.Device>
getDeviceSettingsObj
(async) getDeviceSettingsObj(opts): Promise.<any>Scopes
homey.device.readonly
HTTP
GET /api/manager/devices/device/:id/settings_obj
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
id
|
string | |
|
Returns
Promise.<any>
getDevices
(async) getDevices(): Promise.<Object.<string, HomeyAPIV3Cloud.ManagerDevices.Device>>Scopes
homey.device.readonly
HTTP
GET /api/manager/devices/device
Returns
Promise.<Object.<string, HomeyAPIV3Cloud.ManagerDevices.Device>>
getState
(async) getState(): Promise.<any>Scopes
homey.system.readonly
HTTP
GET /api/manager/devices/state
Returns
Promise.<any>
setCapabilityValue
(async) setCapabilityValue(opts): Promise.<any>Scopes
homey.device.control
HTTP
PUT /api/manager/devices/device/:deviceId/capability/:capabilityId
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
capabilityId
|
string | |
deviceId
|
string | |
value
|
string | number | boolean | |
opts
|
object
<optional> |
|
transactionId
|
string
<optional> |
|
|
Returns
Promise.<any>
setDeviceSettings
(async) setDeviceSettings(opts): Promise.<any>Scopes
homey.device
HTTP
PUT /api/manager/devices/device/:id/settings
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
id
|
string | |
settings
|
object | |
|
Returns
Promise.<any>
updateDevice
(async) updateDevice(opts): Promise.<HomeyAPIV3Cloud.ManagerDevices.Device>Scopes
homey.device
HTTP
PUT /api/manager/devices/device/:id
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
id
|
string | |
device
|
object | |
name
|
string
<optional> |
|
zone
|
string
<optional> |
|
note
|
string
<optional> |
|
iconOverride
|
string
<optional> |
|
virtualClass
|
string
<optional> |
|
uiIndicator
|
string
<optional> |
|
|
||
|
Returns
Promise.<HomeyAPIV3Cloud.ManagerDevices.Device>
Events
capability.create
.on('capability.create')Parameters
Name | Type | Description |
---|---|---|
capability
|
HomeyAPIV3Cloud.ManagerDevices.Capability |
capability.delete
.on('capability.delete')Parameters
Name | Type | Description |
---|---|---|
capability
|
HomeyAPIV3Cloud.ManagerDevices.Capability |
capability.update
.on('capability.update')Parameters
Name | Type | Description |
---|---|---|
capability
|
HomeyAPIV3Cloud.ManagerDevices.Capability |
device.create
.on('device.create')Parameters
Name | Type | Description |
---|---|---|
device
|
HomeyAPIV3Cloud.ManagerDevices.Device |
device.delete
.on('device.delete')Parameters
Name | Type | Description |
---|---|---|
device
|
HomeyAPIV3Cloud.ManagerDevices.Device |
device.update
.on('device.update')Parameters
Name | Type | Description |
---|---|---|
device
|
HomeyAPIV3Cloud.ManagerDevices.Device |