Commit Graph

50 Commits

Author SHA1 Message Date
Alessio Dionisi 4740bf1fc5 New bridge configs
"bridge": {
    "manufacturer": "Manufacturer here",
    "serialNumber": "Serial number here",
    "model": "Model here"
}
2016-09-13 13:54:37 +02:00
cflurin 5944365bc6 Warning config.json not found 2016-09-06 14:49:53 +02:00
Khaos Tian 0af8a43dc9 Expose platform accessory category to hap-nodejs
Fix an error in plugin config look up
2016-04-08 23:50:18 -07:00
Khaos Tian 620c8473b8 #572 2016-03-20 22:12:47 -07:00
Danimal4326 df8508a38f Prepend date/time to logger messages 2016-03-03 12:24:54 -06:00
Khaos Tian 8cb22efb83 Add a example to use "identify" event 2016-03-01 00:25:05 -08:00
Khaos Tian f6df85695d Forward identity only if plugin cares about event 2016-02-28 18:19:46 -08:00
Khaos Tian 32e776203f Forward "identify" event 2016-02-28 18:17:46 -08:00
Khaos Tian 012005ddc7 Save cached accessories to persist storage when shutting down homebridge. 2016-02-18 14:50:55 -08:00
Khaos Tian 27ffd6e944 Merge branch 'master' into plugin-2 2016-02-18 14:49:05 -08:00
Khaos Tian 815ea7abea Track setup session termination 2016-02-17 17:45:47 -08:00
Tor Arne Vestbø cf80e4f2da Handle SIGINT and SIGTERM to enable clean shutdown of Homebridge
For now we terminate the process, but in the future we may tell the
server to stop, which may possibly include some teardown logic.

Handling these signals also make it easier to put Homebridge inside
a docker container, as docker uses SIGTERM to tell a container process
to stop, and passes SIGINT when attached to the container and receiving
a Ctrl+C.
2016-02-18 00:36:56 +01:00
Khaos Tian 40266af8b2 Add the ability to remove services/characteristics 2016-02-17 13:18:25 -08:00
Nick Farina 57beabf0b4 Add comment 2016-02-17 10:43:54 -08:00
Khaos Tian d3c77a4cda Merge branch 'master' into plugin-2 2016-02-17 10:41:32 -08:00
Khaos Tian 1da98bb19f Add the insecure launching option to homebridge cli. 2016-02-17 10:37:11 -08:00
Khaos Tian 902fdded65 Address the problem that callback get invoked with wrong signature 😅 2016-02-13 22:21:54 -08:00
Khaos Tian 8de375a4b0 Fix the issue with transaction ID
Update hap-nodejs to fix #497-183825263
2016-02-13 21:57:11 -08:00
Raoul 7dd8e12791 Update platformAccessory.js
Some more copy-and-paste errors in the same line.
Was wondering why my platform was failing, but never looked to that simple lines of code :-(
2016-02-08 23:06:32 +01:00
Raoul c93b0b0df1 Update platformAccessory.js
Small type, big result.
2016-02-08 22:18:54 +01:00
Raoul 9c8812da70 new getServiceByUUIDAndSubtype(UUID, subtype) function
Some platforms may have accessories that contain more than one service of a given type, such as multiple lightbulbs.
2016-02-08 00:01:44 +01:00
Khaos Tian e1334c5196 Init Plugin 2.0 2016-01-30 18:36:55 -08:00
Khaos Tian 74e1cf257a Update hap-nodejs to 0.1.1
Addressed #478
2016-01-21 21:20:07 -08:00
Nathan Henrie 15bf22805c Add test for valid username
Like a MAC address, a valid username can only contain 6 pairs of
hexadecimal characters, and for homebridge purposes must be
colon-separated. This adds a simple regex test for a proper username,
since I just spent nearly 24h trying to debug an issue that all came
down to not realizing that a MAC address could only have letters A-F
(see https://github.com/nfarina/homebridge/issues/385).
2015-12-27 10:29:21 -07:00
Nick Farina ec839b2dbc Tweaks to plugin load error detection 2015-11-11 15:16:29 -08:00
Jan Philipp affe3fde63 Provide and output proper existing error message
If the found plugin / package does not fulfill some specs (i.e. does not contain the keyword `homebridge-plugin`), it will be rejected with an error. Without that change nobody will be notified WHY the plugin has been rejected/skipped.
2015-11-08 17:31:02 +01:00
Nick Farina e3a5c5a96a More helpful plugin load error logging; Publish v0.2.11 2015-11-05 10:48:32 -08:00
Nick Farina 7bfc5ee84d Expose User object to Plugin API
Closes #379
Changes #378
2015-11-04 15:59:38 -08:00
Nick Farina a5de3f820f Don't search the same plugin path twice
Fix part of #379
2015-11-04 15:50:23 -08:00
Nick Farina f2ad339a13 CLI setting for custom homebridge "home" path
Fixes #378
2015-11-04 09:47:48 -08:00
Nick Farina 15357a5fe8 Fix old-style accessory JSON
Closes #375
2015-11-04 04:35:22 -08:00
Nick Farina e3178e5fa4 Fix -D flag
Fixes #376
2015-11-04 04:31:52 -08:00
Nick Farina 2470f26451 Better handling of custom plugin paths 2015-11-03 21:14:25 -08:00
Nick Farina abc6ccfae7 Require plugin name during registration 2015-11-03 15:02:52 -08:00
Nick Farina 52d3a9a96e First pass at README update. 2015-11-02 15:30:29 -08:00
Nick Farina 15cc98217b Move bugged peerDependencies -> engines 2015-11-02 12:04:18 -08:00
Nick Farina 1779ddd754 Fix "once" import 2015-10-20 12:00:27 -07:00
Nick Farina d443286dcb Fix platform logger 2015-10-20 11:36:06 -07:00
Nick Farina 27b39cbfa0 New Plugin API
- Homebridge calls single exported initializer function and passes an
API object
  - No more require() for HAP classes (doesn't play well with plugin
structure)
2015-10-18 22:20:06 -07:00
Nick Farina a3c0df1c7c Plugin support
- Homebridge is now designed to be `npm install`d globally and
executed via "homebridge" script
  - Remove all specific accessories/platforms except for an example
  - New internal structure and "cli"
2015-10-18 16:34:21 -07:00
Alistair Galbraith c1f1613763 Removed submodule for HAP-NodeJS and moved to NPM
It seemed to be easier all around to use NPM to manage the dependancy on HAP-NodeJS.

This PR removes the submodule, and adjusts the paths of all checked in shims to reference the NPM module instead.

I also updated the documentation to reflect the simpler install ;)
2015-07-03 21:29:35 -07:00
Alistair Galbraith 238fd3c913 Functioning LCD, Arm State, Target, Current notifications 2015-07-01 18:09:13 -07:00
Jon Maddox e3786b1836 bump HAP-NodeJS to get the final async onRead stuff 2015-06-26 16:19:38 -04:00
Jon Maddox 08ce5a9ecc bump HAP-NodeJS again to pull in async onreads 2015-06-25 01:42:21 -04:00
Jon Maddox 27d18abefe bump the version of HAP-NodeJS to get onRead support 2015-06-24 21:22:03 -04:00
Jon Maddox 31835112ed bump HAP-NodeJS 2015-06-09 08:07:08 -04:00
Nick Farina cce6460a3d Update HAP-NodeJS to latest + README 2015-05-02 18:14:17 -07:00
Nick Farina 6a188ec030 Update HAP-NodeJS lib with fixes. 2015-04-11 21:06:10 -07:00
Nick Farina 39dc482da6 Update HAP-NodeJS to latest 2015-02-01 13:27:30 -08:00
Nick Farina ea029d492b Initial Commit
Includes HAP-NodeJS as Git submodule
2014-11-30 16:32:51 -08:00