homebridge-bedjet 0.3.0 → 0.3.1

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/dist/accessory.js CHANGED
@@ -76,7 +76,7 @@ class BedJetAccessory {
76
76
  .setCharacteristic(Characteristic.SerialNumber, config.address);
77
77
  // Thermostat service
78
78
  this.thermostatService = this.accessory.getService(Service.Thermostat)
79
- ?? this.accessory.addService(Service.Thermostat, safeName, 'thermostat');
79
+ ?? this.accessory.addService(Service.Thermostat, 'BedJet', 'thermostat');
80
80
  this.thermostatService.getCharacteristic(Characteristic.TemperatureDisplayUnits)
81
81
  .onGet(() => Characteristic.TemperatureDisplayUnits.CELSIUS);
82
82
  this.thermostatService.getCharacteristic(Characteristic.CurrentTemperature)
@@ -115,7 +115,7 @@ class BedJetAccessory {
115
115
  });
116
116
  // FanV2 service
117
117
  this.fanService = this.accessory.getService(Service.Fanv2)
118
- ?? this.accessory.addService(Service.Fanv2, `${safeName} Fan`, 'fan');
118
+ ?? this.accessory.addService(Service.Fanv2, 'BedJet Fan', 'fan');
119
119
  this.fanService.getCharacteristic(Characteristic.Active)
120
120
  .onGet(() => this.bedjet.state.operatingMode !== constants_1.OperatingMode.STANDBY
121
121
  ? Characteristic.Active.ACTIVE
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-bedjet",
3
3
  "displayName": "BedJet",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "description": "Homebridge plugin for BedJet V3 via Bluetooth LE",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
package/src/accessory.ts CHANGED
@@ -96,7 +96,7 @@ export class BedJetAccessory {
96
96
 
97
97
  // Thermostat service
98
98
  this.thermostatService = this.accessory.getService(Service.Thermostat)
99
- ?? this.accessory.addService(Service.Thermostat, safeName, 'thermostat');
99
+ ?? this.accessory.addService(Service.Thermostat, 'BedJet', 'thermostat');
100
100
 
101
101
  this.thermostatService.getCharacteristic(Characteristic.TemperatureDisplayUnits)
102
102
  .onGet(() => Characteristic.TemperatureDisplayUnits.CELSIUS);
@@ -143,7 +143,7 @@ export class BedJetAccessory {
143
143
 
144
144
  // FanV2 service
145
145
  this.fanService = this.accessory.getService(Service.Fanv2)
146
- ?? this.accessory.addService(Service.Fanv2, `${safeName} Fan`, 'fan');
146
+ ?? this.accessory.addService(Service.Fanv2, 'BedJet Fan', 'fan');
147
147
 
148
148
  this.fanService.getCharacteristic(Characteristic.Active)
149
149
  .onGet(() =>