Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

homebridge-flair

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-flair - npm Package Compare versions

Comparing version 1.0.6 to 1.1.0

.eslintrc.js

7

config.schema.json

@@ -50,2 +50,9 @@ {

},
"hideVentTemperatureSensors": {
"title": "Hide the vent temperature sensors",
"description": "Hides the Vent Temperature Sensors",
"type": "boolean",
"required": true,
"default": false
},
"ventAccessoryType": {

@@ -52,0 +59,0 @@ "title": "Vent Accessory Type",

2

dist/index.js

@@ -6,4 +6,4 @@ "use strict";

module.exports = (api) => {
api.registerPlatform(settings_1.PLATFORM_NAME, platform_1.FlairPlatform);
api.registerPlatform('homebridge-flair', settings_1.PLATFORM_NAME, platform_1.FlairPlatform);
};
//# sourceMappingURL=index.js.map

@@ -98,6 +98,15 @@ "use strict";

//Add our temperature sensor
this.temperatureService = (_d = this.accessory.getService(this.platform.Service.TemperatureSensor)) !== null && _d !== void 0 ? _d : this.accessory.addService(this.platform.Service.TemperatureSensor);
this.temperatureService.setCharacteristic(this.platform.Characteristic.Name, accessory.context.device.name);
this.temperatureService.setCharacteristic(this.platform.Characteristic.CurrentTemperature, this.vent.ductTemperatureC);
this.mainService.addLinkedService(this.temperatureService);
if (platform.config.hideVentTemperatureSensors) {
const temperatureService = this.accessory.getService(this.platform.Service.TemperatureSensor);
if (temperatureService) {
this.mainService.removeLinkedService(temperatureService);
this.accessory.removeService(temperatureService);
}
}
else {
this.temperatureService = (_d = this.accessory.getService(this.platform.Service.TemperatureSensor)) !== null && _d !== void 0 ? _d : this.accessory.addService(this.platform.Service.TemperatureSensor);
this.temperatureService.setCharacteristic(this.platform.Characteristic.Name, accessory.context.device.name);
this.temperatureService.setCharacteristic(this.platform.Characteristic.CurrentTemperature, this.vent.ductTemperatureC);
this.mainService.addLinkedService(this.temperatureService);
}
setInterval(async () => {

@@ -139,3 +148,5 @@ await this.getNewVentReadings();

this.vent = vent;
this.temperatureService.updateCharacteristic(this.platform.Characteristic.CurrentTemperature, this.vent.ductTemperatureC);
if (this.temperatureService) {
this.temperatureService.updateCharacteristic(this.platform.Characteristic.CurrentTemperature, this.vent.ductTemperatureC);
}
// We fake a vent as a window covering.

@@ -142,0 +153,0 @@ switch (this.accessoryType) {

{
"displayName": "Homebridge Flair",
"name": "homebridge-flair",
"version": "1.0.6",
"version": "1.1.0",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"description": "Brings the flair smart vents into homekit",

@@ -20,8 +23,18 @@ "license": "ISC",

"scripts": {
"lint": "eslint src/**",
"lint": "eslint src/**.ts --max-warnings=0",
"lint:fix": "eslint --fix src/**",
"watch": "npm run build && npm link && nodemon",
"build": "rimraf ./dist && tsc",
"prepublishOnly": "npm run lint && npm run build"
"build": "rimraf ./dist && tsc"
},
"release": {
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github"
]
},
"keywords": [

@@ -32,4 +45,3 @@ "homebridge-plugin",

"dependencies": {
"@types/node": "^13.13.2",
"class-transformer": "^0.2.3",
"class-transformer": "^0.3.1",
"flair-api-ts": "0.0.16",

@@ -39,11 +51,18 @@ "reflect-metadata": "^0.1.13"

"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.29.0",
"@typescript-eslint/parser": "^2.29.0",
"eslint": "^6.8.0",
"homebridge": "^1.1.0",
"nodemon": "^2.0.3",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/git": "^9.0.0",
"@semantic-release/github": "^7.1.1",
"@semantic-release/npm": "^7.0.6",
"@semantic-release/release-notes-generator": "^9.0.1",
"@types/node": "^14.14.6",
"@typescript-eslint/eslint-plugin": "^4.6.0",
"@typescript-eslint/parser": "^4.6.0",
"eslint": "^7.12.1",
"homebridge": "^1.1.6",
"nodemon": "^2.0.6",
"rimraf": "^3.0.2",
"ts-node": "^8.9.0",
"typescript": "^3.8.3"
"ts-node": "^9.0.0",
"typescript": "^4.0.5"
}
}

@@ -56,1 +56,25 @@ # homebridge-flair

`airPurifier` - Air Purifier
### Commit format
Commits should be formatted as `type(scope): message`
The following types are allowed:
| Type | Description |
|---|---|
| feat | A new feature |
| fix | A bug fix |
| docs | Documentation only changes |
| style | Changes that do not affect the meaning of the code (white-space, formatting,missing semi-colons, etc) |
| refactor | A code change that neither fixes a bug nor adds a feature |
| perf | A code change that improves performance |
| test | Adding missing or correcting existing tests |
| chore | Changes to the build process or auxiliary tools and libraries such as documentation generation |
### Releasing
A new version is released when a merge or push to `main` occurs.
We use the rules at [default-release-rules.js](https://github.com/semantic-release/commit-analyzer/blob/master/lib/default-release-rules.js) as our guide to when a series of commits should create a release.

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc