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
- Manager
- SimpleClass
- EventEmitter
- typing.Generic
- abc.ABC
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) ‑> Noneasync 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