homebridge-switchbot-button-presser

Homebridge integration for the SwitchBot Button Presser

Usage no npm install needed!

<script type="module">
  import homebridgeSwitchbotButtonPresser from 'https://cdn.skypack.dev/homebridge-switchbot-button-presser';
</script>

README

Homebridge SwitchBot Button Presser

A Homebridge plugin for SwitchBot Button Presser.

Requirements

  • Currently only Linux is supported
  • gatttool needs to be installed

Installation

Install the npm package:

sudo npm install -g homebridge-switchbot-button-presser

Find your SwitchBot's MAC address (BLE MAC) with the official iOS/Android app, and add an accessory definition via the plugin options or manually in ~/.homebridge/config.json:

{
  "accessories": [
    {
      "accessory": "SwitchBotButtonPresser",
      "name": "Coffee Machine",
      "macAddress": "01:23:45:67:89:AB",
      "stateful": false
    }
  ]
}