@seamapi/types 0.31.0 → 1.1.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 +62 -59
- 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 +64 -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
|
|
@@ -675,6 +678,7 @@ export interface Routes {
|
|
|
675
678
|
| 'hubitat'
|
|
676
679
|
| 'four_suites'
|
|
677
680
|
| 'dormakaba_oracode'
|
|
681
|
+
| 'wyze'
|
|
678
682
|
| 'yale_access'
|
|
679
683
|
>
|
|
680
684
|
| undefined
|
|
@@ -1169,7 +1173,7 @@ export interface Routes {
|
|
|
1169
1173
|
can_enable_automatic_heating?: boolean | undefined
|
|
1170
1174
|
can_enable_automatic_cooling?: boolean | undefined
|
|
1171
1175
|
available_hvac_mode_settings?:
|
|
1172
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
1176
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
1173
1177
|
| undefined
|
|
1174
1178
|
is_heating_available?: true | undefined
|
|
1175
1179
|
is_cooling_available?: true | undefined
|
|
@@ -1181,7 +1185,7 @@ export interface Routes {
|
|
|
1181
1185
|
| {
|
|
1182
1186
|
automatic_heating_enabled: boolean
|
|
1183
1187
|
automatic_cooling_enabled: boolean
|
|
1184
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
1188
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
1185
1189
|
cooling_set_point_celsius?: number | undefined
|
|
1186
1190
|
heating_set_point_celsius?: number | undefined
|
|
1187
1191
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1198,7 +1202,7 @@ export interface Routes {
|
|
|
1198
1202
|
| 'off'
|
|
1199
1203
|
| 'heat'
|
|
1200
1204
|
| 'cool'
|
|
1201
|
-
| '
|
|
1205
|
+
| 'heat_cool'
|
|
1202
1206
|
cooling_set_point_celsius?: number | undefined
|
|
1203
1207
|
heating_set_point_celsius?: number | undefined
|
|
1204
1208
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1222,7 +1226,7 @@ export interface Routes {
|
|
|
1222
1226
|
automatic_heating_enabled?: boolean | undefined
|
|
1223
1227
|
automatic_cooling_enabled?: boolean | undefined
|
|
1224
1228
|
hvac_mode_setting?:
|
|
1225
|
-
| ('off' | 'heat' | 'cool' | '
|
|
1229
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
1226
1230
|
| undefined
|
|
1227
1231
|
cooling_set_point_celsius?:
|
|
1228
1232
|
| (number | undefined)
|
|
@@ -1259,7 +1263,7 @@ export interface Routes {
|
|
|
1259
1263
|
can_enable_automatic_heating?: boolean | undefined
|
|
1260
1264
|
can_enable_automatic_cooling?: boolean | undefined
|
|
1261
1265
|
available_hvac_mode_settings?:
|
|
1262
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
1266
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
1263
1267
|
| undefined
|
|
1264
1268
|
is_heating_available?: true | undefined
|
|
1265
1269
|
is_cooling_available?: false | undefined
|
|
@@ -1271,7 +1275,7 @@ export interface Routes {
|
|
|
1271
1275
|
| {
|
|
1272
1276
|
automatic_heating_enabled: boolean
|
|
1273
1277
|
automatic_cooling_enabled: boolean
|
|
1274
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
1278
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
1275
1279
|
cooling_set_point_celsius?: number | undefined
|
|
1276
1280
|
heating_set_point_celsius?: number | undefined
|
|
1277
1281
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1288,7 +1292,7 @@ export interface Routes {
|
|
|
1288
1292
|
| 'off'
|
|
1289
1293
|
| 'heat'
|
|
1290
1294
|
| 'cool'
|
|
1291
|
-
| '
|
|
1295
|
+
| 'heat_cool'
|
|
1292
1296
|
cooling_set_point_celsius?: number | undefined
|
|
1293
1297
|
heating_set_point_celsius?: number | undefined
|
|
1294
1298
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1312,7 +1316,7 @@ export interface Routes {
|
|
|
1312
1316
|
automatic_heating_enabled?: boolean | undefined
|
|
1313
1317
|
automatic_cooling_enabled?: boolean | undefined
|
|
1314
1318
|
hvac_mode_setting?:
|
|
1315
|
-
| ('off' | 'heat' | 'cool' | '
|
|
1319
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
1316
1320
|
| undefined
|
|
1317
1321
|
cooling_set_point_celsius?:
|
|
1318
1322
|
| (number | undefined)
|
|
@@ -1343,7 +1347,7 @@ export interface Routes {
|
|
|
1343
1347
|
can_enable_automatic_heating?: boolean | undefined
|
|
1344
1348
|
can_enable_automatic_cooling?: boolean | undefined
|
|
1345
1349
|
available_hvac_mode_settings?:
|
|
1346
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
1350
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
1347
1351
|
| undefined
|
|
1348
1352
|
is_heating_available?: false | undefined
|
|
1349
1353
|
is_cooling_available?: true | undefined
|
|
@@ -1355,7 +1359,7 @@ export interface Routes {
|
|
|
1355
1359
|
| {
|
|
1356
1360
|
automatic_heating_enabled: boolean
|
|
1357
1361
|
automatic_cooling_enabled: boolean
|
|
1358
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
1362
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
1359
1363
|
cooling_set_point_celsius?: number | undefined
|
|
1360
1364
|
heating_set_point_celsius?: number | undefined
|
|
1361
1365
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1372,7 +1376,7 @@ export interface Routes {
|
|
|
1372
1376
|
| 'off'
|
|
1373
1377
|
| 'heat'
|
|
1374
1378
|
| 'cool'
|
|
1375
|
-
| '
|
|
1379
|
+
| 'heat_cool'
|
|
1376
1380
|
cooling_set_point_celsius?: number | undefined
|
|
1377
1381
|
heating_set_point_celsius?: number | undefined
|
|
1378
1382
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1396,7 +1400,7 @@ export interface Routes {
|
|
|
1396
1400
|
automatic_heating_enabled?: boolean | undefined
|
|
1397
1401
|
automatic_cooling_enabled?: boolean | undefined
|
|
1398
1402
|
hvac_mode_setting?:
|
|
1399
|
-
| ('off' | 'heat' | 'cool' | '
|
|
1403
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
1400
1404
|
| undefined
|
|
1401
1405
|
cooling_set_point_celsius?:
|
|
1402
1406
|
| (number | undefined)
|
|
@@ -1846,7 +1850,7 @@ export interface Routes {
|
|
|
1846
1850
|
can_enable_automatic_heating?: boolean | undefined
|
|
1847
1851
|
can_enable_automatic_cooling?: boolean | undefined
|
|
1848
1852
|
available_hvac_mode_settings?:
|
|
1849
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
1853
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
1850
1854
|
| undefined
|
|
1851
1855
|
is_heating_available?: true | undefined
|
|
1852
1856
|
is_cooling_available?: true | undefined
|
|
@@ -1858,7 +1862,7 @@ export interface Routes {
|
|
|
1858
1862
|
| {
|
|
1859
1863
|
automatic_heating_enabled: boolean
|
|
1860
1864
|
automatic_cooling_enabled: boolean
|
|
1861
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
1865
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
1862
1866
|
cooling_set_point_celsius?: number | undefined
|
|
1863
1867
|
heating_set_point_celsius?: number | undefined
|
|
1864
1868
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1875,7 +1879,7 @@ export interface Routes {
|
|
|
1875
1879
|
| 'off'
|
|
1876
1880
|
| 'heat'
|
|
1877
1881
|
| 'cool'
|
|
1878
|
-
| '
|
|
1882
|
+
| 'heat_cool'
|
|
1879
1883
|
cooling_set_point_celsius?: number | undefined
|
|
1880
1884
|
heating_set_point_celsius?: number | undefined
|
|
1881
1885
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1899,7 +1903,7 @@ export interface Routes {
|
|
|
1899
1903
|
automatic_heating_enabled?: boolean | undefined
|
|
1900
1904
|
automatic_cooling_enabled?: boolean | undefined
|
|
1901
1905
|
hvac_mode_setting?:
|
|
1902
|
-
| ('off' | 'heat' | 'cool' | '
|
|
1906
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
1903
1907
|
| undefined
|
|
1904
1908
|
cooling_set_point_celsius?:
|
|
1905
1909
|
| (number | undefined)
|
|
@@ -1936,7 +1940,7 @@ export interface Routes {
|
|
|
1936
1940
|
can_enable_automatic_heating?: boolean | undefined
|
|
1937
1941
|
can_enable_automatic_cooling?: boolean | undefined
|
|
1938
1942
|
available_hvac_mode_settings?:
|
|
1939
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
1943
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
1940
1944
|
| undefined
|
|
1941
1945
|
is_heating_available?: true | undefined
|
|
1942
1946
|
is_cooling_available?: false | undefined
|
|
@@ -1948,7 +1952,7 @@ export interface Routes {
|
|
|
1948
1952
|
| {
|
|
1949
1953
|
automatic_heating_enabled: boolean
|
|
1950
1954
|
automatic_cooling_enabled: boolean
|
|
1951
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
1955
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
1952
1956
|
cooling_set_point_celsius?: number | undefined
|
|
1953
1957
|
heating_set_point_celsius?: number | undefined
|
|
1954
1958
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1965,7 +1969,7 @@ export interface Routes {
|
|
|
1965
1969
|
| 'off'
|
|
1966
1970
|
| 'heat'
|
|
1967
1971
|
| 'cool'
|
|
1968
|
-
| '
|
|
1972
|
+
| 'heat_cool'
|
|
1969
1973
|
cooling_set_point_celsius?: number | undefined
|
|
1970
1974
|
heating_set_point_celsius?: number | undefined
|
|
1971
1975
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -1989,7 +1993,7 @@ export interface Routes {
|
|
|
1989
1993
|
automatic_heating_enabled?: boolean | undefined
|
|
1990
1994
|
automatic_cooling_enabled?: boolean | undefined
|
|
1991
1995
|
hvac_mode_setting?:
|
|
1992
|
-
| ('off' | 'heat' | 'cool' | '
|
|
1996
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
1993
1997
|
| undefined
|
|
1994
1998
|
cooling_set_point_celsius?:
|
|
1995
1999
|
| (number | undefined)
|
|
@@ -2020,7 +2024,7 @@ export interface Routes {
|
|
|
2020
2024
|
can_enable_automatic_heating?: boolean | undefined
|
|
2021
2025
|
can_enable_automatic_cooling?: boolean | undefined
|
|
2022
2026
|
available_hvac_mode_settings?:
|
|
2023
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
2027
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
2024
2028
|
| undefined
|
|
2025
2029
|
is_heating_available?: false | undefined
|
|
2026
2030
|
is_cooling_available?: true | undefined
|
|
@@ -2032,7 +2036,7 @@ export interface Routes {
|
|
|
2032
2036
|
| {
|
|
2033
2037
|
automatic_heating_enabled: boolean
|
|
2034
2038
|
automatic_cooling_enabled: boolean
|
|
2035
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
2039
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
2036
2040
|
cooling_set_point_celsius?: number | undefined
|
|
2037
2041
|
heating_set_point_celsius?: number | undefined
|
|
2038
2042
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -2049,7 +2053,7 @@ export interface Routes {
|
|
|
2049
2053
|
| 'off'
|
|
2050
2054
|
| 'heat'
|
|
2051
2055
|
| 'cool'
|
|
2052
|
-
| '
|
|
2056
|
+
| 'heat_cool'
|
|
2053
2057
|
cooling_set_point_celsius?: number | undefined
|
|
2054
2058
|
heating_set_point_celsius?: number | undefined
|
|
2055
2059
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -2073,7 +2077,7 @@ export interface Routes {
|
|
|
2073
2077
|
automatic_heating_enabled?: boolean | undefined
|
|
2074
2078
|
automatic_cooling_enabled?: boolean | undefined
|
|
2075
2079
|
hvac_mode_setting?:
|
|
2076
|
-
| ('off' | 'heat' | 'cool' | '
|
|
2080
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
2077
2081
|
| undefined
|
|
2078
2082
|
cooling_set_point_celsius?:
|
|
2079
2083
|
| (number | undefined)
|
|
@@ -2173,6 +2177,7 @@ export interface Routes {
|
|
|
2173
2177
|
| 'igloohome_lock'
|
|
2174
2178
|
| 'hubitat_lock'
|
|
2175
2179
|
| 'four_suites_door'
|
|
2180
|
+
| 'dormakaba_oracode_door'
|
|
2176
2181
|
)
|
|
2177
2182
|
| ('noiseaware_activity_zone' | 'minut_sensor')
|
|
2178
2183
|
| ('ecobee_thermostat' | 'nest_thermostat')
|
|
@@ -2469,6 +2474,7 @@ export interface Routes {
|
|
|
2469
2474
|
| 'access_code.delay_in_setting_on_device'
|
|
2470
2475
|
| 'access_code.failed_to_remove_from_device'
|
|
2471
2476
|
| 'access_code.delay_in_removing_from_device'
|
|
2477
|
+
| 'access_code.modified_external_to_seam'
|
|
2472
2478
|
| 'access_code.unmanaged.converted_to_managed'
|
|
2473
2479
|
| 'access_code.unmanaged.failed_to_convert_to_managed'
|
|
2474
2480
|
| 'access_code.unmanaged.created'
|
|
@@ -2477,6 +2483,7 @@ export interface Routes {
|
|
|
2477
2483
|
| 'lock.unlocked'
|
|
2478
2484
|
| 'connected_account.connected'
|
|
2479
2485
|
| 'connected_account.created'
|
|
2486
|
+
| 'connected_account.deleted'
|
|
2480
2487
|
| 'connected_account.disconnected'
|
|
2481
2488
|
| 'connected_account.completed_first_sync'
|
|
2482
2489
|
| 'noise_sensor.noise_threshold_triggered'
|
|
@@ -2505,6 +2512,7 @@ export interface Routes {
|
|
|
2505
2512
|
| 'access_code.delay_in_setting_on_device'
|
|
2506
2513
|
| 'access_code.failed_to_remove_from_device'
|
|
2507
2514
|
| 'access_code.delay_in_removing_from_device'
|
|
2515
|
+
| 'access_code.modified_external_to_seam'
|
|
2508
2516
|
| 'access_code.unmanaged.converted_to_managed'
|
|
2509
2517
|
| 'access_code.unmanaged.failed_to_convert_to_managed'
|
|
2510
2518
|
| 'access_code.unmanaged.created'
|
|
@@ -2513,6 +2521,7 @@ export interface Routes {
|
|
|
2513
2521
|
| 'lock.unlocked'
|
|
2514
2522
|
| 'connected_account.connected'
|
|
2515
2523
|
| 'connected_account.created'
|
|
2524
|
+
| 'connected_account.deleted'
|
|
2516
2525
|
| 'connected_account.disconnected'
|
|
2517
2526
|
| 'connected_account.completed_first_sync'
|
|
2518
2527
|
| 'noise_sensor.noise_threshold_triggered'
|
|
@@ -3010,7 +3019,7 @@ export interface Routes {
|
|
|
3010
3019
|
schedule_ends_at: string
|
|
3011
3020
|
automatic_heating_enabled?: boolean | undefined
|
|
3012
3021
|
automatic_cooling_enabled?: boolean | undefined
|
|
3013
|
-
hvac_mode_setting?: ('off' | 'heat' | 'cool' | '
|
|
3022
|
+
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
|
|
3014
3023
|
cooling_set_point_celsius?: (number | undefined) | undefined
|
|
3015
3024
|
heating_set_point_celsius?: (number | undefined) | undefined
|
|
3016
3025
|
cooling_set_point_fahrenheit?: (number | undefined) | undefined
|
|
@@ -3030,7 +3039,7 @@ export interface Routes {
|
|
|
3030
3039
|
created_at: string
|
|
3031
3040
|
automatic_heating_enabled?: boolean | undefined
|
|
3032
3041
|
automatic_cooling_enabled?: boolean | undefined
|
|
3033
|
-
hvac_mode_setting?: ('off' | 'heat' | 'cool' | '
|
|
3042
|
+
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
|
|
3034
3043
|
cooling_set_point_celsius?: (number | undefined) | undefined
|
|
3035
3044
|
heating_set_point_celsius?: (number | undefined) | undefined
|
|
3036
3045
|
cooling_set_point_fahrenheit?: (number | undefined) | undefined
|
|
@@ -3071,7 +3080,7 @@ export interface Routes {
|
|
|
3071
3080
|
created_at: string
|
|
3072
3081
|
automatic_heating_enabled?: boolean | undefined
|
|
3073
3082
|
automatic_cooling_enabled?: boolean | undefined
|
|
3074
|
-
hvac_mode_setting?: ('off' | 'heat' | 'cool' | '
|
|
3083
|
+
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
|
|
3075
3084
|
cooling_set_point_celsius?: (number | undefined) | undefined
|
|
3076
3085
|
heating_set_point_celsius?: (number | undefined) | undefined
|
|
3077
3086
|
cooling_set_point_fahrenheit?: (number | undefined) | undefined
|
|
@@ -3100,7 +3109,7 @@ export interface Routes {
|
|
|
3100
3109
|
created_at: string
|
|
3101
3110
|
automatic_heating_enabled?: boolean | undefined
|
|
3102
3111
|
automatic_cooling_enabled?: boolean | undefined
|
|
3103
|
-
hvac_mode_setting?: ('off' | 'heat' | 'cool' | '
|
|
3112
|
+
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
|
|
3104
3113
|
cooling_set_point_celsius?: (number | undefined) | undefined
|
|
3105
3114
|
heating_set_point_celsius?: (number | undefined) | undefined
|
|
3106
3115
|
cooling_set_point_fahrenheit?: (number | undefined) | undefined
|
|
@@ -3121,7 +3130,7 @@ export interface Routes {
|
|
|
3121
3130
|
schedule_ends_at?: string | undefined
|
|
3122
3131
|
automatic_heating_enabled?: boolean | undefined
|
|
3123
3132
|
automatic_cooling_enabled?: boolean | undefined
|
|
3124
|
-
hvac_mode_setting?: ('off' | 'heat' | 'cool' | '
|
|
3133
|
+
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
|
|
3125
3134
|
cooling_set_point_celsius?: (number | undefined) | undefined
|
|
3126
3135
|
heating_set_point_celsius?: (number | undefined) | undefined
|
|
3127
3136
|
cooling_set_point_fahrenheit?: (number | undefined) | undefined
|
|
@@ -3141,7 +3150,7 @@ export interface Routes {
|
|
|
3141
3150
|
created_at: string
|
|
3142
3151
|
automatic_heating_enabled?: boolean | undefined
|
|
3143
3152
|
automatic_cooling_enabled?: boolean | undefined
|
|
3144
|
-
hvac_mode_setting?: ('off' | 'heat' | 'cool' | '
|
|
3153
|
+
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
|
|
3145
3154
|
cooling_set_point_celsius?: (number | undefined) | undefined
|
|
3146
3155
|
heating_set_point_celsius?: (number | undefined) | undefined
|
|
3147
3156
|
cooling_set_point_fahrenheit?: (number | undefined) | undefined
|
|
@@ -3467,7 +3476,7 @@ export interface Routes {
|
|
|
3467
3476
|
can_enable_automatic_heating?: boolean | undefined
|
|
3468
3477
|
can_enable_automatic_cooling?: boolean | undefined
|
|
3469
3478
|
available_hvac_mode_settings?:
|
|
3470
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
3479
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
3471
3480
|
| undefined
|
|
3472
3481
|
is_heating_available?: true | undefined
|
|
3473
3482
|
is_cooling_available?: true | undefined
|
|
@@ -3479,7 +3488,7 @@ export interface Routes {
|
|
|
3479
3488
|
| {
|
|
3480
3489
|
automatic_heating_enabled: boolean
|
|
3481
3490
|
automatic_cooling_enabled: boolean
|
|
3482
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
3491
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
3483
3492
|
cooling_set_point_celsius?: number | undefined
|
|
3484
3493
|
heating_set_point_celsius?: number | undefined
|
|
3485
3494
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -3496,7 +3505,7 @@ export interface Routes {
|
|
|
3496
3505
|
| 'off'
|
|
3497
3506
|
| 'heat'
|
|
3498
3507
|
| 'cool'
|
|
3499
|
-
| '
|
|
3508
|
+
| 'heat_cool'
|
|
3500
3509
|
cooling_set_point_celsius?: number | undefined
|
|
3501
3510
|
heating_set_point_celsius?: number | undefined
|
|
3502
3511
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -3520,7 +3529,7 @@ export interface Routes {
|
|
|
3520
3529
|
automatic_heating_enabled?: boolean | undefined
|
|
3521
3530
|
automatic_cooling_enabled?: boolean | undefined
|
|
3522
3531
|
hvac_mode_setting?:
|
|
3523
|
-
| ('off' | 'heat' | 'cool' | '
|
|
3532
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
3524
3533
|
| undefined
|
|
3525
3534
|
cooling_set_point_celsius?:
|
|
3526
3535
|
| (number | undefined)
|
|
@@ -3557,7 +3566,7 @@ export interface Routes {
|
|
|
3557
3566
|
can_enable_automatic_heating?: boolean | undefined
|
|
3558
3567
|
can_enable_automatic_cooling?: boolean | undefined
|
|
3559
3568
|
available_hvac_mode_settings?:
|
|
3560
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
3569
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
3561
3570
|
| undefined
|
|
3562
3571
|
is_heating_available?: true | undefined
|
|
3563
3572
|
is_cooling_available?: false | undefined
|
|
@@ -3569,7 +3578,7 @@ export interface Routes {
|
|
|
3569
3578
|
| {
|
|
3570
3579
|
automatic_heating_enabled: boolean
|
|
3571
3580
|
automatic_cooling_enabled: boolean
|
|
3572
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
3581
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
3573
3582
|
cooling_set_point_celsius?: number | undefined
|
|
3574
3583
|
heating_set_point_celsius?: number | undefined
|
|
3575
3584
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -3586,7 +3595,7 @@ export interface Routes {
|
|
|
3586
3595
|
| 'off'
|
|
3587
3596
|
| 'heat'
|
|
3588
3597
|
| 'cool'
|
|
3589
|
-
| '
|
|
3598
|
+
| 'heat_cool'
|
|
3590
3599
|
cooling_set_point_celsius?: number | undefined
|
|
3591
3600
|
heating_set_point_celsius?: number | undefined
|
|
3592
3601
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -3610,7 +3619,7 @@ export interface Routes {
|
|
|
3610
3619
|
automatic_heating_enabled?: boolean | undefined
|
|
3611
3620
|
automatic_cooling_enabled?: boolean | undefined
|
|
3612
3621
|
hvac_mode_setting?:
|
|
3613
|
-
| ('off' | 'heat' | 'cool' | '
|
|
3622
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
3614
3623
|
| undefined
|
|
3615
3624
|
cooling_set_point_celsius?:
|
|
3616
3625
|
| (number | undefined)
|
|
@@ -3641,7 +3650,7 @@ export interface Routes {
|
|
|
3641
3650
|
can_enable_automatic_heating?: boolean | undefined
|
|
3642
3651
|
can_enable_automatic_cooling?: boolean | undefined
|
|
3643
3652
|
available_hvac_mode_settings?:
|
|
3644
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
3653
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
3645
3654
|
| undefined
|
|
3646
3655
|
is_heating_available?: false | undefined
|
|
3647
3656
|
is_cooling_available?: true | undefined
|
|
@@ -3653,7 +3662,7 @@ export interface Routes {
|
|
|
3653
3662
|
| {
|
|
3654
3663
|
automatic_heating_enabled: boolean
|
|
3655
3664
|
automatic_cooling_enabled: boolean
|
|
3656
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
3665
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
3657
3666
|
cooling_set_point_celsius?: number | undefined
|
|
3658
3667
|
heating_set_point_celsius?: number | undefined
|
|
3659
3668
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -3670,7 +3679,7 @@ export interface Routes {
|
|
|
3670
3679
|
| 'off'
|
|
3671
3680
|
| 'heat'
|
|
3672
3681
|
| 'cool'
|
|
3673
|
-
| '
|
|
3682
|
+
| 'heat_cool'
|
|
3674
3683
|
cooling_set_point_celsius?: number | undefined
|
|
3675
3684
|
heating_set_point_celsius?: number | undefined
|
|
3676
3685
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -3694,7 +3703,7 @@ export interface Routes {
|
|
|
3694
3703
|
automatic_heating_enabled?: boolean | undefined
|
|
3695
3704
|
automatic_cooling_enabled?: boolean | undefined
|
|
3696
3705
|
hvac_mode_setting?:
|
|
3697
|
-
| ('off' | 'heat' | 'cool' | '
|
|
3706
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
3698
3707
|
| undefined
|
|
3699
3708
|
cooling_set_point_celsius?:
|
|
3700
3709
|
| (number | undefined)
|
|
@@ -4174,7 +4183,7 @@ export interface Routes {
|
|
|
4174
4183
|
can_enable_automatic_heating?: boolean | undefined
|
|
4175
4184
|
can_enable_automatic_cooling?: boolean | undefined
|
|
4176
4185
|
available_hvac_mode_settings?:
|
|
4177
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
4186
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
4178
4187
|
| undefined
|
|
4179
4188
|
is_heating_available?: true | undefined
|
|
4180
4189
|
is_cooling_available?: true | undefined
|
|
@@ -4186,7 +4195,7 @@ export interface Routes {
|
|
|
4186
4195
|
| {
|
|
4187
4196
|
automatic_heating_enabled: boolean
|
|
4188
4197
|
automatic_cooling_enabled: boolean
|
|
4189
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
4198
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
4190
4199
|
cooling_set_point_celsius?: number | undefined
|
|
4191
4200
|
heating_set_point_celsius?: number | undefined
|
|
4192
4201
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -4203,7 +4212,7 @@ export interface Routes {
|
|
|
4203
4212
|
| 'off'
|
|
4204
4213
|
| 'heat'
|
|
4205
4214
|
| 'cool'
|
|
4206
|
-
| '
|
|
4215
|
+
| 'heat_cool'
|
|
4207
4216
|
cooling_set_point_celsius?: number | undefined
|
|
4208
4217
|
heating_set_point_celsius?: number | undefined
|
|
4209
4218
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -4227,7 +4236,7 @@ export interface Routes {
|
|
|
4227
4236
|
automatic_heating_enabled?: boolean | undefined
|
|
4228
4237
|
automatic_cooling_enabled?: boolean | undefined
|
|
4229
4238
|
hvac_mode_setting?:
|
|
4230
|
-
| ('off' | 'heat' | 'cool' | '
|
|
4239
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
4231
4240
|
| undefined
|
|
4232
4241
|
cooling_set_point_celsius?:
|
|
4233
4242
|
| (number | undefined)
|
|
@@ -4264,7 +4273,7 @@ export interface Routes {
|
|
|
4264
4273
|
can_enable_automatic_heating?: boolean | undefined
|
|
4265
4274
|
can_enable_automatic_cooling?: boolean | undefined
|
|
4266
4275
|
available_hvac_mode_settings?:
|
|
4267
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
4276
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
4268
4277
|
| undefined
|
|
4269
4278
|
is_heating_available?: true | undefined
|
|
4270
4279
|
is_cooling_available?: false | undefined
|
|
@@ -4276,7 +4285,7 @@ export interface Routes {
|
|
|
4276
4285
|
| {
|
|
4277
4286
|
automatic_heating_enabled: boolean
|
|
4278
4287
|
automatic_cooling_enabled: boolean
|
|
4279
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
4288
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
4280
4289
|
cooling_set_point_celsius?: number | undefined
|
|
4281
4290
|
heating_set_point_celsius?: number | undefined
|
|
4282
4291
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -4293,7 +4302,7 @@ export interface Routes {
|
|
|
4293
4302
|
| 'off'
|
|
4294
4303
|
| 'heat'
|
|
4295
4304
|
| 'cool'
|
|
4296
|
-
| '
|
|
4305
|
+
| 'heat_cool'
|
|
4297
4306
|
cooling_set_point_celsius?: number | undefined
|
|
4298
4307
|
heating_set_point_celsius?: number | undefined
|
|
4299
4308
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -4317,7 +4326,7 @@ export interface Routes {
|
|
|
4317
4326
|
automatic_heating_enabled?: boolean | undefined
|
|
4318
4327
|
automatic_cooling_enabled?: boolean | undefined
|
|
4319
4328
|
hvac_mode_setting?:
|
|
4320
|
-
| ('off' | 'heat' | 'cool' | '
|
|
4329
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
4321
4330
|
| undefined
|
|
4322
4331
|
cooling_set_point_celsius?:
|
|
4323
4332
|
| (number | undefined)
|
|
@@ -4348,7 +4357,7 @@ export interface Routes {
|
|
|
4348
4357
|
can_enable_automatic_heating?: boolean | undefined
|
|
4349
4358
|
can_enable_automatic_cooling?: boolean | undefined
|
|
4350
4359
|
available_hvac_mode_settings?:
|
|
4351
|
-
| Array<'off' | 'heat' | 'cool' | '
|
|
4360
|
+
| Array<'off' | 'heat' | 'cool' | 'heat_cool'>
|
|
4352
4361
|
| undefined
|
|
4353
4362
|
is_heating_available?: false | undefined
|
|
4354
4363
|
is_cooling_available?: true | undefined
|
|
@@ -4360,7 +4369,7 @@ export interface Routes {
|
|
|
4360
4369
|
| {
|
|
4361
4370
|
automatic_heating_enabled: boolean
|
|
4362
4371
|
automatic_cooling_enabled: boolean
|
|
4363
|
-
hvac_mode_setting: 'off' | 'heat' | 'cool' | '
|
|
4372
|
+
hvac_mode_setting: 'off' | 'heat' | 'cool' | 'heat_cool'
|
|
4364
4373
|
cooling_set_point_celsius?: number | undefined
|
|
4365
4374
|
heating_set_point_celsius?: number | undefined
|
|
4366
4375
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -4377,7 +4386,7 @@ export interface Routes {
|
|
|
4377
4386
|
| 'off'
|
|
4378
4387
|
| 'heat'
|
|
4379
4388
|
| 'cool'
|
|
4380
|
-
| '
|
|
4389
|
+
| 'heat_cool'
|
|
4381
4390
|
cooling_set_point_celsius?: number | undefined
|
|
4382
4391
|
heating_set_point_celsius?: number | undefined
|
|
4383
4392
|
cooling_set_point_fahrenheit?: number | undefined
|
|
@@ -4401,7 +4410,7 @@ export interface Routes {
|
|
|
4401
4410
|
automatic_heating_enabled?: boolean | undefined
|
|
4402
4411
|
automatic_cooling_enabled?: boolean | undefined
|
|
4403
4412
|
hvac_mode_setting?:
|
|
4404
|
-
| ('off' | 'heat' | 'cool' | '
|
|
4413
|
+
| ('off' | 'heat' | 'cool' | 'heat_cool')
|
|
4405
4414
|
| undefined
|
|
4406
4415
|
cooling_set_point_celsius?:
|
|
4407
4416
|
| (number | undefined)
|
|
@@ -4479,7 +4488,7 @@ export interface Routes {
|
|
|
4479
4488
|
default_climate_setting: {
|
|
4480
4489
|
automatic_heating_enabled?: boolean | undefined
|
|
4481
4490
|
automatic_cooling_enabled?: boolean | undefined
|
|
4482
|
-
hvac_mode_setting?: ('off' | 'heat' | 'cool' | '
|
|
4491
|
+
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined
|
|
4483
4492
|
cooling_set_point_celsius?: (number | undefined) | undefined
|
|
4484
4493
|
heating_set_point_celsius?: (number | undefined) | undefined
|
|
4485
4494
|
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(),
|