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

Homey.CronTask

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

This class should not be instanced manually, but retrieved using a method in ManagerCron instead.

Table of Contents

Events

.on('run')

This event is fired when the task runs

Parameters:
Name Type Description
data Object

The data object as provided at ManagerCron#registerTask.