Homey.DiscoveryStrategy

const { DiscoveryStrategy } = require('homey');

This class should not be instanced manually, but created by calling ManagerDiscovery#getDiscoveryStrategy instead.

Table of Contents

Since:
  • 2.5.0

Methods

getDiscoveryResult(id) → {DiscoveryResult}

Parameters:
Name Type Description
id string

getDiscoveryResults() → {Object}

Returns:
Type:
Object

Returns an object of DiscoveryResultMDNSSD, DiscoveryResultSSDP or DiscoveryResultMAC instances.

Events

.on('result')

Fires when a new result has been found.

Parameters:
Name Type Description
discoveryResult DiscoveryResultMDNSSD | DiscoveryResultSSDP | DiscoveryResultMAC