Access this instance at HomeyAPIV3Local.devices
.
Extends
- HomeyAPIV3.ManagerDevices
Classes
Instance Methods
createGroup
(async) createGroup(opts): Promise.<any>Scopes
homey.device
HTTP
POST /api/manager/devices/group
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
group
|
object | |
name
|
string | |
class
|
string | |
zoneId
|
string | |
deviceIds
|
array | |
iconOverride
|
string
<optional> |
|
iconDeviceId
|
string
<optional> |
|
|
||
|
Returns
deleteDevice
(async) deleteDevice(opts)Scopes
homey.device
HTTP
DELETE /api/manager/devices/device/:id
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
id
|
string | |
|
deleteDeviceFromGroup
(async) deleteDeviceFromGroup(opts): Promise.<any>Scopes
homey.device
HTTP
DELETE /api/manager/devices/group/:groupId/device/:deviceId
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
deviceId
|
string | |
groupId
|
string | |
|
Returns
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
getDevice
(async) getDevice(opts): Promise.<HomeyAPIV3Local.ManagerDevices.Device>Scopes
homey.device.readonly
HTTP
GET /api/manager/devices/device/:id
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
id
|
string | |
|
Returns
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
getDevices
(async) getDevices(): Promise.<Object.<string, HomeyAPIV3Local.ManagerDevices.Device>>Scopes
homey.device.readonly
HTTP
GET /api/manager/devices/device
Returns
getState
(async) getState(): Promise.<any>Scopes
homey.system.readonly
HTTP
GET /api/manager/devices/state
Returns
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
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
updateDevice
(async) updateDevice(opts): Promise.<HomeyAPIV3Local.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> |
|
hidden
|
boolean
<optional> |
|
|
||
|
Returns
updateGroup
(async) updateGroup(opts): Promise.<any>Scopes
homey.device
HTTP
PUT /api/manager/devices/group/:id
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
id
|
string | |
group
|
object | |
name
|
string
<optional> |
|
deviceIds
|
array
<optional> |
|
iconOverride
|
string
<optional> |
|
iconDeviceId
|
string
<optional> |
|
|
||
|
Returns
Events
capability.create
.on('capability.create')Parameters
Name | Type | Description |
---|---|---|
capability
|
HomeyAPIV3Local.ManagerDevices.Capability |
capability.delete
.on('capability.delete')Parameters
Name | Type | Description |
---|---|---|
capability
|
HomeyAPIV3Local.ManagerDevices.Capability |
capability.update
.on('capability.update')Parameters
Name | Type | Description |
---|---|---|
capability
|
HomeyAPIV3Local.ManagerDevices.Capability |
device.create
.on('device.create')Parameters
Name | Type | Description |
---|---|---|
device
|
HomeyAPIV3Local.ManagerDevices.Device |
device.delete
.on('device.delete')Parameters
Name | Type | Description |
---|---|---|
device
|
HomeyAPIV3Local.ManagerDevices.Device |
device.update
.on('device.update')Parameters
Name | Type | Description |
---|---|---|
device
|
HomeyAPIV3Local.ManagerDevices.Device |