minamoanes / homebridge-homekit-control Goto Github PK
View Code? Open in Web Editor NEWControl native Apple HomeKit accessories via Homebridge
License: Apache License 2.0
Control native Apple HomeKit accessories via Homebridge
License: Apache License 2.0
/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/hap-controller/lib/protocol/pairing-protocol.js:415
throw new Error('M2: Accessory LTPK not yet set');
^
Error: M2: Accessory LTPK not yet set
at PairingProtocol.parsePairVerifyM2 (/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/hap-controller/lib/protocol/pairing-protocol.js:415:19)
at /usr/local/lib/node_modules/homebridge-homekit-control/node_modules/hap-controller/lib/transport/ip/http-client.js:237:40
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Shelly 1 HK Firmware
Version:2.11.2 Build: 20220812-225235/2.11.2-g1b146b4-master
Please make your plugin appear on the Homebridge server plugins page.
Thanks
Sorry for my ignorance, but I installed this plugin on Homebridge and I want to run the homekitPair command from the Hombridge terminal or from an ssh on the respberry pi and it tells me that it cannot find the command. Where am I failing?
I've tried two different accessories and gotten this error for both of them. One was a lamp and the other is a tcl TV.
This is the output after I enter the pin.
/usr/lib/node_modules/homebridge-homekit-control/node_modules/hap-controller/lib/protocol/pairing-protocol.js:415
throw new Error('M2: Accessory LTPK not yet set');
^
Error: M2: Accessory LTPK not yet set
at PairingProtocol.parsePairVerifyM2 (/usr/lib/node_modules/homebridge-homekit-control/node_modules/hap-controller/lib/protocol/pairing-protocol.js:415:19)
at /usr/lib/node_modules/homebridge-homekit-control/node_modules/hap-controller/lib/transport/ip/http-client.js:237:40
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Hi I don't seem to find information if your plugin supports occupancy sensors (which are basically motion sensors anyway).
Soon I will receive my Aqara FP2 which publishes occupancy sensors and I need to have those routed to MQTT somehow, I found your plugin which seems promising to connect it to homebridge (and then somehow report sensor states to MQTT, which most likely requires adding MQTT support to this plugin as well), but in order for that it needs to support motion sensors :)
Any info on this?
Has anyone had success installing this plugin on HB on Synology NAS? I'm getting a 404 error on install...
ERR! install response status 404 Not Found on https://github.com/abandonware/node-bluetooth-hci-socket/releases/download/0.5.3-11/bluetooth_hci_socket-0.5.3-11-node-v115-linux-x64.tar.gz
Full error log attached. Anyone have any suggestions?
homebridge-homekit-control-error-3.log
Afternoon, I'm having issues just getting the plugin installed. I'm running Homebridge on an always on Intel Mac for the time being... may get a synology NAS for multiple reasons and move it there, but for now...
My error codes are below, any help would be appreciated...
homebridge-homekit-control-error-2.log
And pasted:
DIR: /usr/local
CMD: npm install -g [email protected]
[##################] / reify:googleapis: timing reifyNode:node_modules/homebridge-home
@abandonware/[email protected] install
node-gyp-build
[##################] - reify:googleapis: timing reifyNode:node_modules/homebridge-home
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.odules/homebridge-home
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.dules/homebridge-home
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'._modules/homebridge-home
Traceback (most recent call last):eapis: timing reifyNode:node_modules/homebridge-home
File "/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 1496, in XcodeVersion
version_list = GetStdoutQuiet(["xcodebuild", "-version"]).splitlines()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 1557, in GetStdoutQuiet
raise GypError("Error %d running %s" % (job.returncode, cmdlist[0]))
gyp.common.GypError: Error 1 running xcodebuild
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/node-gyp/gyp/gyp_main.py", line 45, in
sys.exit(gyp.script_main())
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 688, in script_main
return main(sys.argv[1:])
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 680, in main
return gyp_main(args)
^^^^^^^^^^^^^^
File "/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 665, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File "/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 2648, in GenerateOutput
writer.Write(
File "/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 912, in Write
self.WriteSources(
File "/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 1395, in WriteSources
cflags = self.xcode_settings.GetCflags(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 662, in GetCflags
archs = self.GetActiveArchs(self.configname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 512, in GetActiveArchs
xcode_archs_default = GetXcodeArchsDefault()
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 119, in GetXcodeArchsDefault
xcode_version, _ = XcodeVersion()
^^^^^^^^^^^^^^
File "/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 1507, in XcodeVersion
version = CLTVersion() # macOS Catalina returns 11.0.0.0.1.1567737322
^^^^^^^^^^^^
File "/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 1545, in CLTVersion
return re.search(regex, output).groupdict()["version"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'groupdict'
gyp ERR! configure error ify:googleapis: timing reifyNode:node_modules/homebridge-home
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess. (/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/node-gyp/lib/configure.js:271:18)
gyp ERR! stack at ChildProcess.emit (node:events:514:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
gyp ERR! System Darwin 23.4.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/homebridge-homekit-control/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-homekit-control/node_modules/@abandonware/noble
gyp ERR! node -v v20.9.0
gyp ERR! node-gyp -v v10.0.1
gyp ERR! not ok
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/homebridge-homekit-control/node_modules/@abandonware/noble
npm ERR! command failed
npm ERR! command sh -c node-gyp-build
npm ERR! A complete log of this run can be found in: /Users/SiamacYamin-Afshar 1/.npm/_logs/2024-03-13T21_08_20_153Z-debug-0.log
Operation failed with code 1.
You can download this log file for future reference.
See https://github.com/homebridge/homebridge-config-ui-x/wiki/Troubleshooting for help.
I have an Eve Flare that doesn't show up when I try to pair. Do i need to specify bluetooth somehow in the homekit pair command?
Installation stops with the message that @abandonware/noble 1.9.2-23 does not support Android.
I do have @abandonware/noble v.1.9.2-23 and v.1.9.2-24 installed. I was able to install those separately by adding 'android' to OS list in package[-lock].json.
However, prior installation of @abandonware/noble v.1.9.2-23, and addition of 'android' to OS list under @abandonware/noble 1.9.2-23 section plus changing repository path to the local one (where I previously succeeded installing @abandonware/noble v.1.9.2-23 from) in package-lock.json of homebridge-homekit-control package, does not help. The installation does not check for nor recognize installed @abandonware/noble v.1.9.2-23 and stops with unsupported OS message.
Please include check for installed @abandonware/noble v.1.9.2-23 and/or somehow disable OS check by @abandonware/noble v.1.9.2-23.
Thank you.
I tried to install via Homebridge UI running within the onzu/homebridge docker container.
During the installation I got the following error message:
When try to pair a device I get the following error message:
root@homebridge:/var/lib/homebridge $ homekitPair -i eth0
/homebridge/node_modules/homebridge-homekit-control/node_modules/@abandonware/noble/lib/hci-socket/hci.js:80
this._socket = new BluetoothHciSocket();
^
Error: EAFNOSUPPORT, Address family not supported by protocol
at new Hci (/homebridge/node_modules/homebridge-homekit-control/node_modules/@abandonware/noble/lib/hci-socket/hci.js:80:18)
at new NobleBindings (/homebridge/node_modules/homebridge-homekit-control/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:25:15)
at module.exports (/homebridge/node_modules/homebridge-homekit-control/node_modules/@abandonware/noble/lib/resolve-bindings.js:13:12)
at Object.<anonymous> (/homebridge/node_modules/homebridge-homekit-control/node_modules/@abandonware/noble/index.js:2:51)
at Module._compile (node:internal/modules/cjs/loader:1218:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
at Module.load (node:internal/modules/cjs/loader:1081:32)
at Module._load (node:internal/modules/cjs/loader:922:12)
at Module.require (node:internal/modules/cjs/loader:1105:19)
at require (node:internal/modules/cjs/helpers:103:18) {
errno: 97,
code: 'EAFNOSUPPORT',
syscall: 'socket'
}
Node.js v18.13.0
Originally posted by mark-hahn March 6, 2024
I am getting an ecobee smart enhanced thermostat. I've read that this thermostat has local non-cloud wifi control using homekit. I want to interact with it with custom software.
Which of these features are supported?
Iโm looking to start using this plugin for a thermostat so that I can control it locally. Do you have plans to support it? If not, then maybe I can try sending a pull request.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.