Newfangled Package Modernizer
Wondering what’s next for npm?Check out our public roadmap! »

homebridge-lighthouse

1.1.3 • Public • Published

homebridge-lighthouse

npm npm verified-by-homebridge

Valve Lighthouse 2.0 plugin for Homebridge

This plugin relies on BlueZ and D-Bus, so will not run on Windows or Mac.

Installation

  1. Install Homebridge using the official instructions.
  2. Install this plugin using: sudo npm install -g homebridge-lighthouse --unsafe-perm.
  3. Update your configuration file. See sample config.json snippet below.

Homebridge Configuration

Configuration sample:

"platforms"[
    {
        "platform": "lighthouse",
        "lighthouses": [
          "LHB-ADD18BFB",
          "LHB-02BF1E38"
        ],
        "scanTimeout": 10,
        "bleTimeout": 1,
        "updateFrequency": 60,
    }
]

Fields

  • "platform": Must always be "lighthouse". (required)
  • "lighthouses": An array of Lighthouses to connect to. If not set, all detected lighthouses will be added to HomeKit.
  • "retries": Number of times to retry sending power commands to Lighthouses. (Default: 3)
  • "scanTimeout": Number of seconds to search for Lighthouses at startup. (Default: 10)
  • "bleTimeout": Number of seconds to allow for BLE commands. (Defualt: 1.5)
  • "updateFrequency": Number of seconds between attempts to check status of the Lighthouses. (Default: 30)

D-Bus Configuration

If you are getting permission errors, you may need to create the file /etc/dbus-1/system.d/homebridge-lighthouse.conf with the following contents:

<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
  <policy user="homebridge">
   <allow own="org.bluez"/>
    <allow send_destination="org.bluez"/>
    <allow send_interface="org.bluez.GattCharacteristic1"/>
    <allow send_interface="org.bluez.GattDescriptor1"/>
    <allow send_interface="org.freedesktop.DBus.ObjectManager"/>
    <allow send_interface="org.freedesktop.DBus.Properties"/>
  </policy>
</busconfig>

If you are running Homebridge under an ID other than homebridge, change the policy user line above.

Install

npm i homebridge-lighthouse

DownloadsWeekly Downloads

12

Version

1.1.3

License

BSD-2-Clause

Unpacked Size

34.1 kB

Total Files

8

Last publish

Collaborators

  • avatar