You are currently viewing the Homey Apps SDK v2 documentation. New apps should use Homey Apps SDK v3 ››

Homey.ManagerDrivers

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

Table of Contents

Methods

getDriver(driverId) → {Driver}

Get a Driver instance by its ID

Parameters:
Name Type Description
driverId string

ID of the driver, as defined in app.json

Returns:
Type:
Driver

Driver

getDrivers() → {Object}

Get an object with all Driver instances, with their ID as key

Returns:
Type:
Object

Drivers