Homey

A Homey as returned by AthomCloudAPI.

Properties

id

id: string

Type

  • string

Methods

authenticate

(async) authenticate(opts): Promise.<HomeyAPI>

This method returns a HomeyAPI instance matching the Homey's API level and platform. Additionally, it ensures a session on the Homey during initialization.

Parameters

Name Type Description
opts
object
strategy
string | array

One string, or an array of HomeyAPI#DISCOVERY_STRATEGIES strings, to connect to the Homey.

}

Returns

Promise.<HomeyAPI>