Code Monkey home page Code Monkey logo

homebridge-automation-bluetooth-presence's Introduction

Automation - Bluetooth presence

Example config.json:

{
  "accessories": [
    {
      "accessory": "AutomationBluetoothPresence",
      "name": "Dad's iTag",
      "deviceId": "65504c9b6e5441f8927bbd768e455d4f",
      "gracePeriod": 600
    }
  ]
}

This accessory will create a motion sensor linked with a Bluetooth device.

When the device is found, the motion sensor is triggered. When the device is not seen for longer than gracePeriod, the motion sensor will stop detecting movement.

The plugin will show the history history in the Elgato's Eve app.

Installation

Before installing this library, make sure you have met all the system dependencies. See the Noble documentation. This plugin won't work unless all the system dependencies have been met.

Configuration options

Attribute Required Usage Example
name Yes A unique name for the accessory. It will be used as the accessory name in HomeKit. Dad's iTag
deviceId Yes The device ID. 65504c9b6e5441f8927bbd768e455d4f
gracePeriod No (default: 600) The number of seconds to wait for announcements before considering the device gone. 10 minutes (600 seconds) is recommended. 600 (seconds, equal to 10 mintues)

Find the device ID

Method 1 - Clone the repo

  1. Clone this repo
  2. Run npm install or yarn install in the folder you've cloned the repo
  3. Run npm run detect-devices. A list of devices will appear on screen. Grab the device ID from the list and add it to the config.

Method 2 - Install the plugin globally

  1. Run npm install homebridge-automation-bluetooth-presence -g
  2. Run automation-bt-detect-devices. A list of devices will appear on screen. Grab the device ID from the list and add it to the config.

Devices that can be monitored

You can track:

  • Phones
  • Tables
  • (some) Computers
  • Smart watches
  • Headphones / Earphones
  • Fitness trackers
  • Cheap key fobs like the "iTag" devices or Tile trackers

homebridge-automation-bluetooth-presence's People

Contributors

paolotremadio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

homebridge-automation-bluetooth-presence's Issues

Dependency not specified in installation documents

The bluetooth-hci-socket package needs to be installed. This should be included in the package.json file so it is installed automatically.

pi@raspi4:/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence $ automation-bt-detect-devices
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module 'bluetooth-hci-socket'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/noble/lib/hci-socket/hci.js:6:26)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)

A lot of "node-pre-gyp ERR!" and other

During installation, I unfortunately get a lot of errors. :/
Pi Zero W, Debian Stretch, Node 10.10.0
Several ways to try to install, didn't work for me.

Any Idea? Thx.

Linux raspberrypi 4.14.70+ #1144 Tue Sep 18 17:20:50 BST 2018 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Sep 30 20:57:01 2018 from 192.168.178.22
pi@raspberrypi:~ $ sudo chown -R $USER /usr/local && npm install homebridge-automation-bluetooth-presence -g

/usr/local/bin/automation-bt-detect-devices -> /usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/bin/automation-bt-detect-devices

> [email protected] install /usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/usb
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp WARN Tried to download(404): https://github.com/tessel/node-usb/releases/download/1.3.3/usb_bindings-v1.3.3-node-v64-linux-arm.tar.gz 
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
node-pre-gyp WARN Hit error Connection closed while downloading tarball file 
make: Entering directory '/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/usb/build'
  CC(target) Release/obj.target/libusb/libusb/libusb/core.o
make: Entering directory '/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/usb/build'
  CC(target) Release/obj.target/libusb/libusb/libusb/core.o
rm:   CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
cannot remove './Release/.deps/Release/obj.target/libusb/libusb/libusb/core.o.d.raw': No such file or directory
libusb.target.mk:138: recipe for target 'Release/obj.target/libusb/libusb/libusb/core.o' failed
make: *** [Release/obj.target/libusb/libusb/libusb/core.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/usb/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Linux 4.14.70+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/usb/src/binding/usb_bindings.node" "--module_name=usb_bindings" "--module_path=/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/usb/src/binding" "--napi_version=3" "--node_abi_napi=napi"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/usb
gyp ERR! node -v v10.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/usb/src/binding --napi_version=3 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
node-pre-gyp ERR! System Linux 4.14.70+
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/usb
node-pre-gyp ERR! node -v v10.10.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/usb/src/binding --napi_version=3 --node_abi_napi=napi' (1)

> [email protected] install /usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/bluetooth-hci-socket
> node-gyp rebuild

  CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
  CC(target) Release/obj.target/libusb/libusb/libusb/io.o
make: Entering directory '/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/bluetooth-hci-socket/build'
  CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
  CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
  CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
  CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
  CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
  CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’:
../src/BluetoothHciSocket.cpp:251:95: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
     Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
                                                                                               ^
In file included from ../src/BluetoothHciSocket.cpp:8:0:
../../nan/nan.h:979:46: note: declared here
   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                                              ^~~~~~~~~~~~
../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’:
../src/BluetoothHciSocket.cpp:275:72: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::Local<v8::Value> [1])’
   Local<Value> error = errorConstructor->NewInstance(1, constructorArgs);
                                                                        ^
In file included from /home/pi/.node-gyp/10.10.0/include/node/node.h:63:0,
                 from /home/pi/.node-gyp/10.10.0/include/node/node_buffer.h:25,
                 from ../src/BluetoothHciSocket.cpp:7:
/home/pi/.node-gyp/10.10.0/include/node/v8.h:3989:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
                                            ^~~~~~~~~~~
/home/pi/.node-gyp/10.10.0/include/node/v8.h:3989:44: note:   candidate expects 3 arguments, 2 provided
/home/pi/.node-gyp/10.10.0/include/node/v8.h:3992:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
                                            ^~~~~~~~~~~
/home/pi/.node-gyp/10.10.0/include/node/v8.h:3992:44: note:   candidate expects 1 argument, 2 provided
../src/BluetoothHciSocket.cpp:282:93: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
   Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
                                                                                             ^
In file included from ../src/BluetoothHciSocket.cpp:8:0:
../../nan/nan.h:979:46: note: declared here
   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                                              ^~~~~~~~~~~~
binding.target.mk:99: recipe for target 'Release/obj.target/binding/src/BluetoothHciSocket.o' failed
make: *** [Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/bluetooth-hci-socket/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Linux 4.14.70+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/bluetooth-hci-socket
gyp ERR! node -v v10.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/homebridge-automation-bluetooth-presence/node_modules/xpc-connection):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/homebridge-automation-bluetooth-presence/node_modules/usb):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-pre-gyp install --fallback-to-build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/homebridge-automation-bluetooth-presence/node_modules/bluetooth-hci-socket):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

+ [email protected]
updated 1 package in 175.711s
pi@raspberrypi:~ $ ../libusb/libusb/os/linux_usbfs.c:2695:1: fatal error: opening dependency file ./Release/.deps/Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o.d.raw: No such file or directory
 };
 ^
compilation terminated.
libusb.target.mk:138: recipe for target 'Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o' failed
make: *** [Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/usb/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Linux 4.14.70+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/usb/src/binding/usb_bindings.node" "--module_name=usb_bindings" "--module_path=/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/usb/src/binding" "--napi_version=3" "--node_abi_napi=napi"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/usb
gyp ERR! node -v v10.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 

Installation problem

Hi there,

I get the following error while installing your plugin:

> [email protected] install /usr/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/curve25519-n                                                     > node-gyp rebuild                                                                                                                                                        gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.12.0"                                                                       gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/curve25519-n/.node-gyp"      gyp WARN install got an error, rolling back install                                  gyp WARN install got an error, rolling back install                                  gyp ERR! configure error                                                             gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/curve25519-n/.node-gyp'               gyp ERR! System Linux 4.14.70-v7+                                                    gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"                                                              gyp ERR! cwd /usr/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/curve25519-n                                                                     gyp ERR! node -v v8.12.0                                                             gyp ERR! node-gyp -v v3.8.0                                                          gyp ERR! not ok                                                                      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/homebridge-automation-bluetooth-presence/node_modules/xpc-connection):                 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})                                                                                        npm ERR! code ELIFECYCLE                                                             npm ERR! errno 1                                                                     npm ERR! [email protected] install: `node-gyp rebuild`                              npm ERR! Exit status 1                                                               npm ERR!                                                                             npm ERR! Failed at the [email protected] install script.                            npm ERR! This is probably not a problem with npm. There is likely additional logging output above.                                                                                                                                                             npm ERR! A complete log of this run can be found in:                                 npm ERR!     /root/.npm/_logs/2018-10-12T03_01_52_389Z-debug.log                     sudo npm install homebridge-automation-bluetooth-presence -g  27.97s user 3.08s system 119% cpu 26.059 total                                                              

Anything I can do about that?

Best regards

Cannot find module 'bluetooth-hci-socket'

Hi,
if I let run sudo automation-bt-detect-devices I get this error.

internal/modules/cjs/loader.js:584
throw err;
^

Error: Cannot find module 'bluetooth-hci-socket'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/usr/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/noble/lib/hci-socket/hci.js:6:26)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)

pi@386pi:$ node -v
v10.15.3
pi@386pi:
$ npm -v
6.9.0

Thanks for help.

regards

Can't see my Bluetooth devices

Hey, I can't see all my Bluetooth devices.

`pi@raspberrypi2:~ $ sudo npm run detect-devices
npm ERR! path /home/pi/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-09-11T20_11_10_307Z-debug.log`

Type of Sensor Change Option

Hey there, Is it possible to change the sensor type from motion sensor to perhaps occupancy sensor by a future update? It might be useful to change the sensor to support better application of this plugin.

Trigger not always up-to-date

I am using the following bluetooth beacon:https://www.amazon.de/gp/product/B00SJEB2C4/ref=ppx_yo_dt_b_asin_image_o00_s00?ie=UTF8&psc=1

Sometimes the beacon is not triggerd in the home app while it is only like 1 meter away. After running the "automation-bt-detect-devices" command, the beacon status is again up to date with a signal of approx 50%.

My Setup:
{
"accessories": [
{
"accessory": "AutomationBluetoothPresence",
"name": "Jens",
"deviceId": "mac adress of beacon",
"gracePeriod": 600
}
]
}

Error (The requested accessory 'AutomationBluetoothPresence' was not registered by any plugin)

Hey,

I have an error that Plugin was not installed.

[2020-3-16 7:07:22] Error: The requested accessory 'AutomationBluetoothPresence' was not registered by any plugin.
Mär 16 07:07:22 raspberrypi2 homebridge[9056]:     at API.accessory (/usr/local/lib/node_modules/homebridge/lib/api.js:64:13)
Mär 16 07:07:22 raspberrypi2 homebridge[9056]:     at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:297:42)
Mär 16 07:07:22 raspberrypi2 homebridge[9056]:     at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:91:38)
Mär 16 07:07:22 raspberrypi2 homebridge[9056]:     at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:59:10)
Mär 16 07:07:22 raspberrypi2 homebridge[9056]:     at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
Mär 16 07:07:22 raspberrypi2 homebridge[9056]:     at Module._compile (internal/modules/cjs/loader.js:1158:30)
Mär 16 07:07:22 raspberrypi2 homebridge[9056]:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
Mär 16 07:07:22 raspberrypi2 homebridge[9056]:     at Module.load (internal/modules/cjs/loader.js:1002:32)
Mär 16 07:07:22 raspberrypi2 homebridge[9056]:     at Function.Module._load (internal/modules/cjs/loader.js:901:14)
Mär 16 07:07:22 raspberrypi2 homebridge[9056]:     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
Mär 16 07:07:22 raspberrypi2 homebridge[9056]: [2020-3-16 7:07:22] Got SIGTERM, shutting down Homebridge...
Mär 16 07:07:27 raspberrypi2 systemd[1]: homebridge-people.service: Main process exited, code=exited, status=143/n/a
Mär 16 07:07:27 raspberrypi2 systemd[1]: homebridge-people.service: Unit entered failed state.
Mär 16 07:07:27 raspberrypi2 systemd[1]: homebridge-people.service: Failed with result 'exit-code'.

My Config:

"accessories" : [
    {
      "accessory" : "AutomationBluetoothPresence",
      "deviceId" : "2c:fc:e4:00:da:8a",
      "gracePeriod" : 300,
      "name" : "CTEK"
    },
    {
      "accessory" : "AutomationBluetoothPresence",
      "deviceId" : "ff:ff:3d:14:80:78",
      "gracePeriod" : 300,
      "name" : "iTag"
    },
    {
      "accessory" : "AutomationBluetoothPresence",
      "deviceId" : "ff:ff:c5:15:f5:f8",
      "gracePeriod" : 300,
      "name" : "iTag2"
    }
  ]

How to Remove plugin

Hi after Remove the plugin i have this error,

Failed to parse plugin "homebridge-automation-bluetooth-presence": ENOENT: no such file or directory, open '/usr/local/lib/node_modules/homebridge-automation-bluetooth-presence/package.json'

Can you plz help me to Remove the rest of it .

unable to load

I get the following in the log:

[4/7/2022, 5:57:10 PM] The plugin "homebridge-automation-bluetooth-presence" defines 'homebridge' and/or 'hap-nodejs' in their 'dependencies' section, meaning they carry an additional copy of homebridge and hap-nodejs. This not only wastes disk space, but also can cause major incompatibility issues and thus is considered bad practice. Please inform the developer to update their plugin!
[4/7/2022, 5:57:10 PM] ====================
[4/7/2022, 5:57:10 PM] ERROR LOADING PLUGIN homebridge-automation-bluetooth-presence:
[4/7/2022, 5:57:10 PM] Error: Cannot find module 'xpc-connection'
Require stack:

  • /opt/homebrew/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/noble/lib/mac/highsierra.js
  • /opt/homebrew/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/noble/lib/mac/bindings.js
  • /opt/homebrew/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/noble/lib/resolve-bindings.js
  • /opt/homebrew/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/noble/index.js
  • /opt/homebrew/lib/node_modules/homebridge-automation-bluetooth-presence/index.js
  • /opt/homebrew/lib/node_modules/homebridge/lib/plugin.js
  • /opt/homebrew/lib/node_modules/homebridge/lib/pluginManager.js
  • /opt/homebrew/lib/node_modules/homebridge/lib/server.js
  • /opt/homebrew/lib/node_modules/homebridge/lib/cli.js
  • /opt/homebrew/lib/node_modules/homebridge/bin/homebridge
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object. (/opt/homebrew/lib/node_modules/homebridge-automation-bluetooth-presence/node_modules/noble/lib/mac/highsierra.js:7:21)
    at Module._compile (node:internal/modules/cjs/loader:1099:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:999:19)

Sensor type

Please change the sensor type to the presence sensor (this would be logical).
You can also take the signal level and display it in the Charge level field.

thank!

Supported Devices

Heya!

What is the prerequisite of seeing bluetooth devices?

I have an Apple Watch and a Tile and neither devices are particularly 'discoverable'. That's a tendancy with Apple products I think.

Will I need to invest in a cheapo tag device?

Thanks,

Sam

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.