Socket
Socket
Sign inDemoInstall

homebridge-udp-multiswitch-multitarget

Package Overview
Dependencies
0
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    homebridge-udp-multiswitch-multitarget

Switches to send UDP requests to multiple targets (forked from homebridge-udp-multiswitch)


Version published
Weekly downloads
3
decreased by-62.5%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

homebridge-udp-multiswitch

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

*Forked from homebridge-http-homebridge


Creating and maintaining Homebridge plugins consume a lot of time and effort, if you would like to share your appreciation, feel free to "Star" or donate.

Click here to review more of my plugins.


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

  1. Install homebridge using: npm install -g homebridge
  2. Install homebridge-http using: npm install -g homebridge-udp-multiswitch
  3. Update your config file

Keywords

FAQs

Last updated on 31 Mar 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc