export namespace AthomCloudAPI { export class Device { id: string; } export class Homey { id: string; authenticate(opts?: { strategy?: string | Array }): Promise; } export class StorageAdapter { get(): Promise; set(value: object): Promise; } export class StorageAdapterBrowser extends StorageAdapter { get(): Promise; set(value: object): Promise; } export class StorageAdapterMemory extends StorageAdapter { get(): Promise; set(value: object): Promise; } export class Token { token_type: string; access_token: string; refresh_token: string; expires_in: number; grant_type: string; } export class User { id: string; getHomeys(): Array; getHomeyById(id: string): AthomCloudAPI.Homey; getFirstHomey(): AthomCloudAPI.Homey; } } export namespace HomeyAPIV2.ManagerAlarms { export class Alarm extends HomeyAPIV3Local.ManagerAlarms.Alarm { id: string; name: string; time: string; enabled: boolean; nextOccurance: string; repetition: object; } } export namespace HomeyAPIV2.ManagerApps { export class App extends HomeyAPIV3Local.ManagerApps.App { enabled: boolean; autoupdate: boolean; id: string; sdk: number; name: string; origin: string; channel: string; version: string; compatibility: string; icon: string; iconObj: object; author: object; permissions: Array; images: object; session: string; ready: boolean; state: string; crashed: boolean; crashedMessage: string; exitCode: number; exitSignal: string; exitCount: number; settings: boolean; brandColor: string; hasDrivers: boolean; usage: object; updateAvailable: object; color: string; crashedCount: number; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } } export namespace HomeyAPIV2.ManagerDevices { export class Capability extends HomeyAPIV3Local.ManagerDevices.Capability { id: string; uri: string; title: string; desc: string; type: string; getable: boolean; setable: boolean; chartType: string; decimals: number; min: number; max: number; step: number; units: string; values: Array; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } export class Device extends HomeyAPIV3Local.ManagerDevices.Device { id: string; name: string; driverUri: string; driverId: string; zone: string; data: object; icon: string; iconObj: object; iconOverride: string | null; settings: object; settingsObj: boolean; class: string; energy: object; energyObj: object; virtualClass: string | null; ui: object; uiIndicator: string | null; capabilities: Array; capabilitiesObj: object; capabilitiesOptions: object; flags: Array; ready: boolean; available: boolean; repair: boolean; unpair: boolean; unavailableMessage: string; images: Array; insights: Array; color: string; note: string; ownerUri: string; warningMessage: string | null; lastSeenAt: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } } export namespace HomeyAPIV2.ManagerDrivers { export class Driver extends HomeyAPIV3Local.ManagerDrivers.Driver { id: string; uri: string; uriObj: object; icon: string; iconObj: object; ready: boolean; pair: boolean; unpair: boolean; repair: boolean; color: string; deprecated: boolean; class: string; connectivity: Array; ownerUri: string; ownerName: string; ownerIconObj: object; name: string; userPath: string | null; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } export class PairSession extends HomeyAPIV3Local.ManagerDrivers.PairSession { id: string; type: string; driverId: string; driverUri: string; deviceId: string; zoneId: string; views: Array; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } } export namespace HomeyAPIV2.ManagerFlow { export class AdvancedFlow extends HomeyAPIV3Local.ManagerFlow.AdvancedFlow { id: string; name: string; enabled: boolean; broken: boolean; triggerable: boolean; folder: string | null; cards: object; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } export class Flow extends HomeyAPIV3Local.ManagerFlow.Flow { id: string; name: string; enabled: boolean; folder: string | null; order: number; broken: boolean; triggerable: boolean; trigger: object; conditions: Array; actions: Array; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } export class FlowCardAction extends HomeyAPIV3Local.ManagerFlow .FlowCardAction { uri: string; id: string; args: object; deprecated: boolean; droptoken: boolean; duration: boolean; uriObj: object; advanced: boolean; title: string; hint: string; highlight: boolean; tokens: Array; ownerId: string; ownerUri: string; ownerName: string; titleFormatted: string | null; durationMin: number | null; durationMax: number | null; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } export class FlowCardCondition extends HomeyAPIV3Local.ManagerFlow .FlowCardCondition { uri: string; id: string; args: object; deprecated: boolean; droptoken: boolean; duration: boolean; uriObj: object; advanced: boolean; title: string; hint: string; highlight: boolean; ownerId: string; ownerUri: string; ownerName: string; titleFormatted: string | null; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } export class FlowCardTrigger extends HomeyAPIV3Local.ManagerFlow .FlowCardTrigger { uri: string; id: string; args: object; deprecated: boolean; droptoken: boolean; duration: boolean; uriObj: object; advanced: boolean; title: string; hint: string; highlight: boolean; tokens: Array; ownerId: string; ownerUri: string; ownerName: string; titleFormatted: string | null; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } export class FlowFolder extends HomeyAPIV3Local.ManagerFlow.FlowFolder { id: string; name: string; order: number; parent: string; } } export namespace HomeyAPIV2.ManagerFlowToken { export class FlowToken extends HomeyAPIV3Local.ManagerFlowToken.FlowToken { uri: string; id: string; title: string; type: string; value: object; uriObj: object; ownerId: string; ownerUri: string; ownerName: string; example: string | null; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } } export namespace HomeyAPIV2.ManagerImages { export class Image extends HomeyAPIV3Local.ManagerImages.Image { id: string; ownerUri: string; url: string; lastUpdated: string; } } export namespace HomeyAPIV2.ManagerInsights { export class Log extends HomeyAPIV3Local.ManagerInsights.Log { uri: string; id: string; title: string; titleTrue: string; titleFalse: string; type: string; units: string; decimals: number; lastValue: number; ownerUri: string; ownerName: string; ownerId: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } } export namespace HomeyAPIV2.ManagerLogic { export class Variable extends HomeyAPIV3Local.ManagerLogic.Variable { id: string; name: string; type: string; value: string | number | boolean; } } export namespace HomeyAPIV2.ManagerNotifications { export class Notification extends HomeyAPIV3Local.ManagerNotifications .Notification { id: string; ownerUri: string; dateCreated: object; dateExpires: string; excerpt: string; icon: string; iconObj: object; priority: string; readBy: Array; roles: Array; meta: object; ownerName: string; } } export namespace HomeyAPIV2.ManagerSessions { export class Session extends HomeyAPIV3Local.ManagerSessions.Session { id: string; type: string; agent: string; clientName: string; scopes: Array; intersectedScopes: Array; createdAt: string; expiresAt: string; lastUsed: boolean; } } export namespace HomeyAPIV2.ManagerSpeechOutput { export class Voice extends HomeyAPIV3Local.ManagerSpeechOutput.Voice { id: string; name: string; language: string; locale: string; gender: string; } } export namespace HomeyAPIV2.ManagerUsers { export class User extends HomeyAPIV3Local.ManagerUsers.User { id: string; name: string; athomId: string; properties: object; enabled: boolean; verified: boolean; role: string; present: boolean; asleep: boolean; enabledUntil: string | null; avatar: string | null; inviteUrl: string | null; localUsername: string | null; } } export namespace HomeyAPIV2.ManagerZones { export class Zone extends HomeyAPIV3Local.ManagerZones.Zone { id: string; name: string; order: number; parent: string; active: boolean; icon: string; activeOrigins: Array; activeLastUpdated: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; } } export namespace HomeyAPIV3Cloud.ManagerApps { export class App extends HomeyAPIV3.ManagerApps.App { id: string; name: string; iconObj: object; version: string; channel: string; origin: string; author: object; compatibility: string; permissions: Array; color: string; images: object; state: string; enabled: boolean; crashed: boolean; crashedMessage: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; call(opts: { method: "GET" | "POST" | "PUT" | "DELETE"; path: String; body: any; }): Promise; get(opts: { path: string }): Promise; post(opts: { path: string; body: object; }): Promise; put(opts: { path: string; body: object; }): Promise; delete(opts: { path: string }): Promise; connect(): Promise; disconnect(): Promise; } export class AppSettings { id: string; } } export namespace HomeyAPIV3Cloud.ManagerCloud { export class Webhook { id: string; } } export namespace HomeyAPIV3Cloud.ManagerCron { export class Cronjob { id: string; } } export namespace HomeyAPIV3Cloud.ManagerDashboards { export class AppWidget { id: string; } export class Dashboard { id: string; name: string; columns: Array; } export class WidgetStore { id: string; } } export namespace HomeyAPIV3Cloud.ManagerDevices { export class Capability extends HomeyAPIV3.ManagerDevices.Capability { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class Device extends HomeyAPIV3.ManagerDevices.Device { id: string; driverId: string; ownerUri: string; name: string; note: string | null; zone: string; data: object; icon: string | null; iconOverride: string | null; iconObj: object | null; class: string; virtualClass: string | null; capabilities: Array; capabilitiesObj: object; settings: object; settingsObj: boolean; flags: Array; energy: object | null; energyObj: object | null; ui: object; uiIndicator: string | null; available: boolean; unavailableMessage: string | null; warningMessage: string | null; ready: boolean; repair: boolean | null; unpair: boolean | null; images: Array; color: string | null; lastSeenAt: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; makeCapabilityInstance( capabilityId: string, listener: (value: number | boolean | string) => any, ): HomeyAPIV3.ManagerDevices.Device.DeviceCapability; setCapabilityValue(opts: { capabilityId: string; value: number | boolean | string; opts?: { duration?: number; }; }): Promise; getZone(): Promise; getDriver(): Promise; getLogs(): Promise<{ [key: string]: HomeyAPIV3.ManagerInsights.Log }>; getFlows(): Promise<{ [key: string]: HomeyAPIV3.ManagerFlow.Flow }>; getAdvancedFlows(): Promise<{ [key: string]: HomeyAPIV3.ManagerFlow.AdvancedFlow; }>; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3Cloud.ManagerDrivers { export class Driver extends HomeyAPIV3.ManagerDrivers.Driver { id: string; ownerUri: string; ownerName: string; ownerIconObj: object; name: string; color: string; class: string; ready: boolean; pair: boolean; repair: boolean; unpair: boolean; userPath: string | null; deprecated: boolean; connectivity: Array; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class PairSession extends HomeyAPIV3.ManagerDrivers.PairSession { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3Cloud.ManagerEnergy { export class EnergyReportDay { id: string; } export class EnergyReportHour { id: string; } export class EnergyReportMonth { id: string; } export class EnergyReportWeek { id: string; } export class EnergyReportYear { id: string; } } export namespace HomeyAPIV3Cloud.ManagerFlow { export class AdvancedFlow extends HomeyAPIV3.ManagerFlow.AdvancedFlow { id: string; name: string; folder: string | null; triggerable: boolean; enabled: boolean; cards: object; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; isBroken(): Promise; connect(): Promise; disconnect(): Promise; } export class Flow extends HomeyAPIV3.ManagerFlow.Flow { id: string; name: string; folder: string | null; triggerable: boolean; enabled: boolean; trigger: object; conditions: Array; actions: Array; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; isBroken(): Promise; connect(): Promise; disconnect(): Promise; } export class FlowCardAction extends HomeyAPIV3.ManagerFlow.FlowCardAction { id: string; ownerId: string; ownerUri: string; ownerName: string; title: string; titleFormatted: string | null; hint: string | null; args: Array | null; droptoken: Array | null; deprecated: boolean | null; highlight: boolean | null; duration: boolean; durationMin: number | null; durationMax: number | null; tokens: Array | null; advanced: boolean; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowCardCondition extends HomeyAPIV3.ManagerFlow .FlowCardCondition { id: string; ownerId: string; ownerUri: string; ownerName: string; title: string; titleFormatted: string | null; hint: string | null; args: Array | null; droptoken: Array | null; deprecated: boolean | null; highlight: boolean | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowCardTrigger extends HomeyAPIV3.ManagerFlow.FlowCardTrigger { id: string; ownerId: string; ownerUri: string; ownerName: string; title: string; titleFormatted: string | null; hint: string | null; args: Array | null; droptoken: Array | null; deprecated: boolean | null; highlight: boolean | null; tokens: Array | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowFolder { id: string; name: string; parent: string | null; } } export namespace HomeyAPIV3Cloud.ManagerFlowToken { export class FlowToken extends HomeyAPIV3.ManagerFlowToken.FlowToken { id: string; ownerId: string; ownerUri: string; ownerName: string; type: string; title: string; example: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3Cloud.ManagerIcons { export class Icon { id: string; } } export namespace HomeyAPIV3Cloud.ManagerImages { export class Image { id: string; ownerUri: string; url: string; lastUpdated: string; } } export namespace HomeyAPIV3Cloud.ManagerInsights { export class Log extends HomeyAPIV3.ManagerInsights.Log { id: string; ownerUri: string; ownerName: string; ownerId: string; type: string; title: string; titleTrue: string | null; titleFalse: string | null; units: string | null; decimals: number | null; lastValue: any | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class LogEntryBoolean { id: string; } } export namespace HomeyAPIV3Cloud.ManagerLogic { export class Variable { id: string; name: string; type: string; value: string | number | boolean; } } export namespace HomeyAPIV3Cloud.ManagerMoods { export class Mood { id: string; name: string; preset: string | null; zone: string; devices: object; } } export namespace HomeyAPIV3Cloud.ManagerNotifications { export class Notification { id: string; ownerUri: string; ownerName: string; dateCreated: string; excerpt: string; meta: object; } } export namespace HomeyAPIV3Cloud.ManagerRF { export class Signal { id: string; } } export namespace HomeyAPIV3Cloud.ManagerSessions { export class Session { id: string; type: string; scopes: Array; intersectedScopes: Array; } } export namespace HomeyAPIV3Cloud.ManagerUsers { export class User { id: string; name: string | null; role: string; properties: object; athomId: string | null; enabled: boolean; enabledUntil: string | null; present: boolean | null; asleep: boolean | null; avatar: string | null; verified: boolean; inviteUrl: string | null; } } export namespace HomeyAPIV3Cloud.ManagerVirtualDevice { export class VirtualDeviceDummySocket { id: string; } export class VirtualDeviceEnergyDongle { id: string; } export class VirtualDeviceGroup { id: string; } export class VirtualDeviceHomeyBridge { id: string; } export class VirtualDeviceInfrared { id: string; } export class VirtualDeviceRF433 { id: string; } export class VirtualDeviceZigbee { id: string; } export class VirtualDeviceZwave { id: string; } export class VirtualDriverDummySocket { id: string; } export class VirtualDriverEnergyDongle { id: string; } export class VirtualDriverGroup { id: string; } export class VirtualDriverHomeyBridge { id: string; } export class VirtualDriverInfrared { id: string; } export class VirtualDriverRF433 { id: string; } export class VirtualDriverZigbee { id: string; } export class VirtualDriverZwave { id: string; } } export namespace HomeyAPIV3Cloud.ManagerZones { export class Zone extends HomeyAPIV3.ManagerZones.Zone { id: string; name: string; parent: string | null; icon: string; active: boolean; activeOrigins: Array; activeLastUpdated: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; getParent(): Promise; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3Local.ManagerAlarms { export class Alarm {} } export namespace HomeyAPIV3Local.ManagerApps { export class App extends HomeyAPIV3.ManagerApps.App { id: string; name: string; iconObj: object; version: string; channel: string; origin: string; author: object; compatibility: string; permissions: Array; color: string; images: object; state: string; enabled: boolean; autoupdate: boolean; settings: boolean | null; updateAvailable: boolean; usage: object; crashed: boolean; crashedMessage: string | null; crashedCount: number; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; call(opts: { method: "GET" | "POST" | "PUT" | "DELETE"; path: String; body: any; }): Promise; get(opts: { path: string }): Promise; post(opts: { path: string; body: object; }): Promise; put(opts: { path: string; body: object; }): Promise; delete(opts: { path: string }): Promise; connect(): Promise; disconnect(): Promise; } export class AppSettings { id: string; } } export namespace HomeyAPIV3Local.ManagerCloud { export class Webhook { id: string; } } export namespace HomeyAPIV3Local.ManagerCron { export class Cronjob { id: string; } } export namespace HomeyAPIV3Local.ManagerDashboards { export class AppWidget { id: string; } export class Dashboard { id: string; name: string; columns: Array; } export class WidgetStore { id: string; } } export namespace HomeyAPIV3Local.ManagerDevices { export class Capability extends HomeyAPIV3.ManagerDevices.Capability { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class Device extends HomeyAPIV3.ManagerDevices.Device { id: string; driverId: string; ownerUri: string; name: string; note: string | null; zone: string; data: object; icon: string | null; iconOverride: string | null; iconObj: object | null; class: string; virtualClass: string | null; capabilities: Array; capabilitiesObj: object; settings: object; settingsObj: boolean; flags: Array; energy: object | null; energyObj: object | null; ui: object; uiIndicator: string | null; available: boolean; unavailableMessage: string | null; warningMessage: string | null; ready: boolean; repair: boolean | null; unpair: boolean | null; images: Array; color: string | null; lastSeenAt: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; makeCapabilityInstance( capabilityId: string, listener: (value: number | boolean | string) => any, ): HomeyAPIV3.ManagerDevices.Device.DeviceCapability; setCapabilityValue(opts: { capabilityId: string; value: number | boolean | string; opts?: { duration?: number; }; }): Promise; getZone(): Promise; getDriver(): Promise; getLogs(): Promise<{ [key: string]: HomeyAPIV3.ManagerInsights.Log }>; getFlows(): Promise<{ [key: string]: HomeyAPIV3.ManagerFlow.Flow }>; getAdvancedFlows(): Promise<{ [key: string]: HomeyAPIV3.ManagerFlow.AdvancedFlow; }>; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3Local.ManagerDiscovery { export class DiscoveryStrategyMAC { id: string; } export class DiscoveryStrategyMDNSSD { id: string; } export class DiscoveryStrategySSDP { id: string; } } export namespace HomeyAPIV3Local.ManagerDrivers { export class Driver extends HomeyAPIV3.ManagerDrivers.Driver { id: string; ownerUri: string; ownerName: string; ownerIconObj: object; name: string; color: string; class: string; ready: boolean; pair: boolean; repair: boolean; unpair: boolean; userPath: string | null; deprecated: boolean; connectivity: Array; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class PairSession extends HomeyAPIV3.ManagerDrivers.PairSession { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3Local.ManagerEnergy { export class EnergyReportDay { id: string; } export class EnergyReportHour { id: string; } export class EnergyReportMonth { id: string; } export class EnergyReportWeek { id: string; } export class EnergyReportYear { id: string; } } export namespace HomeyAPIV3Local.ManagerExperiments { export class ExperimentHomeKit { id: string; } export class ExperimentPowerUser { id: string; } export class ExperimentSSH { id: string; } export class ExperimentVirtualDevices { id: string; } } export namespace HomeyAPIV3Local.ManagerFlow { export class AdvancedFlow extends HomeyAPIV3.ManagerFlow.AdvancedFlow { id: string; name: string; folder: string | null; triggerable: boolean; enabled: boolean; cards: object; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; isBroken(): Promise; connect(): Promise; disconnect(): Promise; } export class Flow extends HomeyAPIV3.ManagerFlow.Flow { id: string; name: string; folder: string | null; triggerable: boolean; enabled: boolean; trigger: object; conditions: Array; actions: Array; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; isBroken(): Promise; connect(): Promise; disconnect(): Promise; } export class FlowCardAction extends HomeyAPIV3.ManagerFlow.FlowCardAction { id: string; ownerId: string; ownerUri: string; ownerName: string; title: string; titleFormatted: string | null; hint: string | null; args: Array | null; droptoken: Array | null; deprecated: boolean | null; highlight: boolean | null; duration: boolean; durationMin: number | null; durationMax: number | null; tokens: Array | null; advanced: boolean; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowCardCondition extends HomeyAPIV3.ManagerFlow .FlowCardCondition { id: string; ownerId: string; ownerUri: string; ownerName: string; title: string; titleFormatted: string | null; hint: string | null; args: Array | null; droptoken: Array | null; deprecated: boolean | null; highlight: boolean | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowCardTrigger extends HomeyAPIV3.ManagerFlow.FlowCardTrigger { id: string; ownerId: string; ownerUri: string; ownerName: string; title: string; titleFormatted: string | null; hint: string | null; args: Array | null; droptoken: Array | null; deprecated: boolean | null; highlight: boolean | null; tokens: Array | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowFolder { id: string; name: string; parent: string | null; } } export namespace HomeyAPIV3Local.ManagerFlowToken { export class FlowToken extends HomeyAPIV3.ManagerFlowToken.FlowToken { id: string; ownerId: string; ownerUri: string; ownerName: string; type: string; title: string; example: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3Local.ManagerIcons { export class Icon { id: string; } } export namespace HomeyAPIV3Local.ManagerImages { export class Image { id: string; ownerUri: string; url: string; lastUpdated: string; } } export namespace HomeyAPIV3Local.ManagerInsights { export class Log extends HomeyAPIV3.ManagerInsights.Log { id: string; ownerUri: string; ownerName: string; ownerId: string; type: string; title: string; titleTrue: string | null; titleFalse: string | null; units: string | null; decimals: number | null; lastValue: any | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class LogEntryBoolean { id: string; } } export namespace HomeyAPIV3Local.ManagerLogic { export class Variable { id: string; name: string; type: string; value: string | number | boolean; } } export namespace HomeyAPIV3Local.ManagerMatter { export class MatterNode { id: string; } } export namespace HomeyAPIV3Local.ManagerMoods { export class Mood { id: string; name: string; preset: string | null; zone: string; devices: object; } } export namespace HomeyAPIV3Local.ManagerNotifications { export class Notification { id: string; ownerUri: string; ownerName: string; dateCreated: string; excerpt: string; meta: object; } } export namespace HomeyAPIV3Local.ManagerRF { export class Signal { id: string; } } export namespace HomeyAPIV3Local.ManagerSessions { export class Session { id: string; type: string; scopes: Array; intersectedScopes: Array; } } export namespace HomeyAPIV3Local.ManagerUsers { export class User { id: string; name: string | null; role: string; properties: object; athomId: string | null; enabled: boolean; enabledUntil: string | null; present: boolean | null; asleep: boolean | null; avatar: string | null; verified: boolean; inviteUrl: string | null; localUsername: string | null; } } export namespace HomeyAPIV3Local.ManagerVirtualDevice { export class VirtualDeviceDummySocket { id: string; } export class VirtualDeviceEnergyDongle { id: string; } export class VirtualDeviceGroup { id: string; } export class VirtualDeviceHomeyBridge { id: string; } export class VirtualDeviceInfrared { id: string; } export class VirtualDeviceMatter { id: string; } export class VirtualDeviceRF433 { id: string; } export class VirtualDeviceVirtualButton { id: string; } export class VirtualDeviceVirtualIPCamera { id: string; } export class VirtualDeviceVirtualSocket { id: string; } export class VirtualDeviceZigbee { id: string; } export class VirtualDeviceZwave { id: string; } export class VirtualDriverDummySocket { id: string; } export class VirtualDriverEnergyDongle { id: string; } export class VirtualDriverGroup { id: string; } export class VirtualDriverHomeyBridge { id: string; } export class VirtualDriverInfrared { id: string; } export class VirtualDriverMatter { id: string; } export class VirtualDriverRF433 { id: string; } export class VirtualDriverVirtualButton { id: string; } export class VirtualDriverVirtualIPCamera { id: string; } export class VirtualDriverVirtualSocket { id: string; } export class VirtualDriverZigbee { id: string; } export class VirtualDriverZwave { id: string; } } export namespace HomeyAPIV3Local.ManagerZones { export class Zone extends HomeyAPIV3.ManagerZones.Zone { id: string; name: string; parent: string | null; icon: string; active: boolean; activeOrigins: Array; activeLastUpdated: string | null; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; getParent(): Promise; connect(): Promise; disconnect(): Promise; } } export class APIError extends Error { constructor( message: string, statusCode: number, ); message: string; statusCode: number; message: string; message: string; message: string; statusCode: number; message: string; message: string; } export class APIErrorHomeyInvalidSerialNumber extends APIError { statusCode: number; statusCode: number; message: string; } export class APIErrorHomeyOffline extends APIError { message: string; statusCode: number; } export class APIErrorHomeySubscriptionInactive extends APIError { statusCode: number; statusCode: number; message: string; } export class APIErrorNotFound extends APIError { message: string; statusCode: number; } export class APIErrorTimeout extends APIError { message: string; statusCode: number; } export class AthomCloudAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; clientId: string; clientSecret: string; redirectUrl: string; autoRefreshTokens?: boolean; token?: AthomCloudAPI.Token; store?: AthomCloudAPI.StorageAdapter; }); getAuthenticatedUser(opts: { additionalScopes?: string }): Promise; getAuthenticatedUserNewsletterStatus(): Promise; subscribeAuthenticatedUserToNewsletter(opts: { language?: string; }): Promise; unsubscribeAuthenticatedUserFromNewsletter(): Promise; getInstallerInformation(opts: { userId: string }): Promise; updateInstallerInformation(opts: { userId: string; website?: string; email?: string; phone?: string; }): Promise; getAuthenticatedUserClients(): Promise; createAuthenticatedUserClient(opts: { name?: string; redirectUri?: Array; scopes?: Array; }): Promise; updateAuthenticatedUserClient(opts: { id: string; name?: string; redirectUri?: Array; scopes?: Array; }): Promise; deleteAuthenticatedUserClient(opts: { id: string }): Promise; isLoggedIn(): Promise; getAuthenticatedUser(opts?: { $cache?: object }): Promise; hasAuthorizationCode(): boolean; getLoginUrl(opts?: { state?: string; scopes?: Array; }): string; logout(): Promise; authenticateWithAuthorizationCode(opts?: { code: String; removeCodeFromHistory?: Boolean; }): Promise; getAuthenticatedUser(opts: { additionalScopes?: string }): Promise; getAuthenticatedUserNewsletterStatus(): Promise; subscribeAuthenticatedUserToNewsletter(opts: { language?: string; }): Promise; unsubscribeAuthenticatedUserFromNewsletter(): Promise; getInstallerInformation(opts: { userId: string }): Promise; updateInstallerInformation(opts: { userId: string; website?: string; email?: string; phone?: string; }): Promise; getAuthenticatedUserClients(): Promise; createAuthenticatedUserClient(opts: { name?: string; redirectUri?: Array; scopes?: Array; }): Promise; updateAuthenticatedUserClient(opts: { id: string; name?: string; redirectUri?: Array; scopes?: Array; }): Promise; deleteAuthenticatedUserClient(opts: { id: string }): Promise; isLoggedIn(): Promise; getAuthenticatedUser(opts?: { $cache?: object }): Promise; hasAuthorizationCode(): boolean; getLoginUrl(opts?: { state?: string; scopes?: Array; }): string; logout(): Promise; authenticateWithAuthorizationCode(opts?: { code: String; removeCodeFromHistory?: Boolean; }): Promise; } export class HomeyAPI { __(input: { en: string; nl: string; }): string | null; hasRole(roleId: string): any; static createAppAPI(opts: { homey: Homey; debug?: Function | null; }): Promise; static createLocalAPI(opts: { address: String; token: String; debug: Function | null; }): Promise; } export class HomeyAPIV1 extends HomeyAPI {} export class HomeyAPIV2 extends HomeyAPIV3 {} export class HomeyAPIV3 extends HomeyAPI { isConnected(): Boolean; __(input: { en: string; nl: string; }): string | null; hasRole(roleId: string): any; } export class HomeyAPIV3Cloud extends HomeyAPIV3 { isConnected(): Boolean; __(input: { en: string; nl: string; }): string | null; hasRole(roleId: string): any; } export class HomeyAPIV3Local extends HomeyAPIV3 { isConnected(): Boolean; __(input: { en: string; nl: string; }): string | null; hasRole(roleId: string): any; } export class APIError extends Error { constructor( message: string, statusCode: number, ); message: string; statusCode: number; message: string; message: string; message: string; statusCode: number; message: string; message: string; } export class APIErrorHomeyInvalidSerialNumber extends APIError { statusCode: number; statusCode: number; message: string; } export class APIErrorHomeyOffline extends APIError { message: string; statusCode: number; } export class APIErrorHomeySubscriptionInactive extends APIError { statusCode: number; statusCode: number; message: string; } export class APIErrorNotFound extends APIError { message: string; statusCode: number; } export class APIErrorTimeout extends APIError { message: string; statusCode: number; } export class AthomCloudAPI { constructor(opts?: { baseUrl?: string; debug?: boolean; secret?: string; clientId: string; clientSecret: string; redirectUrl: string; autoRefreshTokens?: boolean; token?: AthomCloudAPI.Token; store?: AthomCloudAPI.StorageAdapter; }); getAuthenticatedUser(opts: { additionalScopes?: string }): Promise; getAuthenticatedUserNewsletterStatus(): Promise; subscribeAuthenticatedUserToNewsletter(opts: { language?: string; }): Promise; unsubscribeAuthenticatedUserFromNewsletter(): Promise; getInstallerInformation(opts: { userId: string }): Promise; updateInstallerInformation(opts: { userId: string; website?: string; email?: string; phone?: string; }): Promise; getAuthenticatedUserClients(): Promise; createAuthenticatedUserClient(opts: { name?: string; redirectUri?: Array; scopes?: Array; }): Promise; updateAuthenticatedUserClient(opts: { id: string; name?: string; redirectUri?: Array; scopes?: Array; }): Promise; deleteAuthenticatedUserClient(opts: { id: string }): Promise; isLoggedIn(): Promise; getAuthenticatedUser(opts?: { $cache?: object }): Promise; hasAuthorizationCode(): boolean; getLoginUrl(opts?: { state?: string; scopes?: Array; }): string; logout(): Promise; authenticateWithAuthorizationCode(opts?: { code: String; removeCodeFromHistory?: Boolean; }): Promise; getAuthenticatedUser(opts: { additionalScopes?: string }): Promise; getAuthenticatedUserNewsletterStatus(): Promise; subscribeAuthenticatedUserToNewsletter(opts: { language?: string; }): Promise; unsubscribeAuthenticatedUserFromNewsletter(): Promise; getInstallerInformation(opts: { userId: string }): Promise; updateInstallerInformation(opts: { userId: string; website?: string; email?: string; phone?: string; }): Promise; getAuthenticatedUserClients(): Promise; createAuthenticatedUserClient(opts: { name?: string; redirectUri?: Array; scopes?: Array; }): Promise; updateAuthenticatedUserClient(opts: { id: string; name?: string; redirectUri?: Array; scopes?: Array; }): Promise; deleteAuthenticatedUserClient(opts: { id: string }): Promise; isLoggedIn(): Promise; getAuthenticatedUser(opts?: { $cache?: object }): Promise; hasAuthorizationCode(): boolean; getLoginUrl(opts?: { state?: string; scopes?: Array; }): string; logout(): Promise; authenticateWithAuthorizationCode(opts?: { code: String; removeCodeFromHistory?: Boolean; }): Promise; } export namespace HomeyAPIV3Cloud { export class Item extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class Manager extends HomeyAPIV3.Manager { homey: HomeyAPIV3; uri: String; isConnected(): Boolean; connect(): Promise; disconnect(): Promise; destroy(): any; emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; } export class ManagerApi extends HomeyAPIV3.ManagerApi { getState(): Promise; } export class ManagerApps extends HomeyAPIV3.ManagerApps { getState(): Promise; getApps(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerApps.App }>; getApp(opts: { id: string }): Promise; installFromAppStore(opts: { id: string; channel?: string; }): Promise; uninstallApp(opts: { id: string }): Promise; getAppSettings(opts: { id: string; }): Promise; getAppSetting(opts: { name: string; id: string; }): Promise; setAppSetting(opts: { name: string; id: string; value: any; }): Promise; unsetAppSetting(opts: { name: string; id: string; }): Promise; getAppStd(opts: { id: string; message: string; }): Promise; } export class ManagerBLE extends HomeyAPIV3.ManagerBLE { getState(): Promise; runCommand(opts: { command: string; opts?: object; }): Promise; } export class ManagerClock extends HomeyAPIV3.ManagerClock { getState(): Promise; } export class ManagerCloud extends HomeyAPIV3.ManagerCloud { getState(): Promise; emitOAuth2Callback(opts: { app?: string; token?: string; code?: string; }): Promise; emitWebhookCallback(opts: { id: string; args?: object; }): Promise; } export class ManagerCoprocessor extends HomeyAPIV3.ManagerCoprocessor { getState(): Promise; getBridges(): Promise; getLog(): Promise; pairBridge(opts: { serialHash: string }): Promise; } export class ManagerCron extends HomeyAPIV3.ManagerCron { getState(): Promise; } export class ManagerDashboards extends HomeyAPIV3.ManagerDashboards { getState(): Promise; getDashboards(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerDashboards.Dashboard; }>; getDashboard(opts: { id: string; }): Promise; createDashboard(opts: { dashboard: { name: string; columns: Array; }; }): Promise; updateDashboard(opts: { id: string; dashboard: { name?: string; columns?: Array; }; }): Promise; deleteDashboard(opts: { id: string }): Promise; getAppWidgets(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerDashboards.AppWidget; }>; getAppWidget(opts: { id: string; }): Promise; getAppWidgetAutocomplete(opts: { id: string; settingId: string; query: string; settings?: object; }): Promise; getWidgetStores(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerDashboards.WidgetStore; }>; getWidgetStore(opts: { id: string; }): Promise; getWidgetStoreState(opts: { id: string }): Promise; setWidgetStoreState(opts: { id: string; state: object; replace?: boolean; }): Promise; } export class ManagerDatabase extends HomeyAPIV3.ManagerDatabase { getState(): Promise; } export class ManagerDevices extends HomeyAPIV3.ManagerDevices { getState(): Promise; getDevice(opts: { id: string; }): Promise; getDeviceSettingsObj(opts: { id: string }): Promise; setDeviceSettings(opts: { id: string; settings: object; }): Promise; getDevices(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerDevices.Device; }>; updateDevice(opts: { id: string; device: { name?: string; zone?: string; note?: string; iconOverride?: string; virtualClass?: string; uiIndicator?: string; hidden?: boolean; }; }): Promise; deleteDevice(opts: { id: string }): Promise; getCapabilityValue(opts: { capabilityId: string; deviceId: string; }): Promise; setCapabilityValue(opts: { capabilityId: string; deviceId: string; value: string | number | boolean; opts?: object; transactionId?: string; }): Promise; createGroup(opts: { group: { name: string; class: string; zoneId: string; deviceIds: Array; iconOverride?: string; iconDeviceId?: string; }; }): Promise; deleteDeviceFromGroup(opts: { deviceId: string; groupId: string; }): Promise; updateGroup(opts: { id: string; group: { name?: string; deviceIds?: Array; iconOverride?: string; iconDeviceId?: string; }; }): Promise; hideDeviceFromExternalService(opts: { id: string; service: string; }): Promise; unhideDeviceFromExternalService(opts: { id: string; service: string; }): Promise; } export class ManagerDevkit extends HomeyAPIV3.ManagerDevkit { getState(): Promise; installApp(opts: { manifest: object; clean?: boolean; }): Promise; uninstallApp(opts: { sessionId: string }): Promise; } export class ManagerDrivers extends HomeyAPIV3.ManagerDrivers { homey: HomeyAPIV3; uri: String; getState(): Promise; getDrivers(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerDrivers.Driver; }>; getPairSession(opts: { id: string; }): Promise; createPairSession(opts: { pairsession: { type: string; driverId: string; deviceId?: string; zoneId?: string; }; }): Promise; deletePairSession(opts: { id: string }): Promise; emitPairingHeartbeat(opts: { id: string }): Promise; emitPairingEvent(opts: { id: string; event: string; data?: any; }): Promise; emitPairingCallback(opts: { id: string; callbackId: string; data?: any; }): Promise; createPairSessionDevice(opts: { id: string; device: { name?: string; data: any; zone?: string; store?: object; capabilities?: Array; capabilitiesOptions?: object; class?: string; icon?: string; iconOverride?: string; settings?: object; energy?: object; }; }): Promise; deletePairSessionDevice(opts: { id: string }): Promise; isConnected(): Boolean; connect(): Promise; disconnect(): Promise; destroy(): any; emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; } export class ManagerEnergy extends HomeyAPIV3.ManagerEnergy { getOptionElectricityPriceFixed(): Promise; setOptionElectricityPriceFixed(opts: { value: any }): Promise; unsetOptionElectricityPriceFixed(): Promise; getOptionGasPriceFixed(): Promise; setOptionGasPriceFixed(opts: { value: any }): Promise; unsetOptionGasPriceFixed(): Promise; getOptionWaterPriceFixed(): Promise; setOptionWaterPriceFixed(opts: { value: any }): Promise; unsetOptionWaterPriceFixed(): Promise; getOptionElectricityPriceDynamicPreferredInterval(): Promise; setOptionElectricityPriceDynamicPreferredInterval(opts: { value: any; }): Promise; unsetOptionElectricityPriceDynamicPreferredInterval(): Promise; getState(): Promise; getLiveReport(opts: { zone?: string }): Promise; getReportDay(opts: { date: string; cache?: string; }): Promise; getReportWeek(opts: { isoWeek: string; cache?: string; }): Promise; getReportMonth(opts: { yearMonth: string; cache?: string; }): Promise; getReportYear(opts: { year: string; cache?: string; }): Promise; getReportsAvailable(): Promise; getCurrency(): Promise; deleteReports(): Promise; resetReportDayCategories(opts: { options: { date?: string; categories?: Array; deviceIds?: Array; }; }): Promise; fetchDynamicElectricityPrices(opts: { date: string }): Promise; setDynamicElectricityPriceUserCosts(opts: { mathExpression: string; type?: string; }): Promise; getDynamicElectricityPriceUserCosts(): Promise; unsetDynamicElectricityPriceUserCosts(): Promise; setElectricityPriceType(opts: { type: string }): Promise; getElectricityPriceType(): Promise; getDynamicPricesElectricityZones(): Promise; getDynamicPricesElectricityZone(): Promise; setDynamicPricesElectricityZone(opts: { options: { zoneId?: string; zoneVersion?: string; zoneName?: string; zoneCountryKey?: string; }; }): Promise; } export class ManagerEnergyDongle extends HomeyAPIV3.ManagerEnergyDongle { getOptionPhaseLoadNotificationSettings(): Promise; setOptionPhaseLoadNotificationSettings(opts: { value: any }): Promise; unsetOptionPhaseLoadNotificationSettings(): Promise; } export class ManagerFlow extends HomeyAPIV3.ManagerFlow { getState(): Promise; getFlow(opts: { id: string }): Promise; getFlows(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerFlow.Flow }>; createFlow(opts: { flow: { name: string; folder?: string; enabled?: boolean; trigger: object; conditions: Array; actions: Array; }; }): Promise; updateFlow(opts: { id: string; flow: { name?: string; folder?: string; enabled?: boolean; trigger?: object; conditions?: Array; actions?: Array; }; }): Promise; deleteFlow(opts: { id: string }): Promise; testFlow(opts: { flow: { trigger: object; conditions: Array; actions: Array; }; tokens: object; sessionId: string; }): Promise; triggerFlow(opts: { id: string }): Promise; shareFlow(opts: { id: string }): Promise; getFlowFolders(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerFlow.FlowFolder; }>; getFlowFolder(opts: { id: string; }): Promise; createFlowFolder(opts: { flowfolder: { name: string; parent?: string; }; }): Promise; updateFlowFolder(opts: { id: string; flowfolder: { name?: string; parent?: string; }; }): Promise; deleteFlowFolder(opts: { id: string }): Promise; getFlowCardTrigger(opts: { id: string; uri: string; }): Promise; getFlowCardTriggers(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerFlow.FlowCardTrigger; }>; getFlowCardCondition(opts: { id: string; uri: string; }): Promise; getFlowCardConditions(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerFlow.FlowCardCondition; }>; runFlowCardCondition(opts: { id: string; uri: string; args?: object; tokens?: object; state?: object; droptoken?: string; }): Promise; getFlowCardAction(opts: { id: string; uri: string; }): Promise; getFlowCardActions(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerFlow.FlowCardAction; }>; runFlowCardAction(opts: { id: string; uri: string; args?: object; tokens?: object; state?: object; droptoken?: string; duration?: number; }): Promise; getFlowCardAutocomplete(opts: { id: string; uri: string; type: string; name: string; query: string; args?: object; }): Promise; getAdvancedFlow(opts: { id: string; }): Promise; getAdvancedFlows(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerFlow.AdvancedFlow; }>; createAdvancedFlow(opts: { advancedflow: any; }): Promise; updateAdvancedFlow(opts: { id: string; advancedflow: any; }): Promise; deleteAdvancedFlow(opts: { id: string }): Promise; triggerAdvancedFlow(opts: { id: string }): Promise; } export class ManagerFlowToken extends HomeyAPIV3.ManagerFlowToken { getState(): Promise; getFlowTokens(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerFlowToken.FlowToken; }>; getFlowToken(opts: { id: string; }): Promise; getFlowTokenValue(opts: { id: string }): Promise; } export class ManagerGeolocation extends HomeyAPIV3.ManagerGeolocation { getOptionAddress(): Promise; setOptionAddress(opts: { value: any }): Promise; unsetOptionAddress(): Promise; getOptionLocation(): Promise; setOptionLocation(opts: { value: any }): Promise; unsetOptionLocation(): Promise; getState(): Promise; } export class ManagerGoogleAssistant extends HomeyAPIV3.ManagerGoogleAssistant { getOptionPinCode(): Promise; setOptionPinCode(opts: { value: any }): Promise; unsetOptionPinCode(): Promise; getState(): Promise; } export class ManagerI18n extends HomeyAPIV3.ManagerI18n { getOptionLanguage(): Promise; setOptionLanguage(opts: { value: any }): Promise; unsetOptionLanguage(): Promise; getOptionUnits(): Promise; setOptionUnits(opts: { value: any }): Promise; unsetOptionUnits(): Promise; getState(): Promise; } export class ManagerIcons extends HomeyAPIV3.ManagerIcons { getState(): Promise; } export class ManagerImages extends HomeyAPIV3.ManagerImages { getState(): Promise; getImages(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerImages.Image; }>; } export class ManagerInsights extends HomeyAPIV3.ManagerInsights { getState(): Promise; getLog(opts: { id: string }): Promise; getLogs(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerInsights.Log }>; getLogEntries(opts: { id: string; uri: string; resolution?: string; }): Promise; deleteLog(opts: { id: string; uri: string; }): Promise; deleteLogEntries(opts: { id: string; uri: string; }): Promise; } export class ManagerLogic extends HomeyAPIV3.ManagerLogic { getState(): Promise; getVariable(opts: { id: string; }): Promise; getVariables(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerLogic.Variable; }>; createVariable(opts: { variable: { name: string; type: string; value: string | number | boolean; }; }): Promise; updateVariable(opts: { id: string; variable: { name?: string; value?: string | number | boolean; }; }): Promise; deleteVariable(opts: { id: string }): Promise; } export class ManagerMobile extends HomeyAPIV3.ManagerMobile { getState(): Promise; onMobileEvent(opts: { secret: string; userId: string; deviceId: string; event: string; data: any; timestamp?: string; }): Promise; } export class ManagerMoods extends HomeyAPIV3.ManagerMoods { getState(): Promise; getMoods(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerMoods.Mood }>; getMood(opts: { id: string }): Promise; createMood(opts: { mood: { name: string; devices: object; preset?: string; }; }): Promise; updateMood(opts: { id: string; mood: { name?: string; devices?: object; preset?: string; }; }): Promise; setMood(opts: { id: string }): Promise; deleteMood(opts: { id: string }): Promise; } export class ManagerNotifications extends HomeyAPIV3.ManagerNotifications { getState(): Promise; getNotifications(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerNotifications.Notification; }>; deleteNotification(opts: { id: string }): Promise; deleteNotifications(opts: { ownerUri?: string }): Promise; getOwners(): Promise; setOwnerEnabled(opts: { uri: string; enabled: boolean; }): Promise; setOwnerPush(opts: { uri: string; push: boolean; }): Promise; } export class ManagerPremium extends HomeyAPIV3.ManagerPremium {} export class ManagerPresence extends HomeyAPIV3.ManagerPresence { getState(): Promise; setPresentMe(opts: { value?: boolean; opts?: { forceFlowTrigger?: boolean; }; }): Promise; setPresent(opts: { id: string; value?: boolean; }): Promise; getPresent(opts: { id: string }): Promise; setAsleepMe(opts: { value?: boolean; opts?: { forceFlowTrigger?: boolean; }; }): Promise; setAsleep(opts: { id: string; value?: boolean; }): Promise; getAsleep(opts: { id: string }): Promise; } export class ManagerRF extends HomeyAPIV3.ManagerRF { getState(): Promise; record(opts: { frequency?: string; timeout?: number; }): Promise; replay(opts: { frequency: string; data: Array; }): Promise; emulate(opts: { frequency: string; data: Array; }): Promise; set433MHzConfig(opts: { modulation?: string; carrier?: number; deviation?: number; channelSpacing?: number; filterBandwidth?: number; baudrate?: number; power?: number; }): Promise; txInfraredProntohex(opts: { payload: string; repetitions?: number; }): Promise; } export class ManagerSafety extends HomeyAPIV3.ManagerSafety { getState(): Promise; } export class ManagerSecurity extends HomeyAPIV3.ManagerSecurity { getState(): Promise; } export class ManagerSessions extends HomeyAPIV3.ManagerSessions { getState(): Promise; getSessionMe(): Promise; } export class ManagerSystem extends HomeyAPIV3.ManagerSystem { getState(): Promise; ping(opts: { id?: string }): Promise; getInfo(): Promise; getSystemName(): Promise; setSystemName(opts: { name: string }): Promise; reboot(): Promise; sendLog(opts: { append?: string }): Promise; delete(): Promise; getMemoryInfo(): Promise; getStorageInfo(): Promise; } export class ManagerUsers extends HomeyAPIV3.ManagerUsers { getState(): Promise; login(opts: { token: string }): Promise; getUserMe(): Promise; updateUserMe(opts: { name?: string }): Promise; deleteUserMe(): Promise; getUsers(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerUsers.User }>; getUser(opts: { id: string }): Promise; createUser(opts: { user: { role: string; }; }): Promise; updateUser(opts: { id: string; user: { role?: string; enabled?: boolean; }; }): Promise; deleteUser(opts: { id: string }): Promise; updateUserMeProperties(opts: { id: string; value: object; }): Promise; deleteUserMeProperties(opts: { id: string }): Promise; acceptSharingInvite(opts: { secret: string; athomId: string; inviteToken: string; name: string; }): Promise; } export class ManagerVirtualDevice extends HomeyAPIV3.ManagerVirtualDevice { getState(): Promise; } export class ManagerWeather extends HomeyAPIV3.ManagerWeather { getState(): Promise; getWeather(): Promise; getWeatherHourly(): Promise; } export class ManagerWebserver extends HomeyAPIV3.ManagerWebserver { getState(): Promise; } export class ManagerZigbee extends HomeyAPIV3.ManagerZigbee { getState(): Promise; runCommand(opts: { command: string; opts?: object; }): Promise; } export class ManagerZones extends HomeyAPIV3.ManagerZones { getState(): Promise; getZones(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerZones.Zone }>; getZone(opts: { id: string }): Promise; createZone(opts: { zone: { name: string; icon: string; parent: string; }; }): Promise; updateZone(opts: { id: string; zone: { name?: string; icon?: string; parent?: string; }; }): Promise; deleteZone(opts: { id: string }): Promise; } export class ManagerZwave extends HomeyAPIV3.ManagerZwave { getOptionRegionOverride(): Promise; setOptionRegionOverride(opts: { value: any }): Promise; unsetOptionRegionOverride(): Promise; getState(): Promise; runCommand(opts: { command: string; opts?: object; }): Promise; getLog(): Promise; setLogEnabled(opts: { enabled: boolean }): Promise; } } export namespace HomeyAPIV3.ManagerDevices.Device { export class DeviceCapability extends EventEmitter { value: boolean | number | string | null; lastChanged: Date | null; destroy(): any; setValue( value: boolean | number | string, opts?: { duration?: number; }, ): Promise; emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; } } export namespace HomeyAPIV3.ManagerDrivers { export class Driver extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class PairSession extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPI { export class HomeyAPIError extends APIError { description: string; stack: string; message: string; statusCode: number; } export class HomeyAPIErrorNotFound extends HomeyAPIError {} } export namespace HomeyAPIV3 { export class Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class Manager extends EventEmitter { homey: HomeyAPIV3; uri: String; isConnected(): Boolean; connect(): Promise; disconnect(): Promise; destroy(): any; emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; } export class ManagerDrivers extends HomeyAPIV3.Manager { homey: HomeyAPIV3; uri: String; isConnected(): Boolean; connect(): Promise; disconnect(): Promise; destroy(): any; emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; } } export namespace HomeyAPIV2 { export class Manager extends HomeyAPIV3.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerAlarms extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerApps extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerAudio extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerBackup extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerBLE extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerCloud extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerDatabase extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerDevices extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerDevkit extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerDrivers extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerEnergy extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerExperiments extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerFlow extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerFlowToken extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerGeolocation extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerGoogleAssistant extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerI18n extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerImages extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerInsights extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerLedring extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerLogic extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerMobile extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerNotifications extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerPresence extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerRF extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerSessions extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerSpeechOutput extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerSystem extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerUpdates extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerUsers extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerWeather extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerZigBee extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerZones extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } export class ManagerZwave extends HomeyAPIV2.Manager { homey: HomeyAPIV3; uri: String; } } export namespace HomeyAPIV3Local { export class Item extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class Manager extends HomeyAPIV3.Manager { homey: HomeyAPIV3; uri: String; isConnected(): Boolean; connect(): Promise; disconnect(): Promise; destroy(): any; emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; } export class ManagerAlarms extends HomeyAPIV3.ManagerAlarms { getAlarms(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerAlarms.Alarm; }>; getAlarm(opts: { id: string; }): Promise; createAlarm(opts: { alarm: { name?: string; time?: string; enabled?: boolean; repetition?: object; }; }): Promise; updateAlarm(opts: { id: string; alarm: { name?: string; time?: string; enabled?: boolean; repetition?: object; }; }): Promise; deleteAlarm(opts: { id: string }): Promise; } export class ManagerApi extends HomeyAPIV3.ManagerApi { getState(): Promise; } export class ManagerApps extends HomeyAPIV3.ManagerApps { getState(): Promise; getApps(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerApps.App }>; getApp(opts: { id: string }): Promise; installFromAppStore(opts: { id: string; channel?: string; waitForInstall?: boolean; version?: string; }): Promise; uninstallApp(opts: { id: string }): Promise; getAppSettings(opts: { id: string; }): Promise; getAppSetting(opts: { name: string; id: string; }): Promise; setAppSetting(opts: { name: string; id: string; value: any; }): Promise; unsetAppSetting(opts: { name: string; id: string; }): Promise; getAppStd(opts: { id: string; message: string; }): Promise; updateApp(opts: { id: string; app: { autoupdate?: boolean; }; }): Promise; enableApp(opts: { id: string }): Promise; disableApp(opts: { id: string }): Promise; restartApp(opts: { id: string }): Promise; getAppLocales(opts: { id: string }): Promise; getAppUsage(opts: { id: string }): Promise; } export class ManagerArp extends HomeyAPIV3.ManagerArp { getState(): Promise; } export class ManagerBackup extends HomeyAPIV3.ManagerBackup { getOptionAutomaticBackupsEnabled(): Promise; setOptionAutomaticBackupsEnabled(opts: { value: any }): Promise; unsetOptionAutomaticBackupsEnabled(): Promise; getOptionLastSuccessfulBackup(): Promise; setOptionLastSuccessfulBackup(opts: { value: any }): Promise; unsetOptionLastSuccessfulBackup(): Promise; getState(): Promise; scheduleBackup(): Promise; } export class ManagerBLE extends HomeyAPIV3.ManagerBLE { getState(): Promise; runCommand(opts: { command: string; opts?: object; }): Promise; } export class ManagerClock extends HomeyAPIV3.ManagerClock { getState(): Promise; } export class ManagerCloud extends HomeyAPIV3.ManagerCloud { getState(): Promise; } export class ManagerCoprocessor extends HomeyAPIV3.ManagerCoprocessor { getState(): Promise; getBridges(): Promise; pairBridge(opts: { serialHash: string }): Promise; } export class ManagerCron extends HomeyAPIV3.ManagerCron { getState(): Promise; } export class ManagerDashboards extends HomeyAPIV3.ManagerDashboards { getState(): Promise; getDashboards(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerDashboards.Dashboard; }>; getDashboard(opts: { id: string; }): Promise; createDashboard(opts: { dashboard: { name: string; columns: Array; }; }): Promise; updateDashboard(opts: { id: string; dashboard: { name?: string; columns?: Array; }; }): Promise; deleteDashboard(opts: { id: string }): Promise; getAppWidgets(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerDashboards.AppWidget; }>; getAppWidget(opts: { id: string; }): Promise; getAppWidgetAutocomplete(opts: { id: string; settingId: string; query: string; settings?: object; }): Promise; getWidgetStores(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerDashboards.WidgetStore; }>; getWidgetStore(opts: { id: string; }): Promise; getWidgetStoreState(opts: { id: string }): Promise; setWidgetStoreState(opts: { id: string; state: object; replace?: boolean; }): Promise; } export class ManagerDatabase extends HomeyAPIV3.ManagerDatabase { getState(): Promise; } export class ManagerDevices extends HomeyAPIV3.ManagerDevices { getState(): Promise; getDevice(opts: { id: string; }): Promise; getDeviceSettingsObj(opts: { id: string }): Promise; setDeviceSettings(opts: { id: string; settings: object; }): Promise; getDevices(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerDevices.Device; }>; updateDevice(opts: { id: string; device: { name?: string; zone?: string; note?: string; iconOverride?: string; virtualClass?: string; uiIndicator?: string; hidden?: boolean; }; }): Promise; deleteDevice(opts: { id: string }): Promise; getCapabilityValue(opts: { capabilityId: string; deviceId: string; }): Promise; setCapabilityValue(opts: { capabilityId: string; deviceId: string; value: string | number | boolean; opts?: object; transactionId?: string; }): Promise; createGroup(opts: { group: { name: string; class: string; zoneId: string; deviceIds: Array; iconOverride?: string; iconDeviceId?: string; }; }): Promise; deleteDeviceFromGroup(opts: { deviceId: string; groupId: string; }): Promise; updateGroup(opts: { id: string; group: { name?: string; deviceIds?: Array; iconOverride?: string; iconDeviceId?: string; }; }): Promise; } export class ManagerDevkit extends HomeyAPIV3.ManagerDevkit { getState(): Promise; installApp(opts: { manifest: object; clean?: boolean; }): Promise; uninstallApp(opts: { sessionId: string }): Promise; stopApp(opts: { session: string }): Promise; getAppStdOut(opts: { session: string }): Promise; runApp(opts: { app: ReadableStream; env: Object; debug: Boolean; clean: Boolean; }): Promise; } export class ManagerDiscovery extends HomeyAPIV3.ManagerDiscovery { getState(): Promise; } export class ManagerDrivers extends HomeyAPIV3.ManagerDrivers { homey: HomeyAPIV3; uri: String; getState(): Promise; getDrivers(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerDrivers.Driver; }>; getDriver(opts: { id: string; }): Promise; getPairSession(opts: { id: string; }): Promise; createPairSession(opts: { pairsession: { type: string; driverId: string; deviceId?: string; zoneId?: string; }; }): Promise; deletePairSession(opts: { id: string }): Promise; emitPairingHeartbeat(opts: { id: string }): Promise; emitPairingEvent(opts: { id: string; event: string; data?: any; }): Promise; emitPairingCallback(opts: { id: string; callbackId: string; data?: any; }): Promise; createPairSessionDevice(opts: { id: string; device: { name?: string; data: any; zone?: string; store?: object; capabilities?: Array; capabilitiesOptions?: object; class?: string; icon?: string; iconOverride?: string; settings?: object; energy?: object; }; }): Promise; deletePairSessionDevice(opts: { id: string }): Promise; isConnected(): Boolean; connect(): Promise; disconnect(): Promise; destroy(): any; emit( event: string, data: any, ): any; addListener( event: string, callback: Function, ): any; on( event: string, callback: Function, ): any; once( event: string, callback: Function, ): any; off( event: string, callback: Function, ): any; removeListener( event: string, callback: Function, ): any; removeAllListeners(event?: string): any; } export class ManagerEnergy extends HomeyAPIV3.ManagerEnergy { getOptionElectricityPriceFixed(): Promise; setOptionElectricityPriceFixed(opts: { value: any }): Promise; unsetOptionElectricityPriceFixed(): Promise; getOptionGasPriceFixed(): Promise; setOptionGasPriceFixed(opts: { value: any }): Promise; unsetOptionGasPriceFixed(): Promise; getOptionWaterPriceFixed(): Promise; setOptionWaterPriceFixed(opts: { value: any }): Promise; unsetOptionWaterPriceFixed(): Promise; getState(): Promise; getLiveReport(opts: { zone?: string }): Promise; getReportDay(opts: { date: string; cache?: string; }): Promise; getReportWeek(opts: { isoWeek: string; cache?: string; }): Promise; getReportMonth(opts: { yearMonth: string; cache?: string; }): Promise; getReportYear(opts: { year: string; cache?: string; }): Promise; getReportsAvailable(): Promise; getCurrency(): Promise; deleteReports(): Promise; resetReportDayCategories(opts: { options: { date?: string; categories?: Array; deviceIds?: Array; }; }): Promise; fetchDynamicElectricityPrices(opts: { date: string }): Promise; setDynamicElectricityPriceUserCosts(opts: { mathExpression: string; type?: string; }): Promise; getDynamicElectricityPriceUserCosts(): Promise; unsetDynamicElectricityPriceUserCosts(): Promise; setElectricityPriceType(opts: { type: string }): Promise; getElectricityPriceType(): Promise; getDynamicPricesElectricityZones(): Promise; getDynamicPricesElectricityZone(): Promise; setDynamicPricesElectricityZone(opts: { options: { zoneId?: string; zoneVersion?: string; priceInterval?: string; }; }): Promise; } export class ManagerEnergyDongle extends HomeyAPIV3.ManagerEnergyDongle { getOptionPhaseLoadNotificationSettings(): Promise; setOptionPhaseLoadNotificationSettings(opts: { value: any }): Promise; unsetOptionPhaseLoadNotificationSettings(): Promise; } export class ManagerExperiments extends HomeyAPIV3.ManagerExperiments { getState(): Promise; getExperiments(): Promise; enableExperiment(opts: { id: string }): Promise; disableExperiment(opts: { id: string }): Promise; } export class ManagerFlow extends HomeyAPIV3.ManagerFlow { getState(): Promise; getFlow(opts: { id: string }): Promise; getFlows(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerFlow.Flow }>; createFlow(opts: { flow: { name: string; folder?: string; enabled?: boolean; trigger: object; conditions: Array; actions: Array; }; }): Promise; updateFlow(opts: { id: string; flow: { name?: string; folder?: string; enabled?: boolean; trigger?: object; conditions?: Array; actions?: Array; }; }): Promise; deleteFlow(opts: { id: string }): Promise; testFlow(opts: { flow: { trigger: object; conditions: Array; actions: Array; }; tokens: object; sessionId: string; }): Promise; triggerFlow(opts: { id: string }): Promise; shareFlow(opts: { id: string }): Promise; getFlowFolders(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerFlow.FlowFolder; }>; getFlowFolder(opts: { id: string; }): Promise; createFlowFolder(opts: { flowfolder: { name: string; parent?: string; }; }): Promise; updateFlowFolder(opts: { id: string; flowfolder: { name?: string; parent?: string; }; }): Promise; deleteFlowFolder(opts: { id: string }): Promise; getFlowCardTrigger(opts: { id: string; uri: string; }): Promise; getFlowCardTriggers(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerFlow.FlowCardTrigger; }>; getFlowCardCondition(opts: { id: string; uri: string; }): Promise; getFlowCardConditions(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerFlow.FlowCardCondition; }>; runFlowCardCondition(opts: { id: string; uri: string; args?: object; tokens?: object; state?: object; droptoken?: string; }): Promise; getFlowCardAction(opts: { id: string; uri: string; }): Promise; getFlowCardActions(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerFlow.FlowCardAction; }>; runFlowCardAction(opts: { id: string; uri: string; args?: object; tokens?: object; state?: object; droptoken?: string; duration?: number; }): Promise; getFlowCardAutocomplete(opts: { id: string; uri: string; type: string; name: string; query: string; args?: object; }): Promise; getAdvancedFlow(opts: { id: string; }): Promise; getAdvancedFlows(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerFlow.AdvancedFlow; }>; createAdvancedFlow(opts: { advancedflow: any; }): Promise; updateAdvancedFlow(opts: { id: string; advancedflow: any; }): Promise; deleteAdvancedFlow(opts: { id: string }): Promise; triggerAdvancedFlow(opts: { id: string }): Promise; } export class ManagerFlowToken extends HomeyAPIV3.ManagerFlowToken { getState(): Promise; getFlowTokens(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerFlowToken.FlowToken; }>; getFlowToken(opts: { id: string; }): Promise; getFlowTokenValue(opts: { id: string }): Promise; } export class ManagerGeolocation extends HomeyAPIV3.ManagerGeolocation { getOptionAddress(): Promise; setOptionAddress(opts: { value: any }): Promise; unsetOptionAddress(): Promise; getOptionLocation(): Promise; setOptionLocation(opts: { value: any }): Promise; unsetOptionLocation(): Promise; getState(): Promise; } export class ManagerGoogleAssistant extends HomeyAPIV3.ManagerGoogleAssistant { getOptionPinCode(): Promise; setOptionPinCode(opts: { value: any }): Promise; unsetOptionPinCode(): Promise; getOptionEnabled(): Promise; setOptionEnabled(opts: { value: any }): Promise; unsetOptionEnabled(): Promise; getState(): Promise; sync(): Promise; } export class ManagerI18n extends HomeyAPIV3.ManagerI18n { getOptionLanguage(): Promise; setOptionLanguage(opts: { value: any }): Promise; unsetOptionLanguage(): Promise; getOptionUnits(): Promise; setOptionUnits(opts: { value: any }): Promise; unsetOptionUnits(): Promise; getState(): Promise; } export class ManagerIcons extends HomeyAPIV3.ManagerIcons { getState(): Promise; } export class ManagerImages extends HomeyAPIV3.ManagerImages { getState(): Promise; getImages(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerImages.Image; }>; } export class ManagerInsights extends HomeyAPIV3.ManagerInsights { getState(): Promise; getLog(opts: { id: string }): Promise; getLogs(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerInsights.Log }>; getLogEntries(opts: { id: string; uri: string; resolution?: string; }): Promise; deleteLog(opts: { id: string; uri: string; }): Promise; deleteLogEntries(opts: { id: string; uri: string; }): Promise; } export class ManagerLedring extends HomeyAPIV3.ManagerLedring { getOptionScreensaver(): Promise; setOptionScreensaver(opts: { value: any }): Promise; unsetOptionScreensaver(): Promise; getState(): Promise; getScreensavers(): Promise; } export class ManagerLogic extends HomeyAPIV3.ManagerLogic { getState(): Promise; getVariable(opts: { id: string; }): Promise; getVariables(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerLogic.Variable; }>; createVariable(opts: { variable: { name: string; type: string; value: string | number | boolean; }; }): Promise; updateVariable(opts: { id: string; variable: { name?: string; value?: string | number | boolean; }; }): Promise; deleteVariable(opts: { id: string }): Promise; } export class ManagerMatter extends HomeyAPIV3.ManagerMatter { getOptionPaaSettings(): Promise; setOptionPaaSettings(opts: { value: any }): Promise; unsetOptionPaaSettings(): Promise; getState(): Promise; getMatterNode(opts: { id: string; }): Promise; getMatterNodes(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerMatter.MatterNode; }>; deleteMatterNode(opts: { id: string }): Promise; getNodeAttributes(opts: { id: string }): Promise; getNodeFabrics(opts: { id: string }): Promise; deleteNodeFabric(opts: { fabricIndex: number; id: string; }): Promise; resolveNodeAddress(opts: { id: string }): Promise; forceNodeUpdate(opts: { id: string }): Promise; pingNode(opts: { id: string }): Promise; getNodeAvailableFirmwareUpdate(opts: { id: string }): Promise; installNodeAvailableFirmwareUpdate(opts: { id: string; softwareVersion: number; }): Promise; nodeDiagnosticReport(opts: { id: string }): Promise; nodeThreadNetworkInformation(opts: { id: string }): Promise; nodeWiFiNetworkInformation(opts: { id: string }): Promise; getFabrics(opts: { deviceId: string }): Promise; deleteFabric(opts: { deviceId: string; fabricIndex: number; }): Promise; } export class ManagerMobile extends HomeyAPIV3.ManagerMobile { getState(): Promise; } export class ManagerMoods extends HomeyAPIV3.ManagerMoods { getState(): Promise; getMoods(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerMoods.Mood }>; getMood(opts: { id: string }): Promise; createMood(opts: { mood: { name: string; devices: object; preset?: string; }; }): Promise; updateMood(opts: { id: string; mood: { name?: string; devices?: object; preset?: string; }; }): Promise; setMood(opts: { id: string }): Promise; deleteMood(opts: { id: string }): Promise; } export class ManagerNotifications extends HomeyAPIV3.ManagerNotifications { getState(): Promise; getNotifications(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerNotifications.Notification; }>; deleteNotification(opts: { id: string }): Promise; deleteNotifications(opts: { ownerUri?: string }): Promise; getOwners(): Promise; setOwnerEnabled(opts: { uri: string; enabled: boolean; }): Promise; setOwnerPush(opts: { uri: string; push: boolean; }): Promise; } export class ManagerPresence extends HomeyAPIV3.ManagerPresence { getState(): Promise; setPresentMe(opts: { value?: boolean; opts?: { forceFlowTrigger?: boolean; }; }): Promise; setPresent(opts: { id: string; value?: boolean; }): Promise; getPresent(opts: { id: string }): Promise; setAsleepMe(opts: { value?: boolean; opts?: { forceFlowTrigger?: boolean; }; }): Promise; setAsleep(opts: { id: string; value?: boolean; }): Promise; getAsleep(opts: { id: string }): Promise; } export class ManagerRF extends HomeyAPIV3.ManagerRF { getState(): Promise; record(opts: { frequency?: string; timeout?: number; }): Promise; replay(opts: { frequency: string; data: Array; }): Promise; emulate(opts: { frequency: string; data: Array; }): Promise; set433MHzConfig(opts: { modulation?: string; carrier?: number; deviation?: number; channelSpacing?: number; filterBandwidth?: number; baudrate?: number; power?: number; }): Promise; txInfraredProntohex(opts: { payload: string; repetitions?: number; }): Promise; } export class ManagerSafety extends HomeyAPIV3.ManagerSafety { getState(): Promise; } export class ManagerSatellites extends HomeyAPIV3.ManagerSatellites { getState(): Promise; } export class ManagerSecurity extends HomeyAPIV3.ManagerSecurity { getState(): Promise; } export class ManagerSessions extends HomeyAPIV3.ManagerSessions { getState(): Promise; getSessionMe(): Promise; } export class ManagerSystem extends HomeyAPIV3.ManagerSystem { getOptionForwardedPort(): Promise; setOptionForwardedPort(opts: { value: any }): Promise; unsetOptionForwardedPort(): Promise; getState(): Promise; ping(opts: { id?: string }): Promise; getInfo(): Promise; getSystemName(): Promise; setSystemName(opts: { name: string }): Promise; reboot(): Promise; sendLog(opts: { append?: string }): Promise; getMemoryInfo(): Promise; getStorageInfo(): Promise; getMemoryInfoTotal(): Promise; getStorageInfoTotal(): Promise; rebootOTA(): Promise; setDebug(opts: { namespace: string }): Promise; enableWifi(): Promise; disableWifi(): Promise; } export class ManagerThread extends HomeyAPIV3.ManagerThread { getState(): Promise; getNetworkTopology(): Promise; } export class ManagerUpdates extends HomeyAPIV3.ManagerUpdates { getOptionChannel(): Promise; setOptionChannel(opts: { value: any }): Promise; unsetOptionChannel(): Promise; getOptionAutoupdate(): Promise; setOptionAutoupdate(opts: { value: any }): Promise; unsetOptionAutoupdate(): Promise; getState(): Promise; getUpdates(): Promise; installUpdate(opts: { reboot?: boolean; silent?: boolean; }): Promise; abortInstallUpdate(): Promise; } export class ManagerUsers extends HomeyAPIV3.ManagerUsers { getState(): Promise; login(opts: { token: string }): Promise; getUserMe(): Promise; updateUserMe(opts: { name?: string }): Promise; deleteUserMe(): Promise; getUsers(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerUsers.User }>; getUser(opts: { id: string }): Promise; createUser(opts: { user: { role: string; }; }): Promise; updateUser(opts: { id: string; user: { role?: string; enabled?: boolean; }; }): Promise; deleteUser(opts: { id: string }): Promise; updateUserMeProperties(opts: { id: string; value: object; }): Promise; deleteUserMeProperties(opts: { id: string }): Promise; swapOwner(opts: { newOwnerUserId: string }): Promise; getPersonalAccessTokens(): Promise; createPersonalAccessToken(opts: { name: string; scopes: Array; }): Promise; deletePersonalAccessToken(opts: { id: string }): Promise; loginLocal(opts: { username: string; password: string; clientId: string; clientName: string; }): Promise; updateUserMeLocalCredentials(opts: { username: string; password: string; }): Promise; updateUserLocalCredentials(opts: { id: string; username: string; password: string; }): Promise; deleteUserMeLocalCredentials(): Promise; deleteUserLocalCredentials(opts: { id: string }): Promise; grantInstallerAccess(): Promise; revokeInstallerAccess(): Promise; requestInstallerAccess(opts: { jwt: string }): Promise; swapOwnerInstaller(opts: { newOwnerUserId: string; jwt: string; }): Promise; } export class ManagerVirtualDevice extends HomeyAPIV3.ManagerVirtualDevice { getState(): Promise; } export class ManagerWeather extends HomeyAPIV3.ManagerWeather { getState(): Promise; getWeather(): Promise; getWeatherHourly(): Promise; } export class ManagerWebserver extends HomeyAPIV3.ManagerWebserver { getState(): Promise; } export class ManagerZigbee extends HomeyAPIV3.ManagerZigbee { getState(): Promise; runCommand(opts: { command: string; opts?: object; }): Promise; } export class ManagerZones extends HomeyAPIV3.ManagerZones { getState(): Promise; getZones(): Promise<{ [key: string]: HomeyAPIV3Local.ManagerZones.Zone }>; getZone(opts: { id: string }): Promise; createZone(opts: { zone: { name: string; icon: string; parent: string; }; }): Promise; updateZone(opts: { id: string; zone: { name?: string; icon?: string; parent?: string; }; }): Promise; deleteZone(opts: { id: string }): Promise; } export class ManagerZwave extends HomeyAPIV3.ManagerZwave { getOptionRegionOverride(): Promise; setOptionRegionOverride(opts: { value: any }): Promise; unsetOptionRegionOverride(): Promise; getState(): Promise; runCommand(opts: { command: string; opts?: object; }): Promise; getLog(): Promise; setLogEnabled(opts: { enabled: boolean }): Promise; } } export namespace HomeyAPIV3.ManagerApps { export class App extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; call(opts: { method: "GET" | "POST" | "PUT" | "DELETE"; path: String; body: any; }): Promise; get(opts: { path: string }): Promise; post(opts: { path: string; body: object; }): Promise; put(opts: { path: string; body: object; }): Promise; delete(opts: { path: string }): Promise; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3.ManagerDevices { export class Capability extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class Device extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; makeCapabilityInstance( capabilityId: string, listener: (value: number | boolean | string) => any, ): HomeyAPIV3.ManagerDevices.Device.DeviceCapability; setCapabilityValue(opts: { capabilityId: string; value: number | boolean | string; opts?: { duration?: number; }; }): Promise; getZone(): Promise; getDriver(): Promise; getLogs(): Promise<{ [key: string]: HomeyAPIV3.ManagerInsights.Log }>; getFlows(): Promise<{ [key: string]: HomeyAPIV3.ManagerFlow.Flow }>; getAdvancedFlows(): Promise<{ [key: string]: HomeyAPIV3.ManagerFlow.AdvancedFlow; }>; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3.ManagerFlow { export class AdvancedFlow extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; isBroken(): Promise; connect(): Promise; disconnect(): Promise; } export class Flow extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; isBroken(): Promise; connect(): Promise; disconnect(): Promise; } export class FlowCard extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowCardAction extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowCardCondition extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } export class FlowCardTrigger extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3.ManagerFlowToken { export class FlowToken extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3.ManagerInsights { export class Log extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; connect(): Promise; disconnect(): Promise; } } export namespace HomeyAPIV3.ManagerZones { export class Zone extends HomeyAPIV3.Item { id: string; uri: string; manager: HomeyAPIV3.Manager; homey: HomeyAPIV3; getParent(): Promise; connect(): Promise; disconnect(): Promise; } }