User defined switches for http requests. Simple on/off or multiswitch radio buttons. Useful for lights, A/V systems, home automation, whatever
Meant to be used as a simple on/off switch.==> light, projector, fan, garage door, car ignition (bad idea)
{
"accessory": "Switcheroo", // remember this *must* be 'Switcheroo'
"type": "switch",
"name": "Kitchen Light",
"host": "http://192.168.0.XXX/kitchen",
"on" : "/light/on",
"off" : "/light/off"
}
Works like a switcher - only one input can ever be on at one time.==> A/V input switcher, KVM control, temperature settings, really bad piano
Define your multiswitch
with whatever name
you want to appear as the input title on Homekit controls. Then, the appropriate endpoint path
to call. Complete http endpoints are constructed as host
+ path
.Currently only built to support one http method per switch service, meaning, all endpoint calls will be either GET
(default) or POST
etc.
{
"accessory": "Switcheroo",
"type": "multiswitch",
"name": "My HDMI Switcher",
"host": "http://192.168.0.10X:8080", // don't forget to specify a port, if necessary
"multiswitch": [
{ "name" : "Apple TV" , "path" : "/switcher/appletv" },
{ "name" : "HDMI" , "path" : "/switcher/aux" },
{ "name" : "Chromecast" , "path" : "/switcher/chrome" },
{ "name" : "PS4" , "path" : "/switcher/ps4" },
{ "name" : "Raspberry Pi" , "path" : "/switcher/pi" }
]
}
Parameter | Description | Required |
---|---|---|
name |
name of the accessory | ✓ |
type |
switch or multiswitch |
✓ |
host |
url for whatever is receiving these requests | ✓ |
on / off |
(only switch) endpoint paths for the on/off states | ✓ |
on_body / off_body |
(only switch) bodies for on/off state requests | |
multiswitch |
(only multiswitch) list of inputs for the multiswitch - name and endpoint path |
✓ |
http_method |
GET (default), POST , PUT , DELETE |
|
username |
username for request | |
password |
password for request | |
send_immediately |
option for request | |
manufacturer |
will show in Home app description of this Homekit accessory, ex. 'LG' | |
model |
will show in Home app description of this Homekit accessory, ex. 'HD 2000' |
Running homebridge
manually will allow you to see the Switcheroo console logs.
"base_url" : "http://192.168.0.XXX:2000"
)http_method
is begin used. Switcheroo defaults to GET
Read about an example Raspberry Pi + Homebridge setup guide with this package here
npm install -g homebridge
npm install -g homebridge-switcheroo
1.X.X
multiswitch
itemmanufacturer
, model
paramsswitch_type
-> type
Switch
-> switch
Multiswitch
-> multiswitch
base_url
-> host
on_url
-> on
off_url
-> off
Homebridge 是一个轻量级 NodeJS 服务器,它模拟 iOS HomeKit API,提供从 HomeKit 到“智能家居”设备制造商提供的各种第三方 API 的基本桥接。通过 Homebridge 的桥接,可以让 Siri 控制完全不支持 HomeKit 的设备。 此外 Homebridge 支持插件。
homebridge-vsx homebridge-vsx is a plugin made for homebridge,which allows switching on and off your Pioneer AV receiver. All AV receivers (VSX and SC),which work with the iControl AV5 App are support
homebridge-sesame Control and monitor your Sesame smart lock with HomeKit integration. Prerequisites Installation of Homebridge iOS 11 or later Sesame lock with enabled cloud integration Sesame Wifi A
homebridge-panasonictv A homebridge plugin for turning on and off your Panasonic Viera TV. The plugin also has experimental support for changing the volume and channel. These characteristics are not r
Quick Start | Contribute A Wake on Lan plugin for Homebridge Turn your PCs, laptops, servers and more on and off through Siri Quick Start To install the plugin, head over to the machine with Homebridg
Docker Homebridge This Alpine/Ubuntu Linux based Docker image allows you to run Nfarina's Homebridge on your home network which emulates the iOS HomeKit API. This is a multi-arch image and will also r