New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

homebridge-lighthouse

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-lighthouse

Valve Lighthouse 2.0 plugin for Homebridge

  • 1.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 17 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc