Access this instance at HomeyAPIV3Cloud.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 | In   | 
    
        
        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 | In   | 
    
| 
         | 
    
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 | In   | 
    
        
        groupId
        
       | 
      
      string | In   | 
    
| 
         | 
    
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 | In   | 
    
        
        deviceId
        
       | 
      
      string | In   | 
    
| 
         | 
    
Returns
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 | In   | 
    
| 
         | 
    
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 | In   | 
    
| 
         | 
    
Returns
getDevices
(async) getDevices(): Promise.<Object.<string, HomeyAPIV3Cloud.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
hideDeviceFromExternalService
(async) hideDeviceFromExternalService(opts): Promise.<any>Scopes
homey.device
HTTP
PUT /api/manager/devices/device/:id/external-service-hide
Parameters
| Name | Type | Description | 
|---|---|---|
        
        opts
        
       | 
      
      object | |
        
        id
        
       | 
      
      string | In   | 
    
        
        service
        
       | 
      
      string | In   | 
    
| 
         | 
    
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 | In   | 
    
        
        deviceId
        
       | 
      
      string | In   | 
    
        
        value
        
       | 
      
      string | number | boolean | In   | 
    
        
        opts
        
       | 
      
      
        
        
object
        
        
        
        <optional> | 
      In   | 
    
        
        transactionId
        
       | 
      
      
        
        
string
        
        
        
        <optional> | 
      In   | 
    
| 
         | 
    
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 | In   | 
    
        
        settings
        
       | 
      
      object | In   | 
    
| 
         | 
    
Returns
unhideDeviceFromExternalService
(async) unhideDeviceFromExternalService(opts): Promise.<any>Scopes
homey.device
HTTP
PUT /api/manager/devices/device/:id/external-service-unhide
Parameters
| Name | Type | Description | 
|---|---|---|
        
        opts
        
       | 
      
      object | |
        
        id
        
       | 
      
      string | In   | 
    
        
        service
        
       | 
      
      string | In   | 
    
| 
         | 
    
Returns
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 | In   | 
    
        
        device
        
       | 
      
      object | In   | 
    
        
        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 | In   | 
    
        
        group
        
       | 
      
      object | In   | 
    
        
        name
        
       | 
      
      
        
        
string
        
        
        
        <optional> | 
      |
        
        deviceIds
        
       | 
      
      
        
        
array
        
        
        
        <optional> | 
      |
        
        iconOverride
        
       | 
      
      
        
        
string
        
        
        
        <optional> | 
      |
        
        iconDeviceId
        
       | 
      
      
        
        
string
        
        
        
        <optional> | 
      |
| 
         | 
    ||
| 
         | 
    
Returns
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 |