@seamapi/types 0.31.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/seam/connect/route-types.d.ts +61 -58
- package/lib/seam/connect/unstable/models/capability-properties/index.d.ts +54 -54
- package/lib/seam/connect/unstable/models/capability-properties/thermostat.d.ts +116 -116
- package/lib/seam/connect/unstable/models/capability-properties/thermostat.js +2 -2
- package/lib/seam/connect/unstable/models/capability-properties/thermostat.js.map +1 -1
- package/lib/seam/connect/unstable/models/managed-device.d.ts +102 -102
- package/package.json +1 -1
- package/src/lib/seam/connect/route-types.ts +63 -55
- package/src/lib/seam/connect/unstable/models/capability-properties/thermostat.ts +5 -5
package/package.json
CHANGED
|
@@ -14,6 +14,7 @@ export interface Routes {
|
|
|
14
14
|
common_code_key?: string | undefined
|
|
15
15
|
prefer_native_scheduling?: boolean | undefined
|
|
16
16
|
use_backup_access_code_pool?: boolean | undefined
|
|
17
|
+
allow_external_modification?: boolean | undefined
|
|
17
18
|
}
|
|
18
19
|
commonParams: {}
|
|
19
20
|
formData: {}
|
|
@@ -79,6 +80,7 @@ export interface Routes {
|
|
|
79
80
|
attempt_for_offline_device?: boolean
|
|
80
81
|
prefer_native_scheduling?: boolean | undefined
|
|
81
82
|
use_backup_access_code_pool?: boolean | undefined
|
|
83
|
+
allow_external_modification?: boolean | undefined
|
|
82
84
|
}
|
|
83
85
|
commonParams: {}
|
|
84
86
|
formData: {}
|
|
@@ -425,6 +427,7 @@ export interface Routes {
|
|
|
425
427
|
attempt_for_offline_device?: boolean
|
|
426
428
|
prefer_native_scheduling?: boolean | undefined
|
|
427
429
|
use_backup_access_code_pool?: boolean | undefined
|
|
430
|
+
allow_external_modification?: boolean | undefined
|
|
428
431
|
access_code_id: string
|
|
429
432
|
device_id?: string | undefined
|
|
430
433
|
type?: ('ongoing' | 'time_bound') | undefined
|
|
@@ -1169,7 +1172,7 @@ export interface Routes {
|
|
|
1169
1172
|
can_enable_automatic_heating?: boolean | undefined
|
|
1170
1173
|
can_enable_automatic_cooling?: boolean | undefined
|
|
1171
1174
|
available_hvac_mode_settings?:
|
|
1172
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
1175
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
1173
1176
|
| undefined
|
|
1174
1177
|
is_heating_available?: true | undefined
|
|
1175
1178
|
is_cooling_available?: true | undefined
|
|
@@ -1181,7 +1184,7 @@ export interface Routes {
|
|
|
1181
1184
|
| {
|
|
1182
1185
|
automatic_heating_enabled: boolean
|
|
1183
1186
|
automatic_cooling_enabled: boolean
|
|
1184
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
1187
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
1185
1188
|
cooling_set_point_celsius?: number | undefined
|
|
1186
1189
|
heating_set_point_celsius?: number | undefined
|
|
1187
1190
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1198,7 +1201,7 @@ export interface Routes {
|
|
|
1198
1201
|
| 'off'
|
|
1199
1202
|
| 'heat'
|
|
1200
1203
|
| 'cool'
|
|
1201
|
-
| '
|
|
1204
|
+
| 'heat_cool'
|
|
1202
1205
|
cooling_set_point_celsius?: number | undefined
|
|
1203
1206
|
heating_set_point_celsius?: number | undefined
|
|
1204
1207
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1222,7 +1225,7 @@ export interface Routes {
|
|
|
1222
1225
|
automatic_heating_enabled?: boolean | undefined
|
|
1223
1226
|
automatic_cooling_enabled?: boolean | undefined
|
|
1224
1227
|
hvac_mode_setting?:
|
|
1225
|
-
| ('off' | 'heat' | 'cool' | '
|
|
1228
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
1226
1229
|
| undefined
|
|
1227
1230
|
cooling_set_point_celsius?:
|
|
1228
1231
|
| (number | undefined)
|
|
@@ -1259,7 +1262,7 @@ export interface Routes {
|
|
|
1259
1262
|
can_enable_automatic_heating?: boolean | undefined
|
|
1260
1263
|
can_enable_automatic_cooling?: boolean | undefined
|
|
1261
1264
|
available_hvac_mode_settings?:
|
|
1262
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
1265
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
1263
1266
|
| undefined
|
|
1264
1267
|
is_heating_available?: true | undefined
|
|
1265
1268
|
is_cooling_available?: false | undefined
|
|
@@ -1271,7 +1274,7 @@ export interface Routes {
|
|
|
1271
1274
|
| {
|
|
1272
1275
|
automatic_heating_enabled: boolean
|
|
1273
1276
|
automatic_cooling_enabled: boolean
|
|
1274
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
1277
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
1275
1278
|
cooling_set_point_celsius?: number | undefined
|
|
1276
1279
|
heating_set_point_celsius?: number | undefined
|
|
1277
1280
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1288,7 +1291,7 @@ export interface Routes {
|
|
|
1288
1291
|
| 'off'
|
|
1289
1292
|
| 'heat'
|
|
1290
1293
|
| 'cool'
|
|
1291
|
-
| '
|
|
1294
|
+
| 'heat_cool'
|
|
1292
1295
|
cooling_set_point_celsius?: number | undefined
|
|
1293
1296
|
heating_set_point_celsius?: number | undefined
|
|
1294
1297
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1312,7 +1315,7 @@ export interface Routes {
|
|
|
1312
1315
|
automatic_heating_enabled?: boolean | undefined
|
|
1313
1316
|
automatic_cooling_enabled?: boolean | undefined
|
|
1314
1317
|
hvac_mode_setting?:
|
|
1315
|
-
| ('off' | 'heat' | 'cool' | '
|
|
1318
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
1316
1319
|
| undefined
|
|
1317
1320
|
cooling_set_point_celsius?:
|
|
1318
1321
|
| (number | undefined)
|
|
@@ -1343,7 +1346,7 @@ export interface Routes {
|
|
|
1343
1346
|
can_enable_automatic_heating?: boolean | undefined
|
|
1344
1347
|
can_enable_automatic_cooling?: boolean | undefined
|
|
1345
1348
|
available_hvac_mode_settings?:
|
|
1346
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
1349
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
1347
1350
|
| undefined
|
|
1348
1351
|
is_heating_available?: false | undefined
|
|
1349
1352
|
is_cooling_available?: true | undefined
|
|
@@ -1355,7 +1358,7 @@ export interface Routes {
|
|
|
1355
1358
|
| {
|
|
1356
1359
|
automatic_heating_enabled: boolean
|
|
1357
1360
|
automatic_cooling_enabled: boolean
|
|
1358
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
1361
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
1359
1362
|
cooling_set_point_celsius?: number | undefined
|
|
1360
1363
|
heating_set_point_celsius?: number | undefined
|
|
1361
1364
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1372,7 +1375,7 @@ export interface Routes {
|
|
|
1372
1375
|
| 'off'
|
|
1373
1376
|
| 'heat'
|
|
1374
1377
|
| 'cool'
|
|
1375
|
-
| '
|
|
1378
|
+
| 'heat_cool'
|
|
1376
1379
|
cooling_set_point_celsius?: number | undefined
|
|
1377
1380
|
heating_set_point_celsius?: number | undefined
|
|
1378
1381
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1396,7 +1399,7 @@ export interface Routes {
|
|
|
1396
1399
|
automatic_heating_enabled?: boolean | undefined
|
|
1397
1400
|
automatic_cooling_enabled?: boolean | undefined
|
|
1398
1401
|
hvac_mode_setting?:
|
|
1399
|
-
| ('off' | 'heat' | 'cool' | '
|
|
1402
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
1400
1403
|
| undefined
|
|
1401
1404
|
cooling_set_point_celsius?:
|
|
1402
1405
|
| (number | undefined)
|
|
@@ -1846,7 +1849,7 @@ export interface Routes {
|
|
|
1846
1849
|
can_enable_automatic_heating?: boolean | undefined
|
|
1847
1850
|
can_enable_automatic_cooling?: boolean | undefined
|
|
1848
1851
|
available_hvac_mode_settings?:
|
|
1849
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
1852
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
1850
1853
|
| undefined
|
|
1851
1854
|
is_heating_available?: true | undefined
|
|
1852
1855
|
is_cooling_available?: true | undefined
|
|
@@ -1858,7 +1861,7 @@ export interface Routes {
|
|
|
1858
1861
|
| {
|
|
1859
1862
|
automatic_heating_enabled: boolean
|
|
1860
1863
|
automatic_cooling_enabled: boolean
|
|
1861
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
1864
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
1862
1865
|
cooling_set_point_celsius?: number | undefined
|
|
1863
1866
|
heating_set_point_celsius?: number | undefined
|
|
1864
1867
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1875,7 +1878,7 @@ export interface Routes {
|
|
|
1875
1878
|
| 'off'
|
|
1876
1879
|
| 'heat'
|
|
1877
1880
|
| 'cool'
|
|
1878
|
-
| '
|
|
1881
|
+
| 'heat_cool'
|
|
1879
1882
|
cooling_set_point_celsius?: number | undefined
|
|
1880
1883
|
heating_set_point_celsius?: number | undefined
|
|
1881
1884
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1899,7 +1902,7 @@ export interface Routes {
|
|
|
1899
1902
|
automatic_heating_enabled?: boolean | undefined
|
|
1900
1903
|
automatic_cooling_enabled?: boolean | undefined
|
|
1901
1904
|
hvac_mode_setting?:
|
|
1902
|
-
| ('off' | 'heat' | 'cool' | '
|
|
1905
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
1903
1906
|
| undefined
|
|
1904
1907
|
cooling_set_point_celsius?:
|
|
1905
1908
|
| (number | undefined)
|
|
@@ -1936,7 +1939,7 @@ export interface Routes {
|
|
|
1936
1939
|
can_enable_automatic_heating?: boolean | undefined
|
|
1937
1940
|
can_enable_automatic_cooling?: boolean | undefined
|
|
1938
1941
|
available_hvac_mode_settings?:
|
|
1939
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
1942
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
1940
1943
|
| undefined
|
|
1941
1944
|
is_heating_available?: true | undefined
|
|
1942
1945
|
is_cooling_available?: false | undefined
|
|
@@ -1948,7 +1951,7 @@ export interface Routes {
|
|
|
1948
1951
|
| {
|
|
1949
1952
|
automatic_heating_enabled: boolean
|
|
1950
1953
|
automatic_cooling_enabled: boolean
|
|
1951
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
1954
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
1952
1955
|
cooling_set_point_celsius?: number | undefined
|
|
1953
1956
|
heating_set_point_celsius?: number | undefined
|
|
1954
1957
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1965,7 +1968,7 @@ export interface Routes {
|
|
|
1965
1968
|
| 'off'
|
|
1966
1969
|
| 'heat'
|
|
1967
1970
|
| 'cool'
|
|
1968
|
-
| '
|
|
1971
|
+
| 'heat_cool'
|
|
1969
1972
|
cooling_set_point_celsius?: number | undefined
|
|
1970
1973
|
heating_set_point_celsius?: number | undefined
|
|
1971
1974
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1989,7 +1992,7 @@ export interface Routes {
|
|
|
1989
1992
|
automatic_heating_enabled?: boolean | undefined
|
|
1990
1993
|
automatic_cooling_enabled?: boolean | undefined
|
|
1991
1994
|
hvac_mode_setting?:
|
|
1992
|
-
| ('off' | 'heat' | 'cool' | '
|
|
1995
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
1993
1996
|
| undefined
|
|
1994
1997
|
cooling_set_point_celsius?:
|
|
1995
1998
|
| (number | undefined)
|
|
@@ -2020,7 +2023,7 @@ export interface Routes {
|
|
|
2020
2023
|
can_enable_automatic_heating?: boolean | undefined
|
|
2021
2024
|
can_enable_automatic_cooling?: boolean | undefined
|
|
2022
2025
|
available_hvac_mode_settings?:
|
|
2023
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
2026
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
2024
2027
|
| undefined
|
|
2025
2028
|
is_heating_available?: false | undefined
|
|
2026
2029
|
is_cooling_available?: true | undefined
|
|
@@ -2032,7 +2035,7 @@ export interface Routes {
|
|
|
2032
2035
|
| {
|
|
2033
2036
|
automatic_heating_enabled: boolean
|
|
2034
2037
|
automatic_cooling_enabled: boolean
|
|
2035
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
2038
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
2036
2039
|
cooling_set_point_celsius?: number | undefined
|
|
2037
2040
|
heating_set_point_celsius?: number | undefined
|
|
2038
2041
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -2049,7 +2052,7 @@ export interface Routes {
|
|
|
2049
2052
|
| 'off'
|
|
2050
2053
|
| 'heat'
|
|
2051
2054
|
| 'cool'
|
|
2052
|
-
| '
|
|
2055
|
+
| 'heat_cool'
|
|
2053
2056
|
cooling_set_point_celsius?: number | undefined
|
|
2054
2057
|
heating_set_point_celsius?: number | undefined
|
|
2055
2058
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -2073,7 +2076,7 @@ export interface Routes {
|
|
|
2073
2076
|
automatic_heating_enabled?: boolean | undefined
|
|
2074
2077
|
automatic_cooling_enabled?: boolean | undefined
|
|
2075
2078
|
hvac_mode_setting?:
|
|
2076
|
-
| ('off' | 'heat' | 'cool' | '
|
|
2079
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
2077
2080
|
| undefined
|
|
2078
2081
|
cooling_set_point_celsius?:
|
|
2079
2082
|
| (number | undefined)
|
|
@@ -2173,6 +2176,7 @@ export interface Routes {
|
|
|
2173
2176
|
| 'igloohome_lock'
|
|
2174
2177
|
| 'hubitat_lock'
|
|
2175
2178
|
| 'four_suites_door'
|
|
2179
|
+
| 'dormakaba_oracode_door'
|
|
2176
2180
|
)
|
|
2177
2181
|
| ('noiseaware_activity_zone' | 'minut_sensor')
|
|
2178
2182
|
| ('ecobee_thermostat' | 'nest_thermostat')
|
|
@@ -2469,6 +2473,7 @@ export interface Routes {
|
|
|
2469
2473
|
| 'access_code.delay_in_setting_on_device'
|
|
2470
2474
|
| 'access_code.failed_to_remove_from_device'
|
|
2471
2475
|
| 'access_code.delay_in_removing_from_device'
|
|
2476
|
+
| 'access_code.modified_external_to_seam'
|
|
2472
2477
|
| 'access_code.unmanaged.converted_to_managed'
|
|
2473
2478
|
| 'access_code.unmanaged.failed_to_convert_to_managed'
|
|
2474
2479
|
| 'access_code.unmanaged.created'
|
|
@@ -2477,6 +2482,7 @@ export interface Routes {
|
|
|
2477
2482
|
| 'lock.unlocked'
|
|
2478
2483
|
| 'connected_account.connected'
|
|
2479
2484
|
| 'connected_account.created'
|
|
2485
|
+
| 'connected_account.deleted'
|
|
2480
2486
|
| 'connected_account.disconnected'
|
|
2481
2487
|
| 'connected_account.completed_first_sync'
|
|
2482
2488
|
| 'noise_sensor.noise_threshold_triggered'
|
|
@@ -2505,6 +2511,7 @@ export interface Routes {
|
|
|
2505
2511
|
| 'access_code.delay_in_setting_on_device'
|
|
2506
2512
|
| 'access_code.failed_to_remove_from_device'
|
|
2507
2513
|
| 'access_code.delay_in_removing_from_device'
|
|
2514
|
+
| 'access_code.modified_external_to_seam'
|
|
2508
2515
|
| 'access_code.unmanaged.converted_to_managed'
|
|
2509
2516
|
| 'access_code.unmanaged.failed_to_convert_to_managed'
|
|
2510
2517
|
| 'access_code.unmanaged.created'
|
|
@@ -2513,6 +2520,7 @@ export interface Routes {
|
|
|
2513
2520
|
| 'lock.unlocked'
|
|
2514
2521
|
| 'connected_account.connected'
|
|
2515
2522
|
| 'connected_account.created'
|
|
2523
|
+
| 'connected_account.deleted'
|
|
2516
2524
|
| 'connected_account.disconnected'
|
|
2517
2525
|
| 'connected_account.completed_first_sync'
|
|
2518
2526
|
| 'noise_sensor.noise_threshold_triggered'
|
|
@@ -3010,7 +3018,7 @@ export interface Routes {
|
|
|
3010
3018
|
schedule_ends_at: string
|
|
3011
3019
|
automatic_heating_enabled?: boolean | undefined
|
|
3012
3020
|
automatic_cooling_enabled?: boolean | undefined
|
|
3013
|
-
hvac_mode_setting?: ('off' | 'heat' | 'cool' | '
|
|
3021
|
+
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
|
|
3014
3022
|
cooling_set_point_celsius?: (number | undefined) | undefined
|
|
3015
3023
|
heating_set_point_celsius?: (number | undefined) | undefined
|
|
3016
3024
|
cooling_set_point_fahrenheit?: (number | undefined) | undefined
|
|
@@ -3030,7 +3038,7 @@ export interface Routes {
|
|
|
3030
3038
|
created_at: string
|
|
3031
3039
|
automatic_heating_enabled?: boolean | undefined
|
|
3032
3040
|
automatic_cooling_enabled?: boolean | undefined
|
|
3033
|
-
hvac_mode_setting?: ('off' | 'heat' | 'cool' | '
|
|
3041
|
+
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
|
|
3034
3042
|
cooling_set_point_celsius?: (number | undefined) | undefined
|
|
3035
3043
|
heating_set_point_celsius?: (number | undefined) | undefined
|
|
3036
3044
|
cooling_set_point_fahrenheit?: (number | undefined) | undefined
|
|
@@ -3071,7 +3079,7 @@ export interface Routes {
|
|
|
3071
3079
|
created_at: string
|
|
3072
3080
|
automatic_heating_enabled?: boolean | undefined
|
|
3073
3081
|
automatic_cooling_enabled?: boolean | undefined
|
|
3074
|
-
hvac_mode_setting?: ('off' | 'heat' | 'cool' | '
|
|
3082
|
+
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
|
|
3075
3083
|
cooling_set_point_celsius?: (number | undefined) | undefined
|
|
3076
3084
|
heating_set_point_celsius?: (number | undefined) | undefined
|
|
3077
3085
|
cooling_set_point_fahrenheit?: (number | undefined) | undefined
|
|
@@ -3100,7 +3108,7 @@ export interface Routes {
|
|
|
3100
3108
|
created_at: string
|
|
3101
3109
|
automatic_heating_enabled?: boolean | undefined
|
|
3102
3110
|
automatic_cooling_enabled?: boolean | undefined
|
|
3103
|
-
hvac_mode_setting?: ('off' | 'heat' | 'cool' | '
|
|
3111
|
+
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
|
|
3104
3112
|
cooling_set_point_celsius?: (number | undefined) | undefined
|
|
3105
3113
|
heating_set_point_celsius?: (number | undefined) | undefined
|
|
3106
3114
|
cooling_set_point_fahrenheit?: (number | undefined) | undefined
|
|
@@ -3121,7 +3129,7 @@ export interface Routes {
|
|
|
3121
3129
|
schedule_ends_at?: string | undefined
|
|
3122
3130
|
automatic_heating_enabled?: boolean | undefined
|
|
3123
3131
|
automatic_cooling_enabled?: boolean | undefined
|
|
3124
|
-
hvac_mode_setting?: ('off' | 'heat' | 'cool' | '
|
|
3132
|
+
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
|
|
3125
3133
|
cooling_set_point_celsius?: (number | undefined) | undefined
|
|
3126
3134
|
heating_set_point_celsius?: (number | undefined) | undefined
|
|
3127
3135
|
cooling_set_point_fahrenheit?: (number | undefined) | undefined
|
|
@@ -3141,7 +3149,7 @@ export interface Routes {
|
|
|
3141
3149
|
created_at: string
|
|
3142
3150
|
automatic_heating_enabled?: boolean | undefined
|
|
3143
3151
|
automatic_cooling_enabled?: boolean | undefined
|
|
3144
|
-
hvac_mode_setting?: ('off' | 'heat' | 'cool' | '
|
|
3152
|
+
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
|
|
3145
3153
|
cooling_set_point_celsius?: (number | undefined) | undefined
|
|
3146
3154
|
heating_set_point_celsius?: (number | undefined) | undefined
|
|
3147
3155
|
cooling_set_point_fahrenheit?: (number | undefined) | undefined
|
|
@@ -3467,7 +3475,7 @@ export interface Routes {
|
|
|
3467
3475
|
can_enable_automatic_heating?: boolean | undefined
|
|
3468
3476
|
can_enable_automatic_cooling?: boolean | undefined
|
|
3469
3477
|
available_hvac_mode_settings?:
|
|
3470
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
3478
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
3471
3479
|
| undefined
|
|
3472
3480
|
is_heating_available?: true | undefined
|
|
3473
3481
|
is_cooling_available?: true | undefined
|
|
@@ -3479,7 +3487,7 @@ export interface Routes {
|
|
|
3479
3487
|
| {
|
|
3480
3488
|
automatic_heating_enabled: boolean
|
|
3481
3489
|
automatic_cooling_enabled: boolean
|
|
3482
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
3490
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
3483
3491
|
cooling_set_point_celsius?: number | undefined
|
|
3484
3492
|
heating_set_point_celsius?: number | undefined
|
|
3485
3493
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -3496,7 +3504,7 @@ export interface Routes {
|
|
|
3496
3504
|
| 'off'
|
|
3497
3505
|
| 'heat'
|
|
3498
3506
|
| 'cool'
|
|
3499
|
-
| '
|
|
3507
|
+
| 'heat_cool'
|
|
3500
3508
|
cooling_set_point_celsius?: number | undefined
|
|
3501
3509
|
heating_set_point_celsius?: number | undefined
|
|
3502
3510
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -3520,7 +3528,7 @@ export interface Routes {
|
|
|
3520
3528
|
automatic_heating_enabled?: boolean | undefined
|
|
3521
3529
|
automatic_cooling_enabled?: boolean | undefined
|
|
3522
3530
|
hvac_mode_setting?:
|
|
3523
|
-
| ('off' | 'heat' | 'cool' | '
|
|
3531
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
3524
3532
|
| undefined
|
|
3525
3533
|
cooling_set_point_celsius?:
|
|
3526
3534
|
| (number | undefined)
|
|
@@ -3557,7 +3565,7 @@ export interface Routes {
|
|
|
3557
3565
|
can_enable_automatic_heating?: boolean | undefined
|
|
3558
3566
|
can_enable_automatic_cooling?: boolean | undefined
|
|
3559
3567
|
available_hvac_mode_settings?:
|
|
3560
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
3568
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
3561
3569
|
| undefined
|
|
3562
3570
|
is_heating_available?: true | undefined
|
|
3563
3571
|
is_cooling_available?: false | undefined
|
|
@@ -3569,7 +3577,7 @@ export interface Routes {
|
|
|
3569
3577
|
| {
|
|
3570
3578
|
automatic_heating_enabled: boolean
|
|
3571
3579
|
automatic_cooling_enabled: boolean
|
|
3572
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
3580
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
3573
3581
|
cooling_set_point_celsius?: number | undefined
|
|
3574
3582
|
heating_set_point_celsius?: number | undefined
|
|
3575
3583
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -3586,7 +3594,7 @@ export interface Routes {
|
|
|
3586
3594
|
| 'off'
|
|
3587
3595
|
| 'heat'
|
|
3588
3596
|
| 'cool'
|
|
3589
|
-
| '
|
|
3597
|
+
| 'heat_cool'
|
|
3590
3598
|
cooling_set_point_celsius?: number | undefined
|
|
3591
3599
|
heating_set_point_celsius?: number | undefined
|
|
3592
3600
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -3610,7 +3618,7 @@ export interface Routes {
|
|
|
3610
3618
|
automatic_heating_enabled?: boolean | undefined
|
|
3611
3619
|
automatic_cooling_enabled?: boolean | undefined
|
|
3612
3620
|
hvac_mode_setting?:
|
|
3613
|
-
| ('off' | 'heat' | 'cool' | '
|
|
3621
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
3614
3622
|
| undefined
|
|
3615
3623
|
cooling_set_point_celsius?:
|
|
3616
3624
|
| (number | undefined)
|
|
@@ -3641,7 +3649,7 @@ export interface Routes {
|
|
|
3641
3649
|
can_enable_automatic_heating?: boolean | undefined
|
|
3642
3650
|
can_enable_automatic_cooling?: boolean | undefined
|
|
3643
3651
|
available_hvac_mode_settings?:
|
|
3644
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
3652
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
3645
3653
|
| undefined
|
|
3646
3654
|
is_heating_available?: false | undefined
|
|
3647
3655
|
is_cooling_available?: true | undefined
|
|
@@ -3653,7 +3661,7 @@ export interface Routes {
|
|
|
3653
3661
|
| {
|
|
3654
3662
|
automatic_heating_enabled: boolean
|
|
3655
3663
|
automatic_cooling_enabled: boolean
|
|
3656
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
3664
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
3657
3665
|
cooling_set_point_celsius?: number | undefined
|
|
3658
3666
|
heating_set_point_celsius?: number | undefined
|
|
3659
3667
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -3670,7 +3678,7 @@ export interface Routes {
|
|
|
3670
3678
|
| 'off'
|
|
3671
3679
|
| 'heat'
|
|
3672
3680
|
| 'cool'
|
|
3673
|
-
| '
|
|
3681
|
+
| 'heat_cool'
|
|
3674
3682
|
cooling_set_point_celsius?: number | undefined
|
|
3675
3683
|
heating_set_point_celsius?: number | undefined
|
|
3676
3684
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -3694,7 +3702,7 @@ export interface Routes {
|
|
|
3694
3702
|
automatic_heating_enabled?: boolean | undefined
|
|
3695
3703
|
automatic_cooling_enabled?: boolean | undefined
|
|
3696
3704
|
hvac_mode_setting?:
|
|
3697
|
-
| ('off' | 'heat' | 'cool' | '
|
|
3705
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
3698
3706
|
| undefined
|
|
3699
3707
|
cooling_set_point_celsius?:
|
|
3700
3708
|
| (number | undefined)
|
|
@@ -4174,7 +4182,7 @@ export interface Routes {
|
|
|
4174
4182
|
can_enable_automatic_heating?: boolean | undefined
|
|
4175
4183
|
can_enable_automatic_cooling?: boolean | undefined
|
|
4176
4184
|
available_hvac_mode_settings?:
|
|
4177
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
4185
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
4178
4186
|
| undefined
|
|
4179
4187
|
is_heating_available?: true | undefined
|
|
4180
4188
|
is_cooling_available?: true | undefined
|
|
@@ -4186,7 +4194,7 @@ export interface Routes {
|
|
|
4186
4194
|
| {
|
|
4187
4195
|
automatic_heating_enabled: boolean
|
|
4188
4196
|
automatic_cooling_enabled: boolean
|
|
4189
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
4197
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
4190
4198
|
cooling_set_point_celsius?: number | undefined
|
|
4191
4199
|
heating_set_point_celsius?: number | undefined
|
|
4192
4200
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -4203,7 +4211,7 @@ export interface Routes {
|
|
|
4203
4211
|
| 'off'
|
|
4204
4212
|
| 'heat'
|
|
4205
4213
|
| 'cool'
|
|
4206
|
-
| '
|
|
4214
|
+
| 'heat_cool'
|
|
4207
4215
|
cooling_set_point_celsius?: number | undefined
|
|
4208
4216
|
heating_set_point_celsius?: number | undefined
|
|
4209
4217
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -4227,7 +4235,7 @@ export interface Routes {
|
|
|
4227
4235
|
automatic_heating_enabled?: boolean | undefined
|
|
4228
4236
|
automatic_cooling_enabled?: boolean | undefined
|
|
4229
4237
|
hvac_mode_setting?:
|
|
4230
|
-
| ('off' | 'heat' | 'cool' | '
|
|
4238
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
4231
4239
|
| undefined
|
|
4232
4240
|
cooling_set_point_celsius?:
|
|
4233
4241
|
| (number | undefined)
|
|
@@ -4264,7 +4272,7 @@ export interface Routes {
|
|
|
4264
4272
|
can_enable_automatic_heating?: boolean | undefined
|
|
4265
4273
|
can_enable_automatic_cooling?: boolean | undefined
|
|
4266
4274
|
available_hvac_mode_settings?:
|
|
4267
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
4275
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
4268
4276
|
| undefined
|
|
4269
4277
|
is_heating_available?: true | undefined
|
|
4270
4278
|
is_cooling_available?: false | undefined
|
|
@@ -4276,7 +4284,7 @@ export interface Routes {
|
|
|
4276
4284
|
| {
|
|
4277
4285
|
automatic_heating_enabled: boolean
|
|
4278
4286
|
automatic_cooling_enabled: boolean
|
|
4279
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
4287
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
4280
4288
|
cooling_set_point_celsius?: number | undefined
|
|
4281
4289
|
heating_set_point_celsius?: number | undefined
|
|
4282
4290
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -4293,7 +4301,7 @@ export interface Routes {
|
|
|
4293
4301
|
| 'off'
|
|
4294
4302
|
| 'heat'
|
|
4295
4303
|
| 'cool'
|
|
4296
|
-
| '
|
|
4304
|
+
| 'heat_cool'
|
|
4297
4305
|
cooling_set_point_celsius?: number | undefined
|
|
4298
4306
|
heating_set_point_celsius?: number | undefined
|
|
4299
4307
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -4317,7 +4325,7 @@ export interface Routes {
|
|
|
4317
4325
|
automatic_heating_enabled?: boolean | undefined
|
|
4318
4326
|
automatic_cooling_enabled?: boolean | undefined
|
|
4319
4327
|
hvac_mode_setting?:
|
|
4320
|
-
| ('off' | 'heat' | 'cool' | '
|
|
4328
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
4321
4329
|
| undefined
|
|
4322
4330
|
cooling_set_point_celsius?:
|
|
4323
4331
|
| (number | undefined)
|
|
@@ -4348,7 +4356,7 @@ export interface Routes {
|
|
|
4348
4356
|
can_enable_automatic_heating?: boolean | undefined
|
|
4349
4357
|
can_enable_automatic_cooling?: boolean | undefined
|
|
4350
4358
|
available_hvac_mode_settings?:
|
|
4351
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
4359
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
4352
4360
|
| undefined
|
|
4353
4361
|
is_heating_available?: false | undefined
|
|
4354
4362
|
is_cooling_available?: true | undefined
|
|
@@ -4360,7 +4368,7 @@ export interface Routes {
|
|
|
4360
4368
|
| {
|
|
4361
4369
|
automatic_heating_enabled: boolean
|
|
4362
4370
|
automatic_cooling_enabled: boolean
|
|
4363
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
4371
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
4364
4372
|
cooling_set_point_celsius?: number | undefined
|
|
4365
4373
|
heating_set_point_celsius?: number | undefined
|
|
4366
4374
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -4377,7 +4385,7 @@ export interface Routes {
|
|
|
4377
4385
|
| 'off'
|
|
4378
4386
|
| 'heat'
|
|
4379
4387
|
| 'cool'
|
|
4380
|
-
| '
|
|
4388
|
+
| 'heat_cool'
|
|
4381
4389
|
cooling_set_point_celsius?: number | undefined
|
|
4382
4390
|
heating_set_point_celsius?: number | undefined
|
|
4383
4391
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -4401,7 +4409,7 @@ export interface Routes {
|
|
|
4401
4409
|
automatic_heating_enabled?: boolean | undefined
|
|
4402
4410
|
automatic_cooling_enabled?: boolean | undefined
|
|
4403
4411
|
hvac_mode_setting?:
|
|
4404
|
-
| ('off' | 'heat' | 'cool' | '
|
|
4412
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
4405
4413
|
| undefined
|
|
4406
4414
|
cooling_set_point_celsius?:
|
|
4407
4415
|
| (number | undefined)
|
|
@@ -4479,7 +4487,7 @@ export interface Routes {
|
|
|
4479
4487
|
default_climate_setting: {
|
|
4480
4488
|
automatic_heating_enabled?: boolean | undefined
|
|
4481
4489
|
automatic_cooling_enabled?: boolean | undefined
|
|
4482
|
-
hvac_mode_setting?: ('off' | 'heat' | 'cool' | '
|
|
4490
|
+
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
|
|
4483
4491
|
cooling_set_point_celsius?: (number | undefined) | undefined
|
|
4484
4492
|
heating_set_point_celsius?: (number | undefined) | undefined
|
|
4485
4493
|
cooling_set_point_fahrenheit?: (number | undefined) | undefined
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
export const hvac_mode_setting = z.enum(['off', 'heat', 'cool', 'heat_cool'])
|
|
4
|
+
|
|
5
|
+
export type HvacModeSetting = z.infer<typeof hvac_mode_setting>
|
|
6
|
+
|
|
3
7
|
export const climate_setting = z.object({
|
|
4
8
|
automatic_heating_enabled: z.boolean(),
|
|
5
9
|
automatic_cooling_enabled: z.boolean(),
|
|
6
|
-
hvac_mode_setting
|
|
10
|
+
hvac_mode_setting,
|
|
7
11
|
cooling_set_point_celsius: z.number().optional(),
|
|
8
12
|
heating_set_point_celsius: z.number().optional(),
|
|
9
13
|
cooling_set_point_fahrenheit: z.number().optional(),
|
|
@@ -25,10 +29,6 @@ export const climate_setting_schedule = z
|
|
|
25
29
|
})
|
|
26
30
|
.merge(climate_setting.partial())
|
|
27
31
|
|
|
28
|
-
export const hvac_mode_setting = z.enum(['off', 'heat', 'cool', 'heatcool'])
|
|
29
|
-
|
|
30
|
-
export type HvacModeSetting = z.infer<typeof hvac_mode_setting>
|
|
31
|
-
|
|
32
32
|
const base_thermostat_capability_properties = z.object({
|
|
33
33
|
temperature_fahrenheit: z.number(),
|
|
34
34
|
temperature_celsius: z.number(),
|