1.0.2 • Published 7 years ago

homebridge-udp-multiswitch v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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

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