Skip to content

Commit

Permalink
Merge pull request #9 from jxg81/new-schema-errors
Browse files Browse the repository at this point in the history
Relax schema validation of non-essential items
  • Loading branch information
jxg81 authored Nov 7, 2022
2 parents b68b446 + 0d0685f commit 576ea65
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": false,
"displayName": "Homebridge Actron Que",
"name": "homebridge-actron-que",
"version": "1.2.5",
"version": "1.2.6",
"description": "Homebridge plugin for controlling Actron Que controller systems",
"license": "Apache-2.0",
"repository": {
Expand Down
42 changes: 23 additions & 19 deletions src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ export const SystemStatusSchema: Schema = {
lastKnownState: {
properties: {
LiveAircon: {
properties: {
AmRunningFan: {
type: 'boolean',
},
optionalProperties:{
CanRunSystem: {
type: 'boolean',
},
Expand All @@ -21,22 +18,33 @@ export const SystemStatusSchema: Schema = {
CompressorCapacity: {
type: 'uint8',
},
CompressorChasingTemperature: {
IndoorUnitTemp: {
type: 'float64',
},
CompressorLiveTemperature: {
type: 'float64',
LastCompressorPowerChange: {
type: 'string',
},
CompressorMode: {
LastCompressorPowerChange_time: {
type: 'string',
},
IndoorUnitTemp: {
SystemOn: {
type: 'boolean',
},
ZoneDemandSufficient: {
type: 'boolean',
},
},
properties: {
AmRunningFan: {
type: 'boolean',
},
CompressorChasingTemperature: {
type: 'float64',
},
LastCompressorPowerChange: {
type: 'string',
CompressorLiveTemperature: {
type: 'float64',
},
LastCompressorPowerChange_time: {
CompressorMode: {
type: 'string',
},
OutdoorUnit: {
Expand Down Expand Up @@ -77,17 +85,11 @@ export const SystemStatusSchema: Schema = {
},
additionalProperties: true,
},
SystemOn: {
type: 'boolean',
},
ZoneDemandSufficient: {
type: 'boolean',
},
},
additionalProperties: true,
},
MasterInfo: {
properties: {
optionalProperties:{
CanOperate: {
type: 'boolean',
},
Expand All @@ -97,6 +99,8 @@ export const SystemStatusSchema: Schema = {
CloudReachable: {
type: 'boolean',
},
},
properties: {
ControlAllZones: {
type: 'boolean',
},
Expand Down

0 comments on commit 576ea65

Please sign in to comment.