/homebridge-switchbot-bluetooth

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Homebridge SwitchBot Bluetooth Plugin

An attempt to make a more robust SwitchBot bluetooth plugin.

Supports:

Installation

  1. Search for "SwitchBot" on the plugin screen of Homebridge Config UI X
  2. Find: @ale770/homebridge-switchbot-bluetooth
  3. Click Install

Configuration

 "accessories": [
        {
            "name": "SwitchBot",
            "type": "bot",
            "deviceId": "XX:XX:XX:XX:XX:XX",
            "scanCooldown": 1000,
            "scanRetries": 5,
            "scanDuration": 5000,
            "accessory": "SwitchBot Bluetooth"
        }
    ]

Configuration Properties

  • name (Default: SwitchBot)
  • type (Default: bot)
  • deviceId (Required, see below)
  • scanCooldown (Default: 1000 milliseconds)
  • scanDuration (Default: 5000 milliseconds)
  • scanRetries (Default: 5)

You can find your deviceId from the SwitchBot App

  1. Download SwitchBot App on App Store or Google Play Store
  2. Register a SwitchBot account and log in into your account
  3. Click on Device wanting to connect too plugin
    • Click the Settings Gear
    • Click Device Info
    • Copy BLE Mac aka deviceId
  4. Input your deviceId into the Device Config