Skip to content

Commit

Permalink
fix: schema
Browse files Browse the repository at this point in the history
  • Loading branch information
kovapatrik committed Apr 11, 2024
1 parent e102809 commit d30caa0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 15 deletions.
36 changes: 24 additions & 12 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,36 @@
"properties": {
"username": {
"title": "Username",
"description": "Username for BlueAir account",
"type": "string",
"required": true
"description": "Username for BlueAir account. This should be filled in autometically in the discovery process.",
"type": "string"
},
"password": {
"title": "Password",
"description": "Password for BlueAir account",
"description": "Password for BlueAir account. This should be filled in autometically in the discovery process.",
"type": "string"
},
"region": {
"title": "Region",
"description": "Region for BlueAir account. This should be filled in autometically in the discovery process.",
"type": "string",
"required": true
"enum": ["Default (all other regions)", "Australia", "China", "Russia", "USA"],
"default": "Default (all other regions)"
},
"accountUuid": {
"title": "Account UUID",
"description": "Account UUID for BlueAir account. This should be filled in autometically in the discovery process.",
"type": "string"
},
"verboseLogging": {
"title": "Verbose Logging",
"description": "Enable to receive detailed log messages. Useful for troubleshooting.",
"type": "boolean"
},
"uiDebug": {
"title": "UI Debug",
"description": "Enable to show debug information in the Homebridge UI.",
"type": "boolean"
},
"devices": {
"title": "Devices",
"type": "array",
Expand All @@ -38,11 +53,6 @@
"type": "string",
"required": true
},
"isAWSDevice": {
"title": "AWS Device",
"description": "Enable AWS integration. This is required for devices like DustMagnet, HealthProtect, and Blue Pure.",
"type": "boolean"
},
"led": {
"title": "LED",
"description": "Toggles if the LED switch service is created with the accessory.",
Expand Down Expand Up @@ -95,7 +105,10 @@
"items": [
"username",
"password",
"verboseLogging"
"region",
"accountUuid",
"verboseLogging",
"uiDebug"
]
},
{
Expand All @@ -105,7 +118,6 @@
"items": [
"devices[].name",
"devices[].id",
"devices[].enableAWS",
"devices[].led",
"devices[].airQualitySensor",
"devices[].co2Sensor",
Expand Down
6 changes: 3 additions & 3 deletions src/platformUtils.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export type Config = {
verboseLogging: boolean;
uiDebug: boolean;
username: string;
password: string;
accountUuid: string;
region: Region;
accountUuid: string;
verboseLogging: boolean;
uiDebug: boolean;
devices: DeviceConfig[];
};

Expand Down

0 comments on commit d30caa0

Please sign in to comment.