ManagerDrivers

Extends

Classes

Methods

connect

(async) connect(): Promise.<void>

Connect to the realtime namespace.

Returns

Promise.<void>

createPairSession

(async) createPairSession(opts): Promise.<HomeyAPIV3Cloud.ManagerDrivers.PairSession>

Scopes

homey.device

HTTP

post /api/manager/drivers/pairsession

Parameters

Name Type Description
opts
object
pairsession
*
}

Returns

createPairSessionDevice

(async) createPairSessionDevice(opts): Promise.<any>

Scopes

homey.device

HTTP

post /api/manager/drivers/pairsession/:id/device

Parameters

Name Type Description
opts
object
id
string
device
*
}

Returns

Promise.<any>

deletePairSession

(async) deletePairSession(opts)

Scopes

homey.device

HTTP

delete /api/manager/drivers/pairsession/:id

Parameters

Name Type Description
opts
object
id
string
}

deletePairSessionDevice

(async) deletePairSessionDevice(opts): Promise.<any>

Scopes

homey.device

HTTP

delete /api/manager/drivers/pairsession/:id/device

Parameters

Name Type Description
opts
object
id
string
}

Returns

Promise.<any>

disconnect

(async) disconnect(): Promise.<void>

Disconnect from the realtime namespace.

Returns

Promise.<void>

emitPairingCallback

(async) emitPairingCallback(opts): Promise.<any>

Scopes

homey.device

HTTP

post /api/manager/drivers/pairsession/:id/callback

Parameters

Name Type Description
opts
object
id
string
callbackId
string
data
object
}

Returns

Promise.<any>

emitPairingEvent

(async) emitPairingEvent(opts): Promise.<any>

Scopes

homey.device

HTTP

post /api/manager/drivers/pairsession/:id/emit

Parameters

Name Type Description
opts
object
id
string
event
string
data
object
}

Returns

Promise.<any>

emitPairingHeartbeat

(async) emitPairingHeartbeat(opts): Promise.<any>

Scopes

homey.device

HTTP

post /api/manager/drivers/pairsession/:id/heartbeat

Parameters

Name Type Description
opts
object
id
string
}

Returns

Promise.<any>

getDrivers

(async) getDrivers(): Promise.<HomeyAPIV3Cloud.ManagerDrivers.Driver>

Scopes

homey.device.readonly

HTTP

get /api/manager/drivers/driver

Returns

getPairSession

(async) getPairSession(opts): Promise.<HomeyAPIV3Cloud.ManagerDrivers.PairSession>

Scopes

homey.device

HTTP

get /api/manager/drivers/pairsession/:id

Parameters

Name Type Description
opts
object
id
string
}

Returns

getState

(async) getState(): Promise.<any>

Scopes

homey.system.readonly

HTTP

get /api/manager/drivers/state

Returns

Promise.<any>

isConnected

isConnected(): Boolean

If this manager's namespace is connected to Socket.io.

Returns

Boolean

updatePairSessionDevice

(async) updatePairSessionDevice(opts): Promise.<any>

Scopes

homey.device

HTTP

put /api/manager/drivers/pairsession/:id/device

Parameters

Name Type Description
opts
object
id
string
device
*
}

Returns

Promise.<any>

Events

driver.create

.on('driver.create')

Parameters

Name Type Description
driver
HomeyAPIV3Cloud.ManagerDrivers.Driver

driver.delete

.on('driver.delete')

Parameters

Name Type Description
driver
HomeyAPIV3Cloud.ManagerDrivers.Driver

driver.update

.on('driver.update')

Parameters

Name Type Description
driver
HomeyAPIV3Cloud.ManagerDrivers.Driver

pairsession.create

.on('pairsession.create')

Parameters

Name Type Description
pairsession
HomeyAPIV3Cloud.ManagerDrivers.PairSession

pairsession.delete

.on('pairsession.delete')

Parameters

Name Type Description
pairsession
HomeyAPIV3Cloud.ManagerDrivers.PairSession

pairsession.update

.on('pairsession.update')

Parameters

Name Type Description
pairsession
HomeyAPIV3Cloud.ManagerDrivers.PairSession