homebridge-bedjet 0.2.6 → 0.2.8

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/README.md CHANGED
@@ -6,50 +6,81 @@ Exposes a **Thermostat** and a **Fan** accessory in HomeKit so you can control t
6
6
 
7
7
  ## Features
8
8
 
9
- - Direct BLE connection from the Homebridge host (no cloud required)
9
+ - Direct BLE connection from the Homebridge host no cloud required
10
10
  - Thermostat service: current/target temperature, heating/cooling mode
11
11
  - FanV2 service: on/off and rotation speed (5–100%)
12
- - Automatic reconnection with exponential backoff (up to 5 attempts)
13
- - Multi-device support (dual-zone BedJet setup)
14
- - 60-second inactivity disconnect to share the BLE slot with the BedJet app
12
+ - Automatic reconnection with exponential backoff (retries indefinitely)
13
+ - Multi-device support for dual-zone BedJet setups
14
+ - Bluetooth discovery UI built into the Homebridge config panel — no need to find the MAC address manually
15
15
 
16
16
  ## Prerequisites
17
17
 
18
- ### Linux / Raspberry Pi
18
+ ### Linux / Raspberry Pi (recommended)
19
19
 
20
20
  ```bash
21
- # BlueZ and BLE dev headers
22
- sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
21
+ # Install BlueZ
22
+ sudo apt-get install bluetooth bluez
23
23
 
24
- # Grant Node.js BLE access without root
25
- sudo setcap cap_net_raw+eip $(eval readlink -f $(which node))
24
+ # Make sure the Bluetooth service is running
25
+ sudo systemctl enable bluetooth
26
+ sudo systemctl start bluetooth
27
+
28
+ # Add the homebridge user to the bluetooth group so it can use BlueZ without root
29
+ sudo usermod -aG bluetooth homebridge
30
+
31
+ # Reboot (or restart Homebridge) for group membership to take effect
32
+ sudo reboot
26
33
  ```
27
34
 
35
+ Then pair your BedJet **once** before starting the plugin (see [Pairing your BedJet](#pairing-your-bedjet) below).
36
+
28
37
  ### macOS
29
38
 
30
- Works out of the box. A CoreBluetooth permission prompt will appear on first run. Grant it.
39
+ Works out of the box. A CoreBluetooth permission prompt will appear on first run.
31
40
 
32
- ## Finding your BedJet MAC address
41
+ ## Installation
33
42
 
34
- **Linux:**
43
+ Search for **homebridge-bedjet** in the Homebridge UI plugins tab and install from there.
44
+
45
+ Or via terminal:
35
46
  ```bash
36
- sudo hcitool lescan
37
- # Look for a line like: AA:BB:CC:DD:EE:FF BedJet
47
+ npm install -g homebridge-bedjet
38
48
  ```
39
49
 
40
- **macOS / iOS / Android:** Use the [nRF Connect](https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-mobile) app — it lists nearby BLE devices and their MAC addresses.
50
+ ## Pairing your BedJet
41
51
 
42
- ## Installation
52
+ The BedJet V3 requires a one-time Bluetooth pairing before the plugin can connect to it. You only need to do this once.
53
+
54
+ On your Raspberry Pi:
43
55
 
44
56
  ```bash
45
- npm install -g homebridge-bedjet
57
+ bluetoothctl
46
58
  ```
47
59
 
48
- Or install via the Homebridge UI — search for `homebridge-bedjet`.
60
+ Then inside the bluetoothctl prompt:
61
+
62
+ ```
63
+ scan on
64
+ ```
65
+
66
+ Wait until you see your BedJet appear (it will show up as `BEDJET_V3` with its MAC address). Then:
67
+
68
+ ```
69
+ pair AA:BB:CC:DD:EE:FF
70
+ trust AA:BB:CC:DD:EE:FF
71
+ disconnect AA:BB:CC:DD:EE:FF
72
+ exit
73
+ ```
74
+
75
+ > **Note:** When you run `pair`, the BedJet will prompt you to press the **WiFi/BT button** on the top of the unit to confirm the pairing. Press it when prompted.
76
+
77
+ After pairing, restart Homebridge and the plugin will connect automatically.
49
78
 
50
79
  ## Configuration
51
80
 
52
- Add to your `~/.homebridge/config.json`:
81
+ The easiest way is to use the **Bluetooth Discovery** panel in the Homebridge plugin settings — click **Scan for BedJets**, wait ~12 seconds, then click **Add to Config** next to your device. Restart Homebridge when done.
82
+
83
+ To configure manually, add to your `~/.homebridge/config.json`:
53
84
 
54
85
  ```json
55
86
  {
@@ -58,7 +89,7 @@ Add to your `~/.homebridge/config.json`:
58
89
  "platform": "BedJetPlatform",
59
90
  "devices": [
60
91
  {
61
- "name": "Bedroom BedJet",
92
+ "name": "BedJet",
62
93
  "address": "AA:BB:CC:DD:EE:FF"
63
94
  }
64
95
  ]
@@ -75,8 +106,8 @@ For a dual-zone setup, add both units:
75
106
  {
76
107
  "platform": "BedJetPlatform",
77
108
  "devices": [
78
- { "name": "Left Side BedJet", "address": "AA:BB:CC:DD:EE:FF" },
79
- { "name": "Right Side BedJet", "address": "11:22:33:44:55:66" }
109
+ { "name": "Left BedJet", "address": "AA:BB:CC:DD:EE:FF" },
110
+ { "name": "Right BedJet", "address": "11:22:33:44:55:66" }
80
111
  ]
81
112
  }
82
113
  ]
@@ -89,26 +120,96 @@ For a dual-zone setup, add both units:
89
120
  |-------|----------|---------|-------------|
90
121
  | `name` | Yes | — | Display name in HomeKit |
91
122
  | `address` | Yes | — | BLE MAC address of your BedJet V3 |
92
- | `scanTimeout` | No | `30` | Seconds to scan before giving up on first connect |
123
+ | `scanTimeout` | No | `30` | Seconds to wait for the device on connect |
93
124
 
94
- ## BedJet BLE limitation
125
+ ## Troubleshooting
126
+
127
+ ### Plugin says "Connect failed" or never shows Ready
128
+
129
+ **1. Check Bluetooth is enabled and unblocked:**
130
+ ```bash
131
+ # See all radio devices and whether they're blocked
132
+ rfkill list
133
+
134
+ # Unblock Bluetooth if it shows as blocked
135
+ sudo rfkill unblock bluetooth
136
+
137
+ # Check the adapter is up
138
+ hciconfig
139
+ ```
140
+
141
+ **2. Make sure BlueZ is running:**
142
+ ```bash
143
+ sudo systemctl status bluetooth
144
+
145
+ # If it's not running:
146
+ sudo systemctl enable bluetooth
147
+ sudo systemctl start bluetooth
148
+ ```
149
+
150
+ **3. Check the homebridge user is in the bluetooth group:**
151
+ ```bash
152
+ groups homebridge
153
+ # Should include "bluetooth" in the list
154
+ ```
155
+
156
+ If it's missing:
157
+ ```bash
158
+ sudo usermod -aG bluetooth homebridge
159
+ sudo reboot
160
+ ```
161
+
162
+ **4. Make sure the BedJet is paired** (see [Pairing your BedJet](#pairing-your-bedjet) above). Without pairing, BlueZ can see the device during a scan but won't be able to connect to it and access GATT services.
163
+
164
+ **5. Close the BedJet mobile app** — the BedJet V3 only allows one BLE connection at a time. If the app is connected, this plugin cannot connect.
165
+
166
+ ---
167
+
168
+ ### Plugin connects but then disconnects frequently
169
+
170
+ This usually means BLE signal is weak. Move your Raspberry Pi closer to the BedJet, or add a USB Bluetooth adapter with better range.
95
171
 
96
- The BedJet V3 only allows **one active BLE connection at a time**. The BedJet mobile app must be fully closed (not just backgrounded) before this plugin can connect.
172
+ ---
97
173
 
98
- This plugin automatically disconnects after **60 seconds of inactivity** to free the BLE slot for app use if needed. It will reconnect automatically the next time you interact with the accessory in HomeKit.
174
+ ### "Scan found 0 devices" in the discovery panel
175
+
176
+ - Make sure the BedJet is powered on and not already connected to your phone or the app
177
+ - The scan runs for 12 seconds — make sure you wait for it to finish
178
+ - Try running `bluetoothctl scan on` in a terminal on the Pi to confirm the Pi can see it
179
+
180
+ ---
181
+
182
+ ### Homebridge log shows D-Bus or permissions errors
183
+
184
+ The plugin uses the BlueZ D-Bus API (the same method used by Python's `bleak` library and the Home Assistant BedJet integration). If you see D-Bus permission errors, the homebridge user doesn't have access to BlueZ:
185
+
186
+ ```bash
187
+ sudo usermod -aG bluetooth homebridge
188
+ sudo reboot
189
+ ```
99
190
 
100
191
  ## HomeKit behaviour
101
192
 
102
193
  | HomeKit control | BedJet action |
103
194
  |---|---|
104
- | Thermostat → Off | Standby (fan off) |
195
+ | Thermostat → Off | Standby |
105
196
  | Thermostat → Heat | Standard heat mode |
106
- | Thermostat → Cool | Fan-only mode (BedJet has no compressor) |
197
+ | Thermostat → Cool | Fan-only cool mode |
107
198
  | Thermostat → Auto | Heat mode |
108
- | Temperature slider | SET_TEMPERATURE command |
199
+ | Temperature slider | Set target temperature |
109
200
  | Fan → Off | Standby |
110
201
  | Fan → On | Heat mode (if currently off) |
111
- | Fan speed slider | SET_FAN command (5–100% in 5% steps) |
202
+ | Fan speed slider | Set fan speed (5–100% in 5% steps) |
203
+
204
+ ## BedJet BLE limitation
205
+
206
+ The BedJet V3 only allows **one active BLE connection at a time**. Close the BedJet mobile app fully before using this plugin.
207
+
208
+ ## Credits
209
+
210
+ The BedJet V3 BLE protocol details — service/characteristic UUIDs, notification packet layout, and command encoding — were derived from the [**pybedjet**](https://github.com/jfparis/pybedjet) library and the [Home Assistant BedJet integration](https://www.home-assistant.io/integrations/bedjet/). This plugin would not exist without that prior reverse-engineering work.
211
+
212
+ BLE communication uses [node-ble](https://github.com/chrvadala/node-ble), which wraps the Linux BlueZ D-Bus API — the same approach used by Python's `bleak` library and the HA integration.
112
213
 
113
214
  ## License
114
215
 
@@ -31,6 +31,35 @@
31
31
  "type": "integer",
32
32
  "default": 30,
33
33
  "description": "How long to scan for the device before giving up (default: 30)"
34
+ },
35
+ "defaultMode": {
36
+ "title": "Default Mode (when turned on)",
37
+ "type": "string",
38
+ "default": "heat",
39
+ "oneOf": [
40
+ { "title": "Heat", "enum": ["heat"] },
41
+ { "title": "Turbo", "enum": ["turbo"] },
42
+ { "title": "Extended Heat", "enum": ["extendedHeat"] },
43
+ { "title": "Cool (Fan Only)", "enum": ["cool"] },
44
+ { "title": "Dry", "enum": ["dry"] }
45
+ ],
46
+ "description": "Mode to activate when the BedJet is turned on from HomeKit"
47
+ },
48
+ "defaultTemperature": {
49
+ "title": "Default Temperature °C (when turned on)",
50
+ "type": "number",
51
+ "minimum": 19,
52
+ "maximum": 43,
53
+ "multipleOf": 0.5,
54
+ "description": "Target temperature to set when turned on. Range: 19–43°C (66–109°F). Leave blank to keep the BedJet's last-used temperature."
55
+ },
56
+ "defaultFanSpeed": {
57
+ "title": "Default Fan Speed % (when turned on)",
58
+ "type": "integer",
59
+ "minimum": 5,
60
+ "maximum": 100,
61
+ "multipleOf": 5,
62
+ "description": "Fan speed to set when turned on (5–100% in 5% steps). Leave blank to keep the BedJet's last-used speed."
34
63
  }
35
64
  }
36
65
  }
@@ -18,5 +18,13 @@ export declare class BedJetAccessory {
18
18
  private pendingModeTimer;
19
19
  private setPending;
20
20
  constructor(platform: BedJetPlatform, accessory: PlatformAccessory, config: BedJetConfig);
21
+ /**
22
+ * Set the operating mode, then optionally apply default temperature and fan
23
+ * speed from config. applyDefaults=true when turning on from off.
24
+ * applyMode=true when the mode itself should come from defaultMode config
25
+ * (fan turn-on path); false when HomeKit supplied the mode explicitly
26
+ * (thermostat path).
27
+ */
28
+ private _applyModeAndDefaults;
21
29
  private _syncHomeKit;
22
30
  }
package/dist/accessory.js CHANGED
@@ -3,6 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BedJetAccessory = void 0;
4
4
  const BedJet_1 = require("./bedjet/BedJet");
5
5
  const constants_1 = require("./bedjet/constants");
6
+ const DEFAULT_MODE_MAP = {
7
+ heat: constants_1.OperatingMode.HEAT,
8
+ turbo: constants_1.OperatingMode.TURBO,
9
+ extendedHeat: constants_1.OperatingMode.EXTENDED_HEAT,
10
+ cool: constants_1.OperatingMode.COOL,
11
+ dry: constants_1.OperatingMode.DRY,
12
+ };
6
13
  // OperatingMode → CurrentHeatingCoolingState value
7
14
  const CURRENT_STATE_MAP = {
8
15
  [constants_1.OperatingMode.STANDBY]: 0, // OFF
@@ -84,8 +91,12 @@ class BedJetAccessory {
84
91
  })
85
92
  .onSet((value) => {
86
93
  this.setPending(value, 'pendingMode', 'pendingModeTimer');
94
+ const wasOff = this.bedjet.state.operatingMode === constants_1.OperatingMode.STANDBY
95
+ || this.bedjet.state.operatingMode === constants_1.OperatingMode.WAIT;
96
+ const turningOn = value !== 0;
87
97
  const mode = TARGET_TO_MODE[value] ?? constants_1.OperatingMode.STANDBY;
88
- this.bedjet.setOperatingMode(mode).catch(err => this.platform.log.error(`[${config.name}] setOperatingMode failed: ${err}`));
98
+ // Apply the requested mode, then defaults (temp/fan) if turning on from off
99
+ this._applyModeAndDefaults(mode, wasOff && turningOn, false).catch(err => this.platform.log.error(`[${config.name}] setOperatingMode failed: ${err}`));
89
100
  });
90
101
  // FanV2 service
91
102
  this.fanService = this.accessory.getService(Service.Fanv2)
@@ -95,17 +106,16 @@ class BedJetAccessory {
95
106
  ? Characteristic.Active.ACTIVE
96
107
  : Characteristic.Active.INACTIVE)
97
108
  .onSet((value) => {
98
- // pendingMode: 0=OFF, 1=HEAT (active), used to suppress stale BLE bounce
99
- const pendingModeValue = value === Characteristic.Active.INACTIVE ? 0 : 1;
100
- this.setPending(pendingModeValue, 'pendingMode', 'pendingModeTimer');
101
109
  if (value === Characteristic.Active.INACTIVE) {
110
+ this.setPending(0, 'pendingMode', 'pendingModeTimer');
102
111
  this.bedjet.setOperatingMode(constants_1.OperatingMode.STANDBY).catch(err => this.platform.log.error(`[${config.name}] setOperatingMode(STANDBY) failed: ${err}`));
103
112
  }
104
- else {
105
- // Only turn on if currently off
106
- if (this.bedjet.state.operatingMode === constants_1.OperatingMode.STANDBY) {
107
- this.bedjet.setOperatingMode(constants_1.OperatingMode.HEAT).catch(err => this.platform.log.error(`[${config.name}] setOperatingMode(HEAT) failed: ${err}`));
108
- }
113
+ else if (this.bedjet.state.operatingMode === constants_1.OperatingMode.STANDBY) {
114
+ // Turning on use configured default mode and apply all defaults
115
+ const mode = this.config.defaultMode
116
+ ? DEFAULT_MODE_MAP[this.config.defaultMode]
117
+ : constants_1.OperatingMode.HEAT;
118
+ this._applyModeAndDefaults(mode, true, true).catch(err => this.platform.log.error(`[${config.name}] turn on failed: ${err}`));
109
119
  }
110
120
  });
111
121
  this.fanService.getCharacteristic(Characteristic.RotationSpeed)
@@ -133,6 +143,32 @@ class BedJetAccessory {
133
143
  // Start connecting — errors are logged but don't crash Homebridge
134
144
  this.bedjet.connect().catch(err => this.platform.log.error(`[${config.name}] Initial connect failed: ${err}`));
135
145
  }
146
+ /**
147
+ * Set the operating mode, then optionally apply default temperature and fan
148
+ * speed from config. applyDefaults=true when turning on from off.
149
+ * applyMode=true when the mode itself should come from defaultMode config
150
+ * (fan turn-on path); false when HomeKit supplied the mode explicitly
151
+ * (thermostat path).
152
+ */
153
+ async _applyModeAndDefaults(mode, applyDefaults, applyMode) {
154
+ const { config } = this;
155
+ // Determine HomeKit target state for pending optimistic value
156
+ const pendingState = mode === constants_1.OperatingMode.STANDBY ? 0
157
+ : mode === constants_1.OperatingMode.COOL || mode === constants_1.OperatingMode.DRY ? 2
158
+ : 1;
159
+ this.setPending(pendingState, 'pendingMode', 'pendingModeTimer', 5000);
160
+ await this.bedjet.setOperatingMode(mode);
161
+ if (applyDefaults) {
162
+ if (config.defaultTemperature !== undefined) {
163
+ this.setPending(config.defaultTemperature, 'pendingTemp', 'pendingTempTimer', 5000);
164
+ await this.bedjet.setTemperature(config.defaultTemperature);
165
+ }
166
+ if (config.defaultFanSpeed !== undefined) {
167
+ this.setPending(config.defaultFanSpeed, 'pendingFanSpeed', 'pendingFanSpeedTimer', 5000);
168
+ await this.bedjet.setFanSpeed(config.defaultFanSpeed);
169
+ }
170
+ }
171
+ }
136
172
  _syncHomeKit(state) {
137
173
  const { Characteristic } = this.platform.api.hap;
138
174
  // Clamp helper — keeps values within the bounds HomeKit expects
@@ -17,9 +17,13 @@ export interface BedJetState {
17
17
  unitsSetup?: boolean;
18
18
  notificationCode?: number;
19
19
  }
20
+ export type DefaultMode = 'heat' | 'turbo' | 'extendedHeat' | 'cool' | 'dry';
20
21
  export interface BedJetConfig {
21
22
  name: string;
22
23
  address: string;
23
24
  scanTimeout?: number;
25
+ defaultMode?: DefaultMode;
26
+ defaultTemperature?: number;
27
+ defaultFanSpeed?: number;
24
28
  }
25
29
  export declare const DEFAULT_STATE: BedJetState;
package/package.json CHANGED
@@ -1,10 +1,18 @@
1
1
  {
2
2
  "name": "homebridge-bedjet",
3
3
  "displayName": "BedJet",
4
- "version": "0.2.6",
4
+ "version": "0.2.8",
5
5
  "description": "Homebridge plugin for BedJet V3 via Bluetooth LE",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/OwenKelly05/homebridge-bedjet.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/OwenKelly05/homebridge-bedjet/issues"
14
+ },
15
+ "homepage": "https://github.com/OwenKelly05/homebridge-bedjet#readme",
8
16
  "scripts": {
9
17
  "build": "tsc",
10
18
  "watch": "tsc --watch",
package/src/accessory.ts CHANGED
@@ -1,9 +1,17 @@
1
1
  import type { CharacteristicValue, PlatformAccessory, Service } from 'homebridge';
2
2
  import { BedJet } from './bedjet/BedJet';
3
3
  import { OperatingMode } from './bedjet/constants';
4
- import type { BedJetConfig, BedJetState } from './bedjet/types';
4
+ import type { BedJetConfig, BedJetState, DefaultMode } from './bedjet/types';
5
5
  import type { BedJetPlatform } from './platform';
6
6
 
7
+ const DEFAULT_MODE_MAP: Record<DefaultMode, OperatingMode> = {
8
+ heat: OperatingMode.HEAT,
9
+ turbo: OperatingMode.TURBO,
10
+ extendedHeat: OperatingMode.EXTENDED_HEAT,
11
+ cool: OperatingMode.COOL,
12
+ dry: OperatingMode.DRY,
13
+ };
14
+
7
15
  // OperatingMode → CurrentHeatingCoolingState value
8
16
  const CURRENT_STATE_MAP: Record<OperatingMode, number> = {
9
17
  [OperatingMode.STANDBY]: 0, // OFF
@@ -107,8 +115,12 @@ export class BedJetAccessory {
107
115
  })
108
116
  .onSet((value: CharacteristicValue) => {
109
117
  this.setPending(value as number, 'pendingMode', 'pendingModeTimer');
118
+ const wasOff = this.bedjet.state.operatingMode === OperatingMode.STANDBY
119
+ || this.bedjet.state.operatingMode === OperatingMode.WAIT;
120
+ const turningOn = (value as number) !== 0;
110
121
  const mode = TARGET_TO_MODE[value as number] ?? OperatingMode.STANDBY;
111
- this.bedjet.setOperatingMode(mode).catch(err =>
122
+ // Apply the requested mode, then defaults (temp/fan) if turning on from off
123
+ this._applyModeAndDefaults(mode, wasOff && turningOn, false).catch(err =>
112
124
  this.platform.log.error(`[${config.name}] setOperatingMode failed: ${err}`),
113
125
  );
114
126
  });
@@ -124,20 +136,19 @@ export class BedJetAccessory {
124
136
  : Characteristic.Active.INACTIVE,
125
137
  )
126
138
  .onSet((value: CharacteristicValue) => {
127
- // pendingMode: 0=OFF, 1=HEAT (active), used to suppress stale BLE bounce
128
- const pendingModeValue = value === Characteristic.Active.INACTIVE ? 0 : 1;
129
- this.setPending(pendingModeValue, 'pendingMode', 'pendingModeTimer');
130
139
  if (value === Characteristic.Active.INACTIVE) {
140
+ this.setPending(0, 'pendingMode', 'pendingModeTimer');
131
141
  this.bedjet.setOperatingMode(OperatingMode.STANDBY).catch(err =>
132
142
  this.platform.log.error(`[${config.name}] setOperatingMode(STANDBY) failed: ${err}`),
133
143
  );
134
- } else {
135
- // Only turn on if currently off
136
- if (this.bedjet.state.operatingMode === OperatingMode.STANDBY) {
137
- this.bedjet.setOperatingMode(OperatingMode.HEAT).catch(err =>
138
- this.platform.log.error(`[${config.name}] setOperatingMode(HEAT) failed: ${err}`),
139
- );
140
- }
144
+ } else if (this.bedjet.state.operatingMode === OperatingMode.STANDBY) {
145
+ // Turning on use configured default mode and apply all defaults
146
+ const mode = this.config.defaultMode
147
+ ? DEFAULT_MODE_MAP[this.config.defaultMode]
148
+ : OperatingMode.HEAT;
149
+ this._applyModeAndDefaults(mode, true, true).catch(err =>
150
+ this.platform.log.error(`[${config.name}] turn on failed: ${err}`),
151
+ );
141
152
  }
142
153
  });
143
154
 
@@ -174,6 +185,41 @@ export class BedJetAccessory {
174
185
  );
175
186
  }
176
187
 
188
+ /**
189
+ * Set the operating mode, then optionally apply default temperature and fan
190
+ * speed from config. applyDefaults=true when turning on from off.
191
+ * applyMode=true when the mode itself should come from defaultMode config
192
+ * (fan turn-on path); false when HomeKit supplied the mode explicitly
193
+ * (thermostat path).
194
+ */
195
+ private async _applyModeAndDefaults(
196
+ mode: OperatingMode,
197
+ applyDefaults: boolean,
198
+ applyMode: boolean,
199
+ ): Promise<void> {
200
+ const { config } = this;
201
+
202
+ // Determine HomeKit target state for pending optimistic value
203
+ const pendingState =
204
+ mode === OperatingMode.STANDBY ? 0
205
+ : mode === OperatingMode.COOL || mode === OperatingMode.DRY ? 2
206
+ : 1;
207
+ this.setPending(pendingState, 'pendingMode', 'pendingModeTimer', 5000);
208
+
209
+ await this.bedjet.setOperatingMode(mode);
210
+
211
+ if (applyDefaults) {
212
+ if (config.defaultTemperature !== undefined) {
213
+ this.setPending(config.defaultTemperature, 'pendingTemp', 'pendingTempTimer', 5000);
214
+ await this.bedjet.setTemperature(config.defaultTemperature);
215
+ }
216
+ if (config.defaultFanSpeed !== undefined) {
217
+ this.setPending(config.defaultFanSpeed, 'pendingFanSpeed', 'pendingFanSpeedTimer', 5000);
218
+ await this.bedjet.setFanSpeed(config.defaultFanSpeed);
219
+ }
220
+ }
221
+ }
222
+
177
223
  private _syncHomeKit(state: BedJetState): void {
178
224
  const { Characteristic } = this.platform.api.hap;
179
225
 
@@ -20,10 +20,15 @@ export interface BedJetState {
20
20
  notificationCode?: number;
21
21
  }
22
22
 
23
+ export type DefaultMode = 'heat' | 'turbo' | 'extendedHeat' | 'cool' | 'dry';
24
+
23
25
  export interface BedJetConfig {
24
26
  name: string;
25
- address: string; // BLE MAC e.g. "AA:BB:CC:DD:EE:FF"
26
- scanTimeout?: number; // seconds (default 30)
27
+ address: string; // BLE MAC e.g. "AA:BB:CC:DD:EE:FF"
28
+ scanTimeout?: number; // seconds (default 30)
29
+ defaultMode?: DefaultMode; // mode to activate when turned on from HomeKit
30
+ defaultTemperature?: number; // °C, applied on turn-on
31
+ defaultFanSpeed?: number; // percent 5–100, applied on turn-on
27
32
  }
28
33
 
29
34
  export const DEFAULT_STATE: BedJetState = {
@@ -1 +0,0 @@
1
- {"version":3,"file":"accessory.js","sourceRoot":"","sources":["../src/accessory.ts"],"names":[],"mappings":";;;AACA,4CAAyC;AACzC,kDAAmD;AAInD,mDAAmD;AACnD,MAAM,iBAAiB,GAAkC;IACvD,CAAC,yBAAa,CAAC,OAAO,CAAC,EAAQ,CAAC,EAAE,MAAM;IACxC,CAAC,yBAAa,CAAC,IAAI,CAA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B,CAAA;IACtB,+DAAsB,CAAA;IACtB,+DAAsB,CAAA;AACxB,CAAC,EAtBW,YAAY,4BAAZ,YAAY,QAsBvB;AAEY,QAAA,yBAAyB,GAAwC;IAC5E,CAAC,aAAa,CAAC,OAAO,CAAC,EAAQ,YAAY,CAAC,GAAG;IAC/C,CAAC,aAAa,CAAC,IAAI,CAAC,EAAW,YAAY,CAAC,IAAI;IAChD,CAAC,aAAa,CAAC,KAAK,CAAC,EAAU,YAAY,CAAC,KAAK;IACjD,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE,YAAY,CAAC,aAAa;IACzD,CAAC,aAAa,CAAC,IAAI,CAAC,EAAW,YAAY,CAAC,IAAI;IAChD,CAAC,aAAa,CAAC,GAAG,CAAC,EAAY,YAAY,CAAC,GAAG;IAC/C,CAAC,aAAa,CAAC,IAAI,CAAC,EAAW,YAAY,CAAC,GAAG;CAChD,CAAC;AAEF,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,iEAAqB,CAAA;IACrB,mEAAqB,CAAA;IACrB,yEAAqB,CAAA;IACrB,8EAAsB,CAAA;AACxB,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/bedjet/types.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AA4B/B,QAAA,aAAa,GAAgB;IACxC,kBAAkB,EAAE,EAAE;IACtB,iBAAiB,EAAE,EAAE;IACrB,aAAa,EAAE,yBAAa,CAAC,OAAO;IACpC,QAAQ,EAAE,EAAE;IACZ,kBAAkB,EAAE,EAAE;IACtB,cAAc,EAAE,CAAC;IACjB,gBAAgB,EAAE,CAAC;IACnB,gBAAgB,EAAE,CAAC;IACnB,gBAAgB,EAAE,CAAC;IACnB,WAAW,EAAE,KAAK;CACnB,CAAC"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":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