ManagerCloud

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

Table of Contents

Methods

(async) createOAuth2Callback(apiUrl) → {Promise.<CloudOAuth2Callback>}

Generate a OAuth2 Callback

Parameters:
Name Type Description
apiUrl string
Returns:
Type:
Promise.<CloudOAuth2Callback>

(async) createWebhook(id, secret, data) → {Promise.<CloudWebhook>}

Parameters:
Name Type Description
id string

Webhook ID

secret string

Webhook Secret

data object

Webhook Data

Returns:
Type:
Promise.<CloudWebhook>

(async) getHomeyId() → {Promise.<string>}

Get Homey's Cloud ID

Returns:
Type:
Promise.<string>

A promise that resolves to the cloud id

(async) getLocalAddress() → {Promise.<string>}

Get Homey's local address & port

Returns:
Type:
Promise.<string>

A promise that resolves to the local address

(async) unregisterWebhook(webhook) → {Promise.<any>}

Unregister a webhook

Parameters:
Name Type Description
webhook CloudWebhook
Returns:
Type:
Promise.<any>