homebridge-flair
Advanced tools
Comparing version 1.1.12 to 1.2.0
@@ -44,13 +44,20 @@ { | ||
"hidePuckSensors": { | ||
"title": "Hide the puck sensors", | ||
"description": "Hides the Puck Sensors and only relies on the Puck Thermostats (Rooms)", | ||
"title": "Hide puck sensors", | ||
"description": "Hides the Puck Sensors", | ||
"type": "boolean", | ||
"required": true, | ||
"required": false, | ||
"default": true | ||
}, | ||
"hidePuckRooms": { | ||
"title": "Hide room thermostats", | ||
"description": "Hides the Puck Rooms (thermostats)", | ||
"type": "boolean", | ||
"required": false, | ||
"default": false | ||
}, | ||
"hideVentTemperatureSensors": { | ||
"title": "Hide the vent temperature sensors", | ||
"title": "Hide vent temperature sensors", | ||
"description": "Hides the Vent Temperature Sensors", | ||
"type": "boolean", | ||
"required": true, | ||
"required": false, | ||
"default": false | ||
@@ -57,0 +64,0 @@ }, |
@@ -136,6 +136,8 @@ "use strict"; | ||
this.addDevices(await this.client.getVents()), | ||
this.addDevices((await this.client.getRooms()).filter((value) => { | ||
]; | ||
if (!this.config.hidePuckRooms) { | ||
promisesToResolve.push(this.addDevices((await this.client.getRooms()).filter((value) => { | ||
return value.pucksInactive === 'Active'; | ||
})), | ||
]; | ||
}))); | ||
} | ||
if (!this.config.hidePuckSensors) { | ||
@@ -142,0 +144,0 @@ promisesToResolve.push(this.addDevices(await this.client.getPucks())); |
@@ -54,3 +54,3 @@ "use strict"; | ||
this.accessory.getService(this.platform.Service.AccessoryInformation) | ||
.updateCharacteristic(String(this.platform.Characteristic.FirmwareRevision), this.puck.firmwareVersionS); | ||
.updateCharacteristic(this.platform.Characteristic.FirmwareRevision, String(this.puck.firmwareVersionS)); | ||
this.platform.log.debug(`Pushed updated current temperature state for ${this.puck.name} to HomeKit:`, this.puck.currentTemperatureC); | ||
@@ -57,0 +57,0 @@ } |
@@ -170,3 +170,3 @@ "use strict"; | ||
} | ||
this.accessoryInformationService.updateCharacteristic(String(this.platform.Characteristic.FirmwareRevision), this.vent.firmwareVersionS); | ||
this.accessoryInformationService.updateCharacteristic(this.platform.Characteristic.FirmwareRevision, String(this.vent.firmwareVersionS)); | ||
this.platform.log.debug(`Pushed updated state for vent: ${this.vent.name} to HomeKit`, { | ||
@@ -173,0 +173,0 @@ open: this.vent.percentOpen, |
{ | ||
"displayName": "Homebridge Flair", | ||
"name": "homebridge-flair", | ||
"version": "1.1.12", | ||
"version": "1.2.0", | ||
"publishConfig": { | ||
@@ -44,3 +44,3 @@ "registry": "https://registry.npmjs.org/" | ||
"dependencies": { | ||
"class-transformer": "^0.3.1", | ||
"class-transformer": "^0.4.0", | ||
"flair-api-ts": "^1.0.14", | ||
@@ -47,0 +47,0 @@ "reflect-metadata": "^0.1.13" |
@@ -37,10 +37,6 @@ # homebridge-flair | ||
Follow the instructions [here](https://documenter.getpostman.com/view/5353571/Rzfnj6YR?version=latest#intro). | ||
Start by creating a Flair account at [my.flair.co](https://my.flair.co/) (if you haven't already), then use [this web form to request credentials](https://forms.gle/VohiQjWNv9CAP2ASA). | ||
Specifically you need to: | ||
1. Create a Flair account with a developer email address at my.flair.co. | ||
2. Provide this email address to hello@flair.co and they will send you a set of developer credentials. | ||
More [API docs and details](https://flair.co/api) | ||
You will use the client id and secret they send you in the config block above. | ||
# Auto Vs Manual Mode | ||
@@ -47,0 +43,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81746
864
76
+ Addedclass-transformer@0.4.1(transitive)
- Removedclass-transformer@0.3.2(transitive)
Updatedclass-transformer@^0.4.0