diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 552d779..5cd8366 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,3 +20,10 @@ jobs: - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + release: + runs-on: ubuntu-latest + needs: publish + steps: + - uses: actions/checkout@v2 + - name: Release + uses: softprops/action-gh-release@v2 \ No newline at end of file diff --git a/config.schema.json b/config.schema.json index 0bef268..6331d30 100644 --- a/config.schema.json +++ b/config.schema.json @@ -6,6 +6,11 @@ "schema": { "type": "object", "properties": { + "name": { + "title": "Name", + "description": "Name of the BlueAir Purifier platform in Homebridge.", + "type": "string" + }, "username": { "title": "Username", "description": "Username for BlueAir account. This should be filled in automatically in the discovery process.", @@ -105,6 +110,7 @@ "expanded": true, "title": "Common Settings", "items": [ + "name", "username", "password", "region", diff --git a/package.json b/package.json index 3bab560..45cae32 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,14 @@ { "displayName": "Homebridge BlueAir Platform", "name": "homebridge-blueair-purifier", - "version": "1.0.0", + "version": "1.0.1", "description": "Homebridge plugin for BlueAir purifiers", "license": "Apache-2.0", "repository": { "type": "git", "url": "git+https://github.com/kovapatrik/homebridge-blueair-purifier.git" }, + "homepage": "https://github.com/kovapatrik/homebridge-blueair-purifier#readme", "bugs": { "url": "https://github.com/kovapatrik/homebridge-blueair-purifier/issues" }, diff --git a/src/platform.ts b/src/platform.ts index 7bb94af..805a721 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -30,6 +30,7 @@ export class BlueAirPlatform extends EventEmitter implements DynamicPlatformPlug ) { super(); this.platformConfig = defaultsDeep(config, defaultConfig); + this.log.debug('Finished initializing platform:', this.platformConfig.name); if (!this.platformConfig.username || !this.platformConfig.password || !this.platformConfig.accountUuid) { this.log.error( diff --git a/src/platformUtils.ts b/src/platformUtils.ts index f6c39dd..9ceecda 100644 --- a/src/platformUtils.ts +++ b/src/platformUtils.ts @@ -1,4 +1,5 @@ export type Config = { + name: string; username: string; password: string; region: Region; @@ -39,6 +40,7 @@ export const RegionMap = { }; export const defaultConfig: Config = { + name: 'BlueAir Platform', uiDebug: false, verboseLogging: false, username: '',