homebridge-nest-accfactory 0.0.4-a → 0.0.6

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.
@@ -1,7 +1,7 @@
1
1
  // Nest Thermostat
2
2
  // Part of homebridge-nest-accfactory
3
3
  //
4
- // Code version 3/9/2024
4
+ // Code version 12/9/2024
5
5
  // Mark Hulskamp
6
6
  'use strict';
7
7
 
@@ -658,7 +658,7 @@ export default class NestThermostat extends HomeKitDevice {
658
658
  this?.log?.info &&
659
659
  this.log.info(
660
660
  'Fan setup on thermostat "%s" has changed. Fan was',
661
- this.deviceData.description,
661
+ deviceData.description,
662
662
  this.fanService === undefined ? 'removed' : 'added',
663
663
  );
664
664
  }
@@ -693,7 +693,7 @@ export default class NestThermostat extends HomeKitDevice {
693
693
  this?.log?.info &&
694
694
  this.log.info(
695
695
  'Dehumidifier setup on thermostat "%s" has changed. Dehumidifier was',
696
- this.deviceData.description,
696
+ deviceData.description,
697
697
  this.dehumidifierService === undefined ? 'removed' : 'added',
698
698
  );
699
699
  }
@@ -732,7 +732,7 @@ export default class NestThermostat extends HomeKitDevice {
732
732
  });
733
733
  }
734
734
 
735
- this?.log?.info && this.log.info('Heating/cooling setup on thermostat on "%s" has changed', this.deviceData.description);
735
+ this?.log?.info && this.log.info('Heating/cooling setup on thermostat on "%s" has changed', deviceData.description);
736
736
  }
737
737
 
738
738
  // Update current mode temperatures
@@ -1013,8 +1013,7 @@ export default class NestThermostat extends HomeKitDevice {
1013
1013
  }
1014
1014
 
1015
1015
  if (typeof EveHomeSetData?.vacation === 'boolean') {
1016
- this.deviceData.vacation_mode = EveHomeSetData.vacation.status;
1017
- this.set({ vacation_mode: this.deviceData.vacation_mode });
1016
+ this.set({ vacation_mode: EveHomeSetData.vacation.status });
1018
1017
  }
1019
1018
  if (typeof EveHomeSetData?.programs === 'object') {
1020
1019
  /* EveHomeSetData.programs.forEach((day) => {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "displayName": "Nest Accfactory",
3
3
  "name": "homebridge-nest-accfactory",
4
4
  "homepage": "https://github.com/n0rt0nthec4t/homebridge-nest-accfactory",
5
- "version": "0.0.4a",
5
+ "version": "0.0.6",
6
6
  "description": "Homebridge support for Nest/Google devices including HomeKit Secure Video (HKSV) support for doorbells and cameras",
7
7
  "license": "Apache-2.0",
8
8
  "author": "n0rt0nthec4t",
@@ -35,7 +35,9 @@
35
35
  },
36
36
  "keywords": [
37
37
  "homebridge-plugin",
38
+ "homebridge",
38
39
  "hksv",
40
+ "homekit secure video",
39
41
  "nest",
40
42
  "google",
41
43
  "doorbell",
@@ -43,13 +45,14 @@
43
45
  "thermostat",
44
46
  "temperature",
45
47
  "smoke",
46
- "sensor"
48
+ "sensor",
49
+ "floodlight"
47
50
  ],
48
51
  "devDependencies": {
49
52
  "@eslint/js": "^9.10.0",
50
- "@stylistic/eslint-plugin": "^2.7.2",
53
+ "@stylistic/eslint-plugin": "^2.8.0",
51
54
  "@types/node": "^20.16.0",
52
- "@typescript-eslint/parser": "^8.4.0",
55
+ "@typescript-eslint/parser": "^8.5.0",
53
56
  "homebridge": "^2.0.0-beta.0",
54
57
  "copyfiles": "^2.4.1",
55
58
  "eslint": "^9.10.0",
@@ -58,8 +61,6 @@
58
61
  "rimraf": "^6.0.1"
59
62
  },
60
63
  "dependencies": {
61
- "axios": "^1.7.7",
62
- "pbf": "^4.0.1",
63
64
  "protobufjs": "^7.4.0",
64
65
  "ws": "^8.18.0"
65
66
  }
@@ -1,8 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package nest.messages;
4
-
5
- message SchemaVersion {
6
- uint32 currentVersion = 1;
7
- uint32 minCompatVersion = 2;
8
- }
package/dist/webrtc.js DELETED
@@ -1,55 +0,0 @@
1
- // WebRTC
2
- // Part of homebridge-nest-accfactory
3
- //
4
- // Handles connection and data from Google WeBRTC systems
5
- //
6
- // Code version 6/9/2024
7
- // Mark Hulskamp
8
- 'use strict';
9
-
10
- // Define external library requirements
11
- //import axios from 'axios';
12
- //import protobuf from 'protobufjs';
13
-
14
- // Define nodejs module requirements
15
- //import { Buffer } from 'node:buffer';
16
- //import { setInterval, clearInterval, setTimeout, clearTimeout } from 'node:timers';
17
- //import tls from 'tls';
18
- //import crypto from 'crypto';
19
-
20
- // Define our modules
21
- import Streamer from './streamer.js';
22
-
23
- // Define constants
24
-
25
- // WebRTC object
26
- export default class WebRTC extends Streamer {
27
- constructor(deviceData, options) {
28
- super(deviceData, options);
29
-
30
- this.host = deviceData?.streaming_host; // Host we'll connect to
31
-
32
- // If specified option to start buffering, kick off
33
- if (typeof options?.buffer === 'boolean' && options.buffer === true) {
34
- this.startBuffering();
35
- }
36
- }
37
-
38
- // Class functions
39
- connect(host) {
40
- this.log.info(host);
41
- }
42
-
43
- close(stopStreamFirst) {
44
- this.log.info(stopStreamFirst);
45
- }
46
-
47
- update(deviceData) {
48
- // Let our parent handle the remaining updates
49
- super.update(deviceData);
50
- }
51
-
52
- talkingAudio(talkingData) {
53
- this.log.info(talkingData);
54
- }
55
- }