Git Product home page Git Product logo

homebridge-lighthouse's Introduction

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.

homebridge-lighthouse's People

Stargazers

 avatar

Watchers

 avatar  avatar

homebridge-lighthouse's Issues

Can't turn off base stations

I am running Homebridge on a Raspberry Pi 4B and have installed the plugin via Homebridge UI Config X.

When I attempt to turn on my two base stations I am successful, but I still receive the following error:
LHB-XXXXXXXX: Error setting power: DBusError: In Progress

I am unable to turn off either base station and receive the same error as before.

I have also tried creating the homebridge-lighthouse.conf file as described in the readme, but the result is the same.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.