πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
DemoInstallSign in
Socket

homebridge-udp-multiswitch

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-udp-multiswitch

Simple UDP switches for Homebridge - stateful and radio-button/multi-switch (forked from homebridge-http-multiswitch)

1.0.2
latest
Source
npm
Version published
Weekly downloads
1
-87.5%
Maintainers
1
Weekly downloads
Β 
Created
Source

homebridge-udp-multiswitch

Simple UDP switches for Homebridge - stateful and radio-button/multi-switch switches

*Forked from homebridge-http-homebridge

Switch Services

Switch (standard on/off)

Meant to be used as a standard on/off switch. Light, projector, fan, etc.

{
        "accessory": "UdpMultiswitch",
        "switch_type": "Switch",
        "name": "My Projector",
        "host": "192.168.0.X",
        "port": 80,
        "on_payload": "[YOUR_UDP_ON_PAYLOAD]",
        "off_payload": "[YOUR_UDP_OFF_PAYLOAD]"
}

Multiswitch (radio buttons)

Meant to be used as a switcher, where only one device is ever on. Automaticaly set power state as off for the other devices.

{
    "accessory": "UdpMultiswitch",
    "switch_type": "Multiswitch",
    "name": "My Multiswitch",
    "host": "192.168.0.X",
    "port": 80,
    "multiswitch": [
                { "name": "Apple TV Mode", "payload" : "43" },
                { "name": "PC Mode", "payload" : "42786sdf787" },
                { "name": "Android", "payload" : "l1479461871215" },
            ]
}

Configuration Params

ParameterDescriptionRequired
namename of the accessory
switch_typeSwitch or Multiswitchβœ“
hostendpoint for whatever is receiving these requestsβœ“
port80 (default)
on_payload (only Switch)payload for the on stateβœ“
off_payload (only Switch)payload for the off stateβœ“
multiswitch (only Multiswitch)list of inputs for the Multiswitch - order is respectedβœ“

Help

  • Make sure specify a port in the if necessary. (i.e. "port" : "80")

Installation

  • Install homebridge using: npm install -g homebridge
  • Install homebridge-http using: npm install -g homebridge-udp-multiswitch
  • Update your config file

Keywords

homebridge-plugin

FAQs

Package last updated on 31 Dec 2016

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