Homey

Table of Contents

The Homey module should be required in every file of your app. It gives access to Managers, Classes, System Events and generic properties. It is automatically available when running an App on Homey.

Properties:
Name Type Description
app App

A pointer to the App's instance.

manifest Object

The app.json as Object.

dir string

The root directory of the app.

Example
const Homey = require('homey');

// register system events
Homey.on('memwarn', () => {
    this.log('memwarn!');
});

// get a Manager
let ManagerCloud = Homey.ManagerGeolocation;
let latitude = ManagerCloud.getLatitude();
console.log('latitude: ', latitude);

Extends

  • events.EventEmitter