homebridge-clapper
v1.0.1
Published
A clapper switch for homebridge using multicast messages
Downloads
2
Readme
Homebridge Clapper
This uses multicast messaging as a publisher/subscriber system over the local network, so no Internet required, just WiFi. I'm using a Tessel 2 with an ambient sound module to detect the claps and send the messages to this plugin. To be honest, this could eventually be generalized into a "multicast switch" module that listens for "on" or "off" events over the local network, but the first purpose was to be a clap detector so here we are.
Install
Install homebridge on your device if you haven't already.
Then install the plugin:
npm install -g homebridge-clapper
Example config.json
{
"accessories": [
{
"accessory": "Clapper",
"name": "Tessel Clapper"
}
]
}
TODO: instructions about setting up a Tessel 2, or other device that can run Node.js, to emit multicast messages
Testing
No unit tests because this is a personal project, so 🤷.
Running the plugin locally, check out the homebridge docs.