@homebridge-plugins/homebridge-smarthq 0.4.6 → 0.4.7

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 CHANGED
@@ -88,6 +88,50 @@ All notable changes to this project will be documented in this file. This projec
88
88
 
89
89
 
90
90
 
91
+ # 0.2.0 (2025-02-23)
92
+
93
+ ## [0.4.6](https://github.com/homebridge-plugins/homebridge-smarthq/compare/v0.4.4...v0.4.6) (2025-12-22)
94
+
95
+
96
+
97
+ ## [0.4.4](https://github.com/homebridge-plugins/homebridge-smarthq/compare/v0.4.3...v0.4.4) (2025-12-22)
98
+
99
+
100
+ ### Reverts
101
+
102
+ * Revert "update dependenices" ([b3fe90e](https://github.com/homebridge-plugins/homebridge-smarthq/commit/b3fe90ea172fb78b8acd360695cbc3c6b97f0326))
103
+
104
+
105
+
106
+ ## [0.4.3](https://github.com/homebridge-plugins/homebridge-smarthq/compare/v0.4.1...v0.4.3) (2025-12-22)
107
+
108
+
109
+ ### Features
110
+
111
+ * support hood ([#57](https://github.com/homebridge-plugins/homebridge-smarthq/issues/57)) ([2659b21](https://github.com/homebridge-plugins/homebridge-smarthq/commit/2659b21a0a483cb15e0622733f58d75603d99cab))
112
+
113
+
114
+
115
+ ## [0.4.1](https://github.com/homebridge-plugins/homebridge-smarthq/compare/v0.4.0...v0.4.1) (2025-09-18)
116
+
117
+
118
+ ### Bug Fixes
119
+
120
+ * **air conditioner:** fix temperature setting and update switch display names ([#38](https://github.com/homebridge-plugins/homebridge-smarthq/issues/38)) ([1675205](https://github.com/homebridge-plugins/homebridge-smarthq/commit/16752059c93d6a5b26b782f2b42246e622b4b830))
121
+ * **air conditioner:** preserve decimal precision when converting Celsius to Fahrenheit ([#40](https://github.com/homebridge-plugins/homebridge-smarthq/issues/40)) ([38c8285](https://github.com/homebridge-plugins/homebridge-smarthq/commit/38c82852015d8ea0ceb0f4dd4b9ddf0622f57963))
122
+ * **air conditioner:** report all operating modes off when unit is off ([#42](https://github.com/homebridge-plugins/homebridge-smarthq/issues/42)) ([d44ebe3](https://github.com/homebridge-plugins/homebridge-smarthq/commit/d44ebe34590a2da6645e30db0db269e1dbbe4f3b))
123
+
124
+
125
+ ### Features
126
+
127
+ * add Portable AC as supported device ([#45](https://github.com/homebridge-plugins/homebridge-smarthq/issues/45)) ([50d83b1](https://github.com/homebridge-plugins/homebridge-smarthq/commit/50d83b1e003d8d238485459a5c882f357e1c61fb))
128
+
129
+
130
+
131
+ # [0.4.0](https://github.com/homebridge-plugins/homebridge-smarthq/compare/v0.2.0...v0.4.0) (2025-06-27)
132
+
133
+
134
+
91
135
  # 0.2.0 (2025-02-23)
92
136
 
93
137
  ## [0.4.5](https://github.com/homebridge-plugins/homebridge-smarthq/compare/v0.4.4...v0.4.5) (2025-12-22)
@@ -1 +1 @@
1
- {"version":3,"file":"coffeeMaker.d.ts","sourceRoot":"","sources":["../../src/devices/coffeeMaker.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC,qBAAa,kBAAmB,SAAQ,UAAU;IAE9C,QAAQ,CAAC,QAAQ,EAAE,eAAe;IAElC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG,aAAa;gBAFhD,QAAQ,EAAE,eAAe,EAClC,SAAS,EAAE,iBAAiB,CAAC,cAAc,CAAC,EACnC,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG,aAAa;CAM5D"}
1
+ {"version":3,"file":"coffeeMaker.d.ts","sourceRoot":"","sources":["../../src/devices/coffeeMaker.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC,qBAAa,kBAAmB,SAAQ,UAAU;IAE9C,QAAQ,CAAC,QAAQ,EAAE,eAAe;IAElC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG,aAAa;gBAFhD,QAAQ,EAAE,eAAe,EAClC,SAAS,EAAE,iBAAiB,CAAC,cAAc,CAAC,EACnC,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG,aAAa;CAoE5D"}
@@ -7,7 +7,70 @@ export class SmartHQCoffeeMaker extends deviceBase {
7
7
  this.platform = platform;
8
8
  this.device = device;
9
9
  this.debugLog(`Coffee Maker Features: ${JSON.stringify(accessory.context.device.features)}`);
10
- // Add your characteristic/services here
10
+ // Coffee Maker Brewing State (Valve)
11
+ const brewValve = this.accessory.getService('Coffee Maker') ?? this.accessory.addService(this.platform.Service.Valve, 'Coffee Maker', 'CoffeeMaker');
12
+ brewValve.setCharacteristic(this.platform.Characteristic.ValveType, this.platform.Characteristic.ValveType.GENERIC_VALVE);
13
+ brewValve
14
+ .getCharacteristic(this.platform.Characteristic.Active)
15
+ .onGet(async () => {
16
+ try {
17
+ // TODO: Implement brewing state ERD
18
+ return this.platform.Characteristic.Active.INACTIVE;
19
+ }
20
+ catch (error) {
21
+ this.warnLog?.(`Coffee Maker Active error: ${error?.message ?? error}`);
22
+ return this.platform.Characteristic.Active.INACTIVE;
23
+ }
24
+ })
25
+ .onSet(async (value) => {
26
+ try {
27
+ // TODO: Implement brew control ERD
28
+ this.debugLog(`Coffee Maker brew set to: ${value}`);
29
+ }
30
+ catch (error) {
31
+ this.warnLog?.(`Coffee Maker brew set error: ${error?.message ?? error}`);
32
+ }
33
+ });
34
+ brewValve
35
+ .getCharacteristic(this.platform.Characteristic.InUse)
36
+ .onGet(async () => {
37
+ try {
38
+ // TODO: Implement brewing state ERD
39
+ return this.platform.Characteristic.InUse.NOT_IN_USE;
40
+ }
41
+ catch (error) {
42
+ this.warnLog?.(`Coffee Maker InUse error: ${error?.message ?? error}`);
43
+ return this.platform.Characteristic.InUse.NOT_IN_USE;
44
+ }
45
+ });
46
+ // Water Level Sensor (Humidity as proxy)
47
+ const waterLevel = this.accessory.getService('Water Level') ?? this.accessory.addService(this.platform.Service.HumiditySensor, 'Water Level', 'WaterLevel');
48
+ waterLevel
49
+ .getCharacteristic(this.platform.Characteristic.CurrentRelativeHumidity)
50
+ .onGet(async () => {
51
+ try {
52
+ // TODO: Implement water level ERD (0-100%)
53
+ return 100;
54
+ }
55
+ catch (error) {
56
+ this.warnLog?.(`Coffee Maker Water Level error: ${error?.message ?? error}`);
57
+ return 0;
58
+ }
59
+ });
60
+ // Filter/Cleaning Status
61
+ const filterService = this.accessory.getService('Coffee Filter') ?? this.accessory.addService(this.platform.Service.FilterMaintenance, 'Coffee Filter', 'CoffeeFilter');
62
+ filterService
63
+ .getCharacteristic(this.platform.Characteristic.FilterChangeIndication)
64
+ .onGet(async () => {
65
+ try {
66
+ // TODO: Implement filter/cleaning status ERD
67
+ return this.platform.Characteristic.FilterChangeIndication.FILTER_OK;
68
+ }
69
+ catch (error) {
70
+ this.warnLog?.(`Coffee Filter Status error: ${error?.message ?? error}`);
71
+ return this.platform.Characteristic.FilterChangeIndication.FILTER_OK;
72
+ }
73
+ });
11
74
  }
12
75
  }
13
76
  //# sourceMappingURL=coffeeMaker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"coffeeMaker.js","sourceRoot":"","sources":["../../src/devices/coffeeMaker.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC,MAAM,OAAO,kBAAmB,SAAQ,UAAU;IAErC;IAEA;IAHX,YAC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