ManagerCloud

homey.manager.cloud

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

create_oauth2_callback

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

Generate an OAuth2 callback.

Args

NameTypeDescription
url str The API url for which to create a callback.

create_webhook

async def create_webhook(self, id: str, secret: str, data: dict = {}) ‑> CloudWebhook

Register a handler for a webhook registered with Homey.

Args

NameTypeDescription
id str The ID given after registering the webhook.
secret str The secret given after registering the webhook.
data dict Data used to identify this Homey in calls to the webhook.

unregister_webhook

async def unregister_webhook(self, webhook: CloudWebhook) ‑> None

Unregister the given webhook handler.

Args

NameTypeDescription
webhook CloudWebhook The CloudWebhook to unregister.`

get_homey_id

async def get_homey_id(self) ‑> str

Get the Homey's cloud ID.

get_local_address

async def get_local_address(self) ‑> str

Get the Homey's local address and port.

Inherited members