Skip to content

Commit

Permalink
tweak JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdavb committed May 27, 2024
1 parent e877967 commit 771cfec
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 103 deletions.
26 changes: 6 additions & 20 deletions tests/tests/schemas/hass_094805/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,41 +19,27 @@
"zoneId": "3333333",
"modelType": "FocusProWifiRetail",
"setpointCapabilities": {
"vacationHoldCapabilities": {
"isChangeable": false,
"isCancelable": false
},
"vacationHoldCapabilities": {"isChangeable": false, "isCancelable": false},
"maxHeatSetpoint": 32.0,
"minHeatSetpoint": 4.5,
"valueResolution": 0.5,
"canControlHeat": true,
"canControlCool": false,
"allowedSetpointModes": [
"PermanentOverride",
"VacationHold"
],
"allowedSetpointModes": ["PermanentOverride", "VacationHold"],
"maxDuration": "1.00:00:00",
"timingResolution": "00:15:00"
},
"name": "THERMOSTAT",
"zoneType": "Thermostat",
"allowedFanModes": [
{
"fanMode": "Auto"
},
{
"fanMode": "On"
}
{"fanMode": "Auto"},
{"fanMode": "On" }
]
}
],
"allowedSystemModes": [
{
"systemMode": "Off", "canBePermanent": true, "canBeTemporary": false
},
{
"systemMode": "Heat", "canBePermanent": true, "canBeTemporary": false
}
{"systemMode": "Off", "canBePermanent": true, "canBeTemporary": false},
{"systemMode": "Heat", "canBePermanent": true, "canBeTemporary": false}
]
}
]
Expand Down
59 changes: 25 additions & 34 deletions tests/tests/schemas/hass_094805/status.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,29 @@
{
"locationId": "1111111",
"gateways": [
"locationId": "1111111",
"gateways": [
{
"gatewayId": "2222222",
"temperatureControlSystems": [
{
"gatewayId": "2222222",
"temperatureControlSystems": [
{
"systemId": "3333333",
"zones": [
{
"zoneId": "3333333",
"temperatureStatus": {
"temperature": 23.0,
"isAvailable": true
},
"activeFaults": [],
"setpointStatus": {
"targetHeatTemperature": 23.0,
"setpointMode": "PermanentOverride"
},
"name": "THERMOSTAT",
"fanStatus": {
"fanMode": "Auto",
"canBeChanged": true
}
}
],
"activeFaults": [],
"systemModeStatus": {
"mode": "Off",
"isPermanent": true
}
}
],
"activeFaults": []
"systemId": "3333333",
"zones": [
{
"zoneId": "3333333",
"temperatureStatus": {
"temperature": 23.0, "isAvailable": true
},
"activeFaults": [],
"setpointStatus": {
"targetHeatTemperature": 23.0, "setpointMode": "PermanentOverride"},
"name": "THERMOSTAT",
"fanStatus": {"fanMode": "Auto", "canBeChanged": true}
}
],
"activeFaults": [],
"systemModeStatus": {"mode": "Off", "isPermanent": true}
}
]
],
"activeFaults": []
}
]
}
30 changes: 4 additions & 26 deletions tests/tests/schemas/hass_099625/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,32 +69,10 @@
}
],
"allowedSystemModes": [
{
"systemMode": "Auto",
"canBePermanent": true,
"canBeTemporary": false
},
{
"systemMode": "AutoWithEco",
"canBePermanent": true,
"canBeTemporary": true,
"maxDuration": "1.00:00:00",
"timingResolution": "01:00:00",
"timingMode": "Duration"
},
{
"systemMode": "Away",
"canBePermanent": true,
"canBeTemporary": true,
"maxDuration": "99.00:00:00",
"timingResolution": "1.00:00:00",
"timingMode": "Period"
},
{
"systemMode": "HeatingOff",
"canBePermanent": true,
"canBeTemporary": false
}
{"systemMode": "Auto", "canBePermanent": true, "canBeTemporary": false},
{"systemMode": "AutoWithEco", "canBePermanent": true, "canBeTemporary": true, "maxDuration": "1.00:00:00", "timingResolution": "01:00:00", "timingMode": "Duration"},
{"systemMode": "Away", "canBePermanent": true, "canBeTemporary": true, "maxDuration": "99.00:00:00", "timingResolution": "1.00:00:00", "timingMode": "Period"},
{"systemMode": "HeatingOff", "canBePermanent": true, "canBeTemporary": false}
]
}
]
Expand Down
30 changes: 7 additions & 23 deletions tests/tests/schemas/hass_102815/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
"zoneId": "632515",
"modelType": "FocusProWifiRetail",
"setpointCapabilities": {
"vacationHoldCapabilities": {
"isChangeable": false,
"isCancelable": false
},
"vacationHoldCapabilities": {"isChangeable": false, "isCancelable": false},
"maxHeatSetpoint": 32.0,
"minHeatSetpoint": 4.5,
"maxCoolSetpoint": 37.0,
Expand All @@ -31,35 +28,22 @@
"valueResolution": 0.5,
"canControlHeat": true,
"canControlCool": true,
"allowedSetpointModes": [
"PermanentOverride",
"VacationHold"
],
"allowedSetpointModes": ["PermanentOverride", "VacationHold"],
"maxDuration": "1.00:00:00",
"timingResolution": "00:15:00"
},
"name": "DINING ROOM",
"zoneType": "Thermostat",
"allowedFanModes": [
{
"fanMode": "Auto"
},
{
"fanMode": "On"
}
{"fanMode": "Auto"},
{"fanMode": "On" }
]
}
],
"allowedSystemModes": [
{
"systemMode": "Off", "canBePermanent": true, "canBeTemporary": false
},
{
"systemMode": "Heat", "canBePermanent": true, "canBeTemporary": false
},
{
"systemMode": "Cool", "canBePermanent": true, "canBeTemporary": false
}
{"systemMode": "Off", "canBePermanent": true, "canBeTemporary": false},
{"systemMode": "Heat", "canBePermanent": true, "canBeTemporary": false},
{"systemMode": "Cool", "canBePermanent": true, "canBeTemporary": false}
]
}
]
Expand Down
66 changes: 66 additions & 0 deletions tests/tests/schemas/hass_118169/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[
{
"locationInfo": {
"locationId": "REDACTED",
"name": "Home",
"streetAddress": "REDACTED",
"city": "REDACTED",
"country": "REDACTED",
"postcode": "",
"locationType": "Residential",
"useDaylightSaveSwitching": true,
"timeZone": {
"timeZoneId": "REDACTED",
"displayName": "REDACTED",
"offsetMinutes": 600,
"currentOffsetMinutes": 600,
"supportsDaylightSaving": true
},
"locationOwner": {
"userId": "REDACTED",
"username": "REDACTED",
"firstname": "REDACTED",
"lastname": "REDACTED"
}
},
"gateways": [
{
"gatewayInfo": {
"gatewayId": "REDACTED", "mac": "REDACTED", "crc": "REDACTED", "isWiFi": true
},
"temperatureControlSystems": [
{
"systemId": "REDACTED",
"modelType": "FocusProWifiRetail",
"zones": [
{
"zoneId": "REDACTED",
"modelType": "FocusProWifiRetail",
"setpointCapabilities": {
"vacationHoldCapabilities": {"isChangeable": false, "isCancelable": false},
"maxHeatSetpoint": 32.0,
"minHeatSetpoint": 4.5,
"valueResolution": 0.5,
"canControlHeat": true,
"canControlCool": false,
"allowedSetpointModes": ["PermanentOverride", "FollowSchedule", "TemporaryOverride", "VacationHold"],
"maxDuration": "1.00:00:00",
"timingResolution": "00:15:00"
},
"scheduleCapabilities": {
"maxSwitchpointsPerDay": 4, "minSwitchpointsPerDay": 0, "timingResolution": "00:15:00", "setpointValueResolution": 0.5
},
"name": "THERMOSTAT",
"zoneType": "Thermostat"
}
],
"allowedSystemModes": [
{"systemMode": "Off", "canBePermanent": true, "canBeTemporary": false},
{"systemMode": "Heat", "canBePermanent": true, "canBeTemporary": false}
]
}
]
}
]
}
]

0 comments on commit 771cfec

Please sign in to comment.