ManagerCloud

You can access this manager through the Homey instance as this.homey.cloud

Methods

createOAuth2Callback

(async) createOAuth2Callback(apiUrl): Promise.<CloudOAuth2Callback>

Generate a OAuth2 Callback

Parameters

Name Type Description
apiUrl
string

Returns

createWebhook

(async) createWebhook(id, secret, data): Promise.<CloudWebhook>

Parameters

Name Type Description
id
string

Webhook ID

secret
string

Webhook Secret

data
object

Webhook Data

Returns

Promise.<CloudWebhook>

getHomeyId

(async) getHomeyId(): Promise.<string>

Get Homey's Cloud ID

Returns

A promise that resolves to the cloud id

Promise.<string>

getLocalAddress

(async) getLocalAddress(): Promise.<string>

Get Homey's local address & port

Returns

A promise that resolves to the local address

Promise.<string>

unregisterWebhook

(async) unregisterWebhook(webhook): Promise.<any>

Unregister a webhook

Parameters

Name Type Description
webhook
CloudWebhook

Returns

Promise.<any>