ManagerCloud

Access this instance at HomeyAPIV3Cloud.cloud.

Extends

  • HomeyAPIV3.ManagerCloud

Classes

Instance Methods

emitOAuth2Callback

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

Scopes

-

HTTP

POST /api/manager/cloud/oauth2-callback

Parameters

Name Type Description
opts
object
app
string <optional>

In query

token
string <optional>

In body

code
string <optional>

In body

}

Returns

Promise.<any>

emitWebhookCallback

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

Scopes

-

HTTP

POST /api/manager/cloud/webhook/:id/callback

Parameters

Name Type Description
opts
object
id
string

In path

args
object <optional>

In body

}

Returns

Promise.<any>

getState

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

Scopes

homey.system.readonly

HTTP

GET /api/manager/cloud/state

Returns

Promise.<any>

Events

webhook.create

.on('webhook.create')

Parameters

Name Type Description
webhook
HomeyAPIV3Cloud.ManagerCloud.Webhook

webhook.delete

.on('webhook.delete')

Parameters

Name Type Description
webhook
HomeyAPIV3Cloud.ManagerCloud.Webhook

webhook.update

.on('webhook.update')

Parameters

Name Type Description
webhook
HomeyAPIV3Cloud.ManagerCloud.Webhook
info
object
newValues
object

An object with only the new values of the webhook

oldValues
object

An object with only the old values of the webhook

changedKeys
Array.<string>

An array of keys of the properties that have changed

}