New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

homebridge-multiple-switch

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-multiple-switch

Multiple switch platform for Homebridge

latest
Source
npmnpm
Version
1.6.0
Version published
Maintainers
1
Created
Source

homebridge-multiple-switch

CI npm GitHub issues GitHub license

A lightweight Homebridge plugin that lets you create multiple customizable dummy switches under a single accessory — configurable as Switch, Outlet, Lightbulb, or Fan. Supports Independent, Master, and Single switch modes.

Features

  • Grouped multiple switches in one HomeKit tile
  • Accessory type: switch, outlet, lightbulb, or fan
  • Independent Mode – All switches operate separately
  • Master Mode – One switch controls all others
  • Single Mode – Only one switch can be active at a time
  • Per-switch config support (type, auto-off delay, default state)
  • Switch states preserved across Homebridge restarts via cached accessories
  • Automatic cleanup of stale accessories on config change
  • Compatible with HomeKit and Siri

Installation

Install via Homebridge UI:

  • Open Plugins
  • Search for homebridge-multiple-switch
  • Click Install

Or install via terminal:

npm install -g homebridge-multiple-switch

Configuration

Configure from Homebridge UI or manually edit config.json:

{
  "platform": "MultipleSwitchPlatform",
  "name": "Multiple Switches",
  "switchBehavior": "single",
  "switches": [
    {
      "name": "Heater",
      "type": "outlet",
      "defaultState": true,
      "delayOff": 10000
    },
    {
      "name": "Fan",
      "type": "fan"
    },
    {
      "name": "Light",
      "type": "lightbulb",
      "delayOff": 5000
    }
  ]
}

Platform Options

FieldTypeRequiredDescription
namestringYesName of the platform instance
switchBehaviorstringNoindependent, master, or single
switchesarrayYesList of switches to create

Per-Switch Options

FieldTypeRequiredDescription
namestringYesName of the switch
typestringNoswitch, outlet, lightbulb, or fan
defaultStatebooleanNoInitial power state (default: false)
delayOffnumberNoAuto turn off after N milliseconds (default: 0)

Example Use Cases

  • Simulate smart plugs for automation testing
  • Trigger HomeKit scenes manually
  • Create virtual switches for non-HomeKit devices
  • Combine several virtual accessories under one tile

License

MIT © Azad Aydınlı

Keywords

homebridge-plugin

FAQs

Package last updated on 22 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts