Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

homebridge-cron-switch

A homebridge plugin that exposes to HomeKit a switch that turns on using a CRON job schedule.

homebridge-plugin, homebridge, homebridge-cron-switch, cron, schedule, scheduled, timed, timer

readme

Homebridge CRON Switch

A homebridge plugin that exposes to Homekit a switch that is momentarily turned on using a schedule derived from a CRON job expression.

Configration

Configuration can be done using Homebridge Config UI X.

Sample Configuration

"accessories": [
    {
      "accessory": "CronSwitch",
      "name": "Turn Something On Every 5 Seconds Switch",
      "cron": "0/5 * * * * *"
    }   
]

The above configuration will result in this:

Switch

Configuration Definition

  • accessory: The identifier for the accessory (CronSwitch).
  • name: The name of the switch exposed.
  • cron: The cron expression.