homebridge-nest-accfactory 0.0.4-a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/LICENSE +176 -0
- package/README.md +121 -0
- package/config.schema.json +107 -0
- package/dist/HomeKitDevice.js +441 -0
- package/dist/HomeKitHistory.js +2835 -0
- package/dist/camera.js +1276 -0
- package/dist/doorbell.js +122 -0
- package/dist/index.js +35 -0
- package/dist/nexustalk.js +741 -0
- package/dist/protect.js +240 -0
- package/dist/protobuf/google/rpc/status.proto +91 -0
- package/dist/protobuf/google/rpc/stream_body.proto +26 -0
- package/dist/protobuf/google/trait/product/camera.proto +53 -0
- package/dist/protobuf/googlehome/foyer.proto +208 -0
- package/dist/protobuf/nest/messages.proto +8 -0
- package/dist/protobuf/nest/services/apigateway.proto +107 -0
- package/dist/protobuf/nest/trait/audio.proto +7 -0
- package/dist/protobuf/nest/trait/cellular.proto +313 -0
- package/dist/protobuf/nest/trait/debug.proto +37 -0
- package/dist/protobuf/nest/trait/detector.proto +41 -0
- package/dist/protobuf/nest/trait/diagnostics.proto +87 -0
- package/dist/protobuf/nest/trait/firmware.proto +221 -0
- package/dist/protobuf/nest/trait/guest.proto +105 -0
- package/dist/protobuf/nest/trait/history.proto +345 -0
- package/dist/protobuf/nest/trait/humanlibrary.proto +19 -0
- package/dist/protobuf/nest/trait/hvac.proto +1353 -0
- package/dist/protobuf/nest/trait/input.proto +29 -0
- package/dist/protobuf/nest/trait/lighting.proto +61 -0
- package/dist/protobuf/nest/trait/located.proto +193 -0
- package/dist/protobuf/nest/trait/media.proto +68 -0
- package/dist/protobuf/nest/trait/network.proto +352 -0
- package/dist/protobuf/nest/trait/occupancy.proto +373 -0
- package/dist/protobuf/nest/trait/olive.proto +15 -0
- package/dist/protobuf/nest/trait/pairing.proto +85 -0
- package/dist/protobuf/nest/trait/product/camera.proto +283 -0
- package/dist/protobuf/nest/trait/product/detect.proto +67 -0
- package/dist/protobuf/nest/trait/product/doorbell.proto +18 -0
- package/dist/protobuf/nest/trait/product/guard.proto +59 -0
- package/dist/protobuf/nest/trait/product/protect.proto +344 -0
- package/dist/protobuf/nest/trait/promonitoring.proto +14 -0
- package/dist/protobuf/nest/trait/resourcedirectory.proto +32 -0
- package/dist/protobuf/nest/trait/safety.proto +119 -0
- package/dist/protobuf/nest/trait/security.proto +516 -0
- package/dist/protobuf/nest/trait/selftest.proto +78 -0
- package/dist/protobuf/nest/trait/sensor.proto +291 -0
- package/dist/protobuf/nest/trait/service.proto +46 -0
- package/dist/protobuf/nest/trait/structure.proto +85 -0
- package/dist/protobuf/nest/trait/system.proto +51 -0
- package/dist/protobuf/nest/trait/test.proto +15 -0
- package/dist/protobuf/nest/trait/ui.proto +65 -0
- package/dist/protobuf/nest/trait/user.proto +98 -0
- package/dist/protobuf/nest/trait/voiceassistant.proto +30 -0
- package/dist/protobuf/nestlabs/eventingapi/v1.proto +83 -0
- package/dist/protobuf/nestlabs/gateway/v1.proto +273 -0
- package/dist/protobuf/nestlabs/gateway/v2.proto +96 -0
- package/dist/protobuf/nestlabs/history/v1.proto +73 -0
- package/dist/protobuf/root.proto +64 -0
- package/dist/protobuf/wdl-event-importance.proto +11 -0
- package/dist/protobuf/wdl.proto +450 -0
- package/dist/protobuf/weave/common.proto +144 -0
- package/dist/protobuf/weave/trait/audio.proto +12 -0
- package/dist/protobuf/weave/trait/auth.proto +22 -0
- package/dist/protobuf/weave/trait/description.proto +32 -0
- package/dist/protobuf/weave/trait/heartbeat.proto +38 -0
- package/dist/protobuf/weave/trait/locale.proto +20 -0
- package/dist/protobuf/weave/trait/network.proto +24 -0
- package/dist/protobuf/weave/trait/pairing.proto +8 -0
- package/dist/protobuf/weave/trait/peerdevices.proto +18 -0
- package/dist/protobuf/weave/trait/power.proto +86 -0
- package/dist/protobuf/weave/trait/schedule.proto +76 -0
- package/dist/protobuf/weave/trait/security.proto +343 -0
- package/dist/protobuf/weave/trait/telemetry/tunnel.proto +37 -0
- package/dist/protobuf/weave/trait/time.proto +16 -0
- package/dist/res/Nest_camera_connecting.h264 +0 -0
- package/dist/res/Nest_camera_connecting.jpg +0 -0
- package/dist/res/Nest_camera_off.h264 +0 -0
- package/dist/res/Nest_camera_off.jpg +0 -0
- package/dist/res/Nest_camera_offline.h264 +0 -0
- package/dist/res/Nest_camera_offline.jpg +0 -0
- package/dist/res/Nest_camera_transfer.jpg +0 -0
- package/dist/streamer.js +344 -0
- package/dist/system.js +3112 -0
- package/dist/tempsensor.js +99 -0
- package/dist/thermostat.js +1026 -0
- package/dist/weather.js +205 -0
- package/dist/webrtc.js +55 -0
- package/package.json +66 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to `homebridge-nest-accfactory` will be documented in this file. This project tries to adhere to [Semantic Versioning](http://semver.org/).
|
|
4
|
+
|
|
5
|
+
### alpha
|
|
6
|
+
|
|
7
|
+
Currently all releases are considered 'alpha' status, where things may or may not be working. Use at your own risk :-)
|
|
8
|
+
|
|
9
|
+
## v0.0.4 (2024-09-07)
|
|
10
|
+
|
|
11
|
+
- Camera/Doorbell support for snapshots and live video re-introduced
|
|
12
|
+
- HomeKit Secure Video recording support re-introduced
|
|
13
|
+
- Should support Nest Thermostat 4th Gen (untested)
|
|
14
|
+
- *might* have finally resolved audio sync issues for both live and recording
|
|
15
|
+
- Depending on the libraries present in ffmpeg binary, we limit functionality for camera/doorbells
|
|
16
|
+
- missing libspeex = no two-way audio
|
|
17
|
+
- missing libfdk_aac = no audio
|
|
18
|
+
- missing libx264 = no streaming/recording
|
|
19
|
+
- Cleanup fix for when removing a camera/doorbell from Nest/Google
|
|
20
|
+
- Fix for virtual weather device when missing configured city and/or state details
|
|
21
|
+
- Fix for retrieving data from Nest systems when using both a Nest and Google accounts
|
|
22
|
+
- Initial support newer Nest/Google camera/doorbell devices (streaming/recording - coming)
|
|
23
|
+
|
|
24
|
+
## v0.0.1 (2024-08-27)
|
|
25
|
+
|
|
26
|
+
- Inital re-coding from Nest_accfactory code base. These projects will now share a common code base
|
|
27
|
+
- Camera/Doorbell support currently removed will re-worked
|
package/LICENSE
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
package/README.md
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://homebridge.io"><img src="https://raw.githubusercontent.com/homebridge/branding/latest/logos/homebridge-color-round-stylized.png" height="140"></a>
|
|
3
|
+
</p>
|
|
4
|
+
<span align="center">
|
|
5
|
+
|
|
6
|
+
# Homebridge Nest Accfactory
|
|
7
|
+
|
|
8
|
+
[](https://www.npmjs.com/package/homebridge-nest-accfactory)
|
|
9
|
+
[](https://www.npmjs.com/package/homebridge-nest-accfactory)
|
|
10
|
+
[](https://paypal.me/n0rt0nthec4t)
|
|
11
|
+
|
|
12
|
+
</span>
|
|
13
|
+
|
|
14
|
+
Formally known as [Nest_accfactory](https://github.com/n0rt0nthec4t/Nest_accfactory), this is a Homebridge plugin I have developed to allow Nest devices to be used with HomeKit including having support for HomeKit Secure Video on doorbells and camera devices
|
|
15
|
+
|
|
16
|
+
## Supported Devices
|
|
17
|
+
|
|
18
|
+
The following Nest devices are supported
|
|
19
|
+
|
|
20
|
+
* Nest Thermostats (Gen 1, Gen 2, Gen 3, E, 2020, Gen 4)
|
|
21
|
+
* Nest Protects (Gen 1, Gen 2)
|
|
22
|
+
* Nest Temp Sensors (Gen 1)
|
|
23
|
+
* Nest Cameras (Cam Indoor, IQ Indoor, Outdoor, IQ Outdoor)
|
|
24
|
+
* Nest Doorbells (Gen 1)
|
|
25
|
+
|
|
26
|
+
The accessory supports connection to Nest using a Nest account OR a Google (migrated Nest account) account.
|
|
27
|
+
|
|
28
|
+
## Configuration
|
|
29
|
+
|
|
30
|
+
### Nest Account
|
|
31
|
+
|
|
32
|
+
If you have a Nest account, you will need to obtain an access token from the Nest web app. Simply go to https://home.nest.com in your browser and log in. Once that's done, go to https://home.nest.com/session in your browser, and you will see a long string that looks like this:
|
|
33
|
+
|
|
34
|
+
{"2fa_state":"enrolled","access_token":"XXX", ...}
|
|
35
|
+
|
|
36
|
+
The value of "access_token" near the start of the string (the XXX) (a long sequence of letters, numbers and punctuation beginning with b) can be entered into the plugin-configuration within Homebridge
|
|
37
|
+
|
|
38
|
+
There may be other keys labelled access_token further along in the string - please ignore these.
|
|
39
|
+
|
|
40
|
+
**Do not log out of home.nest.com, as this will invalidate your credentials. Just close the browser tab**
|
|
41
|
+
|
|
42
|
+
### Obtaining a Google cookie token for a Google Account
|
|
43
|
+
|
|
44
|
+
Google Accounts require an "issueToken" and "cookie". The values of "issueToken" and "cookies" are specific to your Google Account. To get them, follow these steps (only needs to be done once, as long as you stay logged into your Google Account).
|
|
45
|
+
|
|
46
|
+
1. Open a Chrome browser tab in Incognito Mode (or clear your cache).
|
|
47
|
+
2. Open Developer Tools (View/Developer/Developer Tools).
|
|
48
|
+
3. Click on 'Network' tab. Make sure 'Preserve Log' is checked.
|
|
49
|
+
4. In the 'Filter' box, enter issueToken
|
|
50
|
+
5. Go to home.nest.com, and click 'Sign in with Google'. Log into your account.
|
|
51
|
+
6. One network call (beginning with iframerpc) will appear in the Dev Tools window. Click on it.
|
|
52
|
+
7. In the Headers tab, under General, copy the entire Request URL (beginning with https://accounts.google.com). This is your "Issue Token" which can be entered into the plugin-configuration within Homebridge.
|
|
53
|
+
9. In the 'Filter' box, enter oauth2/iframe
|
|
54
|
+
10. Several network calls will appear in the Dev Tools window. Click on the last iframe call.
|
|
55
|
+
11. In the Headers tab, under Request Headers, copy the entire cookie (include the whole string which is several lines long and has many field/value pairs - do not include the cookie: name). This is your "Cookie" which can be entered into the plugin-configuration within Homebridge.
|
|
56
|
+
|
|
57
|
+
**Do not log out of home.nest.com, as this will invalidate your credentials. Just close the browser tab**
|
|
58
|
+
|
|
59
|
+
## config.json configuration
|
|
60
|
+
|
|
61
|
+
When using the plugin configuration using [homebridge-config-ui-x](https://github.com/homebridge/homebridge-config-ui-x), the config.json will be updated/generated with the configuration options available via the web-form. Additional options can be specified in the config.json directly.
|
|
62
|
+
|
|
63
|
+
Sample config.json entries below
|
|
64
|
+
```
|
|
65
|
+
{
|
|
66
|
+
"nest": {
|
|
67
|
+
"access_token": "<nest access token>",
|
|
68
|
+
"fieldTest": false
|
|
69
|
+
},
|
|
70
|
+
"google": {
|
|
71
|
+
"issuetoken": "<google issue token>",
|
|
72
|
+
"cookie": "<google cookie>",
|
|
73
|
+
"fieldTest": false
|
|
74
|
+
},
|
|
75
|
+
"options": {
|
|
76
|
+
"eveHistory": true,
|
|
77
|
+
"weather": true,
|
|
78
|
+
"elevation": 600,
|
|
79
|
+
"hksv": false
|
|
80
|
+
},
|
|
81
|
+
"devices": {
|
|
82
|
+
"XXXXXXXX": {
|
|
83
|
+
"exclude": false
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
"platform": "NestAccfactory"
|
|
87
|
+
}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
#### options
|
|
91
|
+
|
|
92
|
+
The following options are available in the config.json options object. These apply to all discovered devices.
|
|
93
|
+
|
|
94
|
+
| Name | Description | Default |
|
|
95
|
+
|-------------------|-----------------------------------------------------------------------------------------------|-----------|
|
|
96
|
+
| elevation | Height above sea level for the weather station | 0 |
|
|
97
|
+
| eveHistory | Provide history in EveHome application where applicable | true |
|
|
98
|
+
| ffmegPath | Path to an ffmpeg binary for us to use. Will look in current directory by default | |
|
|
99
|
+
| hksv | Enable HomeKit Secure Video for supported camera(s) and doorbell(s) | false |
|
|
100
|
+
| maxStreams | Maximum number of concurrent video streams in HomeKit for supported camera(s) and doorbell(s) | 2 |
|
|
101
|
+
| weather | Virtual weather station for each Nest/Google home we discover | false |
|
|
102
|
+
|
|
103
|
+
#### devices
|
|
104
|
+
|
|
105
|
+
The following options are available on a per-device level in the config.json devices object. The device is specified by using its serial number (in uppercase)
|
|
106
|
+
|
|
107
|
+
| Name | Description | Default |
|
|
108
|
+
|-------------------|-----------------------------------------------------------------------------------------------|-----------|
|
|
109
|
+
| chimeSwitch | Create a switch for supported doorbell(s) which allows the indoor chime to be turned on/off | false |
|
|
110
|
+
| doorbellCooldown | Time in seconds between doorbell press events | 60 |
|
|
111
|
+
| elevation | Height above sea level for the specific weather station | 0 |
|
|
112
|
+
| eveHistory | Provide history in EveHome application where applicable for the specific device | true |
|
|
113
|
+
| exclude | Exclude the device | false |
|
|
114
|
+
| humiditySensor | Create a seperate humidity sensor for supported thermostat(s) | false |
|
|
115
|
+
| localAccess | Enable local video streaming for supported supported camera(s) and doorbell(s) | false |
|
|
116
|
+
| motionCooldown | Time in seconds between detected motion events | 60 |
|
|
117
|
+
| personCooldown | Time in seconds between detected person events | 120 |
|
|
118
|
+
|
|
119
|
+
## Caveats
|
|
120
|
+
|
|
121
|
+
Nest_accfactory is a hobby project of mine, provided as-is, with no warranty whatsoever. I've been running it successfully at my home, but your mileage might vary.
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pluginAlias": "NestAccfactory",
|
|
3
|
+
"pluginType": "platform",
|
|
4
|
+
"singular": true,
|
|
5
|
+
"schema": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"nest": {
|
|
9
|
+
"title": "Nest Account",
|
|
10
|
+
"type": "object",
|
|
11
|
+
"expandable": true,
|
|
12
|
+
"properties": {
|
|
13
|
+
"access_token": {
|
|
14
|
+
"title": "Access Token",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"placeholder": "See https://github.com/n0rt0nthec4t/homebridge-nest-accfactory/#nest-account"
|
|
17
|
+
},
|
|
18
|
+
"fieldTest" : {
|
|
19
|
+
"title": "Field Test",
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"description": "Use field test API endpoints",
|
|
22
|
+
"default": false,
|
|
23
|
+
"condition": {
|
|
24
|
+
"functionBody": "return model.nest.access_token"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"google": {
|
|
30
|
+
"title": "Google Account",
|
|
31
|
+
"type": "object",
|
|
32
|
+
"expandable": true,
|
|
33
|
+
"properties": {
|
|
34
|
+
"issuetoken": {
|
|
35
|
+
"title": "Issue Token",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"placeholder": "See https://github.com/n0rt0nthec4t/homebridge-nest-accfactory/#google-account"
|
|
38
|
+
},
|
|
39
|
+
"cookie": {
|
|
40
|
+
"title": "Cookie",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"placeholder": "See https://github.com/n0rt0nthec4t/homebridge-nest-accfactory/#google-account"
|
|
43
|
+
|
|
44
|
+
},
|
|
45
|
+
"fieldTest" : {
|
|
46
|
+
"title": "Field Test",
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"description": "Use field test API endpoints",
|
|
49
|
+
"default": false,
|
|
50
|
+
"condition": {
|
|
51
|
+
"functionBody": "return model.google.issuetoken && model.google.cookie"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"options": {
|
|
57
|
+
"title": "Options",
|
|
58
|
+
"type": "object",
|
|
59
|
+
"expandable": true,
|
|
60
|
+
"properties": {
|
|
61
|
+
"eveHistory": {
|
|
62
|
+
"title": "EveHome History",
|
|
63
|
+
"description": "Provide history in EveHome application where applicable",
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"default": true
|
|
66
|
+
},
|
|
67
|
+
"weather": {
|
|
68
|
+
"title": "Virtual Weather",
|
|
69
|
+
"description": "Virtual weather station",
|
|
70
|
+
"type": "boolean",
|
|
71
|
+
"default": false
|
|
72
|
+
},
|
|
73
|
+
"elevation": {
|
|
74
|
+
"title": "Elevation",
|
|
75
|
+
"description": "Height above sea level for the weather station",
|
|
76
|
+
"type": "integer",
|
|
77
|
+
"default": 0,
|
|
78
|
+
"minimum": 0,
|
|
79
|
+
"maximum": 8848,
|
|
80
|
+
"condition": {
|
|
81
|
+
"functionBody": "return model.options.weather"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"hksv": {
|
|
85
|
+
"title": "HomeKit Secure Video",
|
|
86
|
+
"description": "Enable HomeKit Secure Video for supported camera(s) and doorbell(s)",
|
|
87
|
+
"type": "boolean",
|
|
88
|
+
"default": false
|
|
89
|
+
},
|
|
90
|
+
"ffmpegPath": {
|
|
91
|
+
"title": "Path to ffmpeg binary",
|
|
92
|
+
"type": "string",
|
|
93
|
+
"placeholder": "Path to an ffmpeg binary. By default, we look in HomeBridge user path"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"oneOf": [
|
|
100
|
+
{
|
|
101
|
+
"required": ["nest"]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"required": ["google"]
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|