Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
kovapatrik committed Apr 9, 2024
1 parent f532dfb commit 7c3e117
Show file tree
Hide file tree
Showing 15 changed files with 414 additions and 150 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files.eol": "\n",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.rulers": [ 140 ],
"eslint.enable": true
Expand Down
115 changes: 110 additions & 5 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,117 @@
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"username": {
"title": "Username",
"description": "Username for BlueAir account",
"type": "string",
"required": true,
"default": "Example Dynamic Platform"
"required": true
},
"password": {
"title": "Password",
"description": "Password for BlueAir account",
"type": "string",
"required": true
},
"verboseLogging": {
"title": "Verbose Logging",
"description": "Enable to receive detailed log messages. Useful for troubleshooting.",
"type": "boolean"
},
"devices": {
"title": "Devices",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true
},
"id": {
"title": "ID",
"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.",
"type": "boolean"
},
"airQualitySensor": {
"title": "Air Quality Sensor",
"description": "Toggles if the air quality sensor service is created with the accessory.",
"type": "boolean"
},
"co2Sensor": {
"title": "CO2 Sensor",
"description": "Toggles if the CO2 sensor service is created with the accessory.",
"type": "boolean"
},
"temperatureSensor": {
"title": "Temperature Sensor",
"description": "Toggles if the temperature sensor service is created with the accessory.",
"type": "boolean"
},
"humiditySensor": {
"title": "Humidity Sensor",
"description": "Toggles if the humidity sensor service is created with the accessory.",
"type": "boolean"
},
"germShield": {
"title": "Germ Shield",
"description": "Toggles if the germ shield switch service is created with the accessory.",
"type": "boolean"
},
"nightMode": {
"title": "Night Mode",
"description": "Toggles if the night mode switch service is created with the accessory.",
"type": "boolean"
}
}
}
}
}
}
},
"layout": [
{
"items": [
{
"ref": "common",
"type": "fieldset",
"expandable": true,
"expanded": true,
"title": "Common Settings",
"items": [
"username",
"password",
"verboseLogging"
]
},
{
"key": "devices",
"type": "tabarray",
"title": "{{ value.name || 'new device' }}",
"items": [
"devices[].name",
"devices[].id",
"devices[].enableAWS",
"devices[].led",
"devices[].airQualitySensor",
"devices[].co2Sensor",
"devices[].temperatureSensor",
"devices[].humiditySensor",
"devices[].germShield",
"devices[].nightMode"
]
}
]
}
]
}
93 changes: 93 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@
"rimraf": "^5.0.5",
"ts-node": "^10.9.2",
"typescript": "^5.4.4"
},
"dependencies": {
"axios": "^1.6.8"
}
}
Empty file added src/accessory/BaseAccessory.ts
Empty file.
Empty file added src/accessory/BlueAir.ts
Empty file.
Empty file added src/accessory/BlueAirAware.ts
Empty file.
Empty file added src/accessory/BlueAirClassic.ts
Empty file.
Empty file.
Loading

0 comments on commit 7c3e117

Please sign in to comment.