ManagerImages

Extends

Classes

Methods

connect

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

Connect to the realtime namespace.

Returns

Promise.<void>

disconnect

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

Disconnect from the realtime namespace.

Returns

Promise.<void>

getImage

(async) getImage(opts): Promise.<HomeyAPIV2.ManagerImages.Image>

Scopes

homey.device

HTTP

GET /api/manager/images/image/:id

Parameters

Name Type Description
opts
object
id
string
}

Returns

getImages

(async) getImages(): Promise.<HomeyAPIV2.ManagerImages.Image>

Scopes

homey.device

HTTP

GET /api/manager/images/image

Returns

isConnected

isConnected(): Boolean

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

Returns

Boolean

Events

image.create

.on('image.create')

Parameters

Name Type Description
image
HomeyAPIV2.ManagerImages.Image

image.delete

.on('image.delete')

Parameters

Name Type Description
image
HomeyAPIV2.ManagerImages.Image

image.update

.on('image.update')

Parameters

Name Type Description
image
HomeyAPIV2.ManagerImages.Image