homebridge-lighthouse
v1.1.4
Published
Valve Lighthouse 2.0 plugin for Homebridge
Downloads
20
Maintainers
Readme
homebridge-lighthouse
Valve Lighthouse 2.0 plugin for Homebridge
This plugin relies on BlueZ and D-Bus, so will not run on Windows or Mac.
Installation
- Install Homebridge using the official instructions.
- Install this plugin using:
sudo npm install -g homebridge-lighthouse --unsafe-perm
. - 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.