Homey

A Homey as returned by AthomCloudAPI.

Instance Properties

id

id: string

Type

  • string

Instance Methods

authenticate

(async) authenticate(optsopt): 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 <optional>
strategy
string | array <optional>

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

}

Returns

Promise.<HomeyAPI>