homebridge-udp-multiswitch-multitarget

0.0.37 • Public • Published

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

Parameter Description Required
name name of the accessory
switch_type Switch or Multiswitch
host endpoint for whatever is receiving these requests
port 80 (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

Package Sidebar

Install

npm i homebridge-udp-multiswitch-multitarget

Weekly Downloads

3

Version

0.0.37

License

MIT

Unpacked Size

11.9 kB

Total Files

5

Last publish

Collaborators

  • jaspersnowolf