Module homey.manager.cloud

Classes

class ManagerCloud

Manages interactions with the Homey cloud. This includes OAuth2 and Webhooks. You can access this manager through the Homey instance as self.homey.cloud.

Ancestors

Methods

async def create_oauth2_callback(self, url: str) ‑> CloudOAuth2Callback

Generate an OAuth2 callback.

Args

url
The API url for which to create a callback.
async def create_webhook(self, id: str, secret: str, data: dict = {}) ‑> CloudWebhook

Register a handler for a webhook registered with Homey.

Args

id
The ID given after registering the webhook.
secret
The secret given after registering the webhook.
data
Data used to identify this Homey in calls to the webhook.
async def unregister_webhook(self, webhook: CloudWebhook) ‑> None

Unregister the given webhook handler.

Args

webhook
The CloudWebhook to unregister.`
async def get_homey_id(self) ‑> str

Get the Homey's cloud ID.

async def get_local_address(self) ‑> str

Get the Homey's local address and port.

Inherited members