seam 2.166.0 → 2.168.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.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/README.md +55 -2
  4. data/lib/seam/action_attempt_resolver.rb +77 -7
  5. data/lib/seam/auth.rb +2 -1
  6. data/lib/seam/base_resource.rb +50 -3
  7. data/lib/seam/deep_hash_accessor.rb +11 -15
  8. data/lib/seam/errors.rb +6 -0
  9. data/lib/seam/http.rb +11 -7
  10. data/lib/seam/http_single_workspace.rb +15 -3
  11. data/lib/seam/http_without_workspace.rb +17 -7
  12. data/lib/seam/invalid_response_error.rb +17 -0
  13. data/lib/seam/options.rb +2 -1
  14. data/lib/seam/paginator.rb +34 -29
  15. data/lib/seam/request_parameters.rb +11 -0
  16. data/lib/seam/resources/access_code.rb +50 -5
  17. data/lib/seam/resources/access_grant.rb +38 -4
  18. data/lib/seam/resources/access_method.rb +18 -1
  19. data/lib/seam/resources/acs_access_group.rb +0 -17
  20. data/lib/seam/resources/acs_credential.rb +18 -1
  21. data/lib/seam/resources/acs_entrance.rb +1 -1
  22. data/lib/seam/resources/acs_system.rb +17 -31
  23. data/lib/seam/resources/acs_user.rb +0 -3
  24. data/lib/seam/resources/action_attempt.rb +77 -216
  25. data/lib/seam/resources/batch.rb +1 -1
  26. data/lib/seam/resources/client_session.rb +0 -4
  27. data/lib/seam/resources/connect_webview.rb +1 -0
  28. data/lib/seam/resources/connected_account.rb +1 -21
  29. data/lib/seam/resources/device.rb +362 -311
  30. data/lib/seam/resources/device_provider.rb +12 -13
  31. data/lib/seam/resources/event.rb +527 -151
  32. data/lib/seam/resources/instant_key.rb +1 -1
  33. data/lib/seam/resources/phone.rb +90 -2
  34. data/lib/seam/resources/space.rb +21 -1
  35. data/lib/seam/resources/thermostat_schedule.rb +37 -0
  36. data/lib/seam/resources/unmanaged_access_code.rb +48 -6
  37. data/lib/seam/resources/unmanaged_access_grant.rb +38 -4
  38. data/lib/seam/resources/unmanaged_access_method.rb +18 -1
  39. data/lib/seam/resources/unmanaged_device.rb +110 -38
  40. data/lib/seam/resources/workspace.rb +0 -4
  41. data/lib/seam/routes/access_codes.rb +19 -23
  42. data/lib/seam/routes/access_codes_simulate.rb +1 -1
  43. data/lib/seam/routes/access_codes_unmanaged.rb +7 -5
  44. data/lib/seam/routes/access_grants.rb +24 -24
  45. data/lib/seam/routes/access_grants_unmanaged.rb +5 -4
  46. data/lib/seam/routes/access_methods.rb +20 -14
  47. data/lib/seam/routes/access_methods_unmanaged.rb +2 -2
  48. data/lib/seam/routes/acs_access_groups.rb +4 -4
  49. data/lib/seam/routes/acs_credentials.rb +4 -4
  50. data/lib/seam/routes/acs_encoders.rb +5 -5
  51. data/lib/seam/routes/acs_entrances.rb +6 -8
  52. data/lib/seam/routes/acs_systems.rb +3 -3
  53. data/lib/seam/routes/acs_users.rb +44 -34
  54. data/lib/seam/routes/action_attempts.rb +6 -5
  55. data/lib/seam/routes/cameras_live_views.rb +5 -5
  56. data/lib/seam/routes/client_sessions.rb +20 -21
  57. data/lib/seam/routes/connect_webviews.rb +3 -3
  58. data/lib/seam/routes/connected_accounts.rb +7 -5
  59. data/lib/seam/routes/customers.rb +4 -5
  60. data/lib/seam/routes/devices.rb +12 -10
  61. data/lib/seam/routes/devices_unmanaged.rb +7 -5
  62. data/lib/seam/routes/events.rb +16 -12
  63. data/lib/seam/routes/instant_keys.rb +7 -5
  64. data/lib/seam/routes/locks.rb +10 -8
  65. data/lib/seam/routes/locks_simulate.rb +2 -2
  66. data/lib/seam/routes/media.rb +1 -1
  67. data/lib/seam/routes/noise_sensors.rb +1 -1
  68. data/lib/seam/routes/noise_sensors_noise_thresholds.rb +9 -3
  69. data/lib/seam/routes/phones.rb +2 -2
  70. data/lib/seam/routes/phones_simulate.rb +1 -1
  71. data/lib/seam/routes/spaces.rb +18 -13
  72. data/lib/seam/routes/thermostats.rb +14 -18
  73. data/lib/seam/routes/thermostats_daily_programs.rb +2 -2
  74. data/lib/seam/routes/thermostats_schedules.rb +3 -3
  75. data/lib/seam/routes/user_identities.rb +24 -18
  76. data/lib/seam/routes/user_identities_unmanaged.rb +2 -2
  77. data/lib/seam/routes/webhooks.rb +3 -3
  78. data/lib/seam/routes/workspaces.rb +6 -16
  79. data/lib/seam/url_search_params_serializer.rb +2 -1
  80. data/lib/seam/version.rb +1 -1
  81. data/lib/seam/wait_for_action_attempt.rb +3 -1
  82. data/lib/seam/webhook.rb +25 -5
  83. data/lib/seam.rb +12 -6
  84. metadata +5 -2
@@ -225,6 +225,24 @@ module Seam
225
225
  date_accessor :created_at
226
226
  end
227
227
 
228
+ # Indicates that the lock has about one week, two days, or a critically low amount of battery life remaining. Replace the lock's batteries promptly to avoid losing access.
229
+ class LowBattery < Errors
230
+ # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
231
+ # @return [String]
232
+ # Known values:
233
+ # - `low_battery`
234
+ attr_accessor :error_code
235
+ # Indicates that the error is a device error.
236
+ # @return [TrueClass]
237
+ attr_accessor :is_device_error
238
+ # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
239
+ # @return [String]
240
+ attr_accessor :message
241
+ # Date and time at which Seam created the error.
242
+ # @return [Time]
243
+ date_accessor :created_at
244
+ end
245
+
228
246
  # Indicates that device credentials are missing.
229
247
  class MissingDeviceCredentials < Errors
230
248
  # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
@@ -313,6 +331,7 @@ module Seam
313
331
  # - `device_disconnected`
314
332
  # - `empty_backup_access_code_pool`
315
333
  # - `august_lock_not_authorized`
334
+ # - `low_battery`
316
335
  # - `missing_device_credentials`
317
336
  # - `auxiliary_heat_running`
318
337
  # - `subscription_required`
@@ -336,6 +355,7 @@ module Seam
336
355
  "device_disconnected" => DeviceDisconnected,
337
356
  "empty_backup_access_code_pool" => EmptyBackupAccessCodePool,
338
357
  "august_lock_not_authorized" => AugustLockNotAuthorized,
358
+ "low_battery" => LowBattery,
339
359
  "missing_device_credentials" => MissingDeviceCredentials,
340
360
  "auxiliary_heat_running" => AuxiliaryHeatRunning,
341
361
  "subscription_required" => SubscriptionRequired,
@@ -353,10 +373,54 @@ module Seam
353
373
  # Time zone of the device location.
354
374
  # @return [String, nil]
355
375
  attr_accessor :time_zone
356
- # Time zone of the device location.
376
+ end
377
+
378
+ class NamedSensors < BaseResource
379
+ # Air quality index, if the device measures it.
380
+ # @return [Float, nil]
381
+ attr_accessor :air_quality_index
382
+ # Carbon dioxide concentration in parts per million, if the device measures it.
383
+ # @return [Float, nil]
384
+ attr_accessor :co2_ppm
385
+ # Carbon monoxide concentration in parts per million, if the device measures it.
386
+ # @return [Float, nil]
387
+ attr_accessor :co_ppm
388
+ # Display name of the sensor. Defaults to `sensor_name`.
389
+ # @return [String]
390
+ attr_accessor :display_name
391
+ # Estimated number of occupants detected by the device.
392
+ # @return [Float, nil]
393
+ attr_accessor :estimated_occupant_count
394
+ # Indicates whether the device detects occupancy.
395
+ # @return [Boolean, nil]
396
+ attr_accessor :is_occupancy_detected
397
+ # Indicates whether the device detects smoking, if the device measures it.
398
+ # @return [Boolean, nil]
399
+ attr_accessor :is_smoking_detected
400
+ # Display wording for the current mold risk, as reported by the provider or derived by Seam. The values are not stable and are only for display; use mold_risk_index for logic.
357
401
  # @return [String, nil]
358
- # @deprecated Use `time_zone` instead.
359
- attr_accessor :timezone
402
+ attr_accessor :mold_display_risk
403
+ # Mold risk index from 0 (no risk) to 1 (high risk), if the device measures it. Seam defines this scale and maps each provider onto it: 0 = low, 0.5 = medium, 1 = high for providers that report levels.
404
+ # @return [Float, nil]
405
+ attr_accessor :mold_risk_index
406
+ # Noise level in decibels, if the device measures noise.
407
+ # @return [Float, nil]
408
+ attr_accessor :noise_level_decibels
409
+ # Noise level as a Noise Risk Score (NRS), if the device reports one.
410
+ # @return [Float, nil]
411
+ attr_accessor :noise_level_nrs
412
+ # Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity.
413
+ # @return [Float, nil]
414
+ attr_accessor :relative_humidity
415
+ # Stable, hardware-defined name of the sensor, such as a port number.
416
+ # @return [String]
417
+ attr_accessor :sensor_name
418
+ # Temperature in °C, if the device measures temperature.
419
+ # @return [Float, nil]
420
+ attr_accessor :temperature_celsius
421
+ # Temperature in °F, if the device measures temperature.
422
+ # @return [Float, nil]
423
+ attr_accessor :temperature_fahrenheit
360
424
  end
361
425
 
362
426
  class Properties < BaseResource
@@ -395,9 +459,6 @@ module Seam
395
459
  end
396
460
 
397
461
  class Model < BaseResource
398
- # @return [Boolean, nil]
399
- # @deprecated use device.properties.model.can_connect_accessory_keypad
400
- attr_accessor :accessory_keypad_supported
401
462
  # Indicates whether the device can connect a accessory keypad.
402
463
  # @return [Boolean, nil]
403
464
  attr_accessor :can_connect_accessory_keypad
@@ -410,12 +471,6 @@ module Seam
410
471
  # Display name that corresponds to the manufacturer-specific terminology for the device.
411
472
  # @return [String]
412
473
  attr_accessor :manufacturer_display_name
413
- # @return [Boolean, nil]
414
- # @deprecated use device.can_program_offline_access_codes.
415
- attr_accessor :offline_access_codes_supported
416
- # @return [Boolean, nil]
417
- # @deprecated use device.can_program_online_access_codes.
418
- attr_accessor :online_access_codes_supported
419
474
  end
420
475
 
421
476
  class AssaAbloyCredentialServiceMetadata < BaseResource
@@ -562,6 +617,24 @@ module Seam
562
617
  attr_accessor :device_name
563
618
  end
564
619
 
620
+ class CieloMetadata < BaseResource
621
+ # ID of the air conditioner or heat pump model that the Cielo device is set up to control.
622
+ # @return [String, nil]
623
+ attr_accessor :appliance_id
624
+ # Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat.
625
+ # @return [String, nil]
626
+ attr_accessor :cielo_device_type
627
+ # Name of the device in the Cielo Home app.
628
+ # @return [String, nil]
629
+ attr_accessor :device_name
630
+ # MAC address of the Cielo device.
631
+ # @return [String, nil]
632
+ attr_accessor :mac_address
633
+ # Temperature unit that the Cielo device displays: `C` or `F`.
634
+ # @return [String, nil]
635
+ attr_accessor :temperature_unit
636
+ end
637
+
565
638
  class ControlbywebMetadata < BaseResource
566
639
  # Device ID for a ControlByWeb device.
567
640
  # @return [String, nil]
@@ -654,10 +727,6 @@ module Seam
654
727
  # IANA time zone for a dormakaba Oracode device.
655
728
  # @return [String, nil]
656
729
  attr_accessor :iana_timezone
657
- # Site ID for a dormakaba Oracode device.
658
- # @return [Float, nil]
659
- # @deprecated Previously marked as "@DEPRECATED."
660
- attr_accessor :site_id
661
730
  # Site name for a dormakaba Oracode device.
662
731
  # @return [String, nil]
663
732
  attr_accessor :site_name
@@ -672,6 +741,15 @@ module Seam
672
741
  attr_accessor :ecobee_device_id
673
742
  end
674
743
 
744
+ class EufyMetadata < BaseResource
745
+ # @return [String, nil]
746
+ attr_accessor :device_id
747
+ # @return [String, nil]
748
+ attr_accessor :device_name
749
+ # @return [String, nil]
750
+ attr_accessor :model
751
+ end
752
+
675
753
  class FourSuitesMetadata < BaseResource
676
754
  # Device ID for a 4SUITES device.
677
755
  # @return [Float, nil]
@@ -1074,33 +1152,6 @@ module Seam
1074
1152
  attr_accessor :site_name
1075
1153
  end
1076
1154
 
1077
- class SaltoMetadata < BaseResource
1078
- # Battery level for a Salto device.
1079
- # @return [String, nil]
1080
- attr_accessor :battery_level
1081
- # Customer reference for a Salto device.
1082
- # @return [String, nil]
1083
- attr_accessor :customer_reference
1084
- # Lock ID for a Salto device.
1085
- # @return [String, nil]
1086
- attr_accessor :lock_id
1087
- # Lock type for a Salto device.
1088
- # @return [String, nil]
1089
- attr_accessor :lock_type
1090
- # Locked state for a Salto device.
1091
- # @return [String, nil]
1092
- attr_accessor :locked_state
1093
- # Model for a Salto device.
1094
- # @return [String, nil]
1095
- attr_accessor :model
1096
- # Site ID for the Salto KS site to which the device belongs.
1097
- # @return [String, nil]
1098
- attr_accessor :site_id
1099
- # Site name for the Salto KS site to which the device belongs.
1100
- # @return [String, nil]
1101
- attr_accessor :site_name
1102
- end
1103
-
1104
1155
  class SchlageMetadata < BaseResource
1105
1156
  # Device ID for a Schlage device.
1106
1157
  # @return [String, nil]
@@ -1135,14 +1186,38 @@ module Seam
1135
1186
  # Device name for a Sensi device.
1136
1187
  # @return [String, nil]
1137
1188
  attr_accessor :device_name
1138
- # Deprecated. Seam no longer sets this field.
1139
- # @return [Boolean, nil]
1140
- attr_accessor :dual_setpoints_not_supported
1141
1189
  # Product type for a Sensi device.
1142
1190
  # @return [String, nil]
1143
1191
  attr_accessor :product_type
1144
1192
  end
1145
1193
 
1194
+ class SensiboMetadata < BaseResource
1195
+ # Firmware version of the Sensibo device.
1196
+ # @return [String, nil]
1197
+ attr_accessor :firmware_version
1198
+ # MAC address of the Sensibo device.
1199
+ # @return [String, nil]
1200
+ attr_accessor :mac_address
1201
+ # ID of the Sensibo device, which Sensibo calls a pod.
1202
+ # @return [String, nil]
1203
+ attr_accessor :pod_id
1204
+ # Product model of the Sensibo device, such as `skyv2` or `skyplus`.
1205
+ # @return [String, nil]
1206
+ attr_accessor :product_model
1207
+ # Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`.
1208
+ # @return [String, nil]
1209
+ attr_accessor :product_name
1210
+ # Name of the room that the Sensibo device is in.
1211
+ # @return [String, nil]
1212
+ attr_accessor :room_name
1213
+ # Serial number of the Sensibo device.
1214
+ # @return [String, nil]
1215
+ attr_accessor :serial_number
1216
+ # Temperature unit that the Sensibo device displays: `C` or `F`.
1217
+ # @return [String, nil]
1218
+ attr_accessor :temperature_unit
1219
+ end
1220
+
1146
1221
  class SmartthingsMetadata < BaseResource
1147
1222
  # Device ID for a SmartThings device.
1148
1223
  # @return [String, nil]
@@ -1158,37 +1233,34 @@ module Seam
1158
1233
  attr_accessor :model
1159
1234
  end
1160
1235
 
1161
- class SonosMetadata < BaseResource
1162
- # Models of the speakers bonded to this speaker, such as surrounds or a subwoofer.
1236
+ class TadoMetadata < BaseResource
1237
+ # Serial numbers of all tado° devices in the zone.
1163
1238
  # @return [Array<String>]
1164
- attr_accessor :bonded_member_models
1165
- # Color of the speaker, as reported by Sonos.
1239
+ attr_accessor :device_serial_numbers
1240
+ # Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`.
1166
1241
  # @return [String, nil]
1167
- attr_accessor :color
1168
- # ID of the Sonos household that the speaker belongs to.
1242
+ attr_accessor :device_type
1243
+ # Generation of the tado° home, such as `PRE_LINE_X`.
1169
1244
  # @return [String, nil]
1170
- attr_accessor :household_id
1171
- # Model name of the speaker, as reported by Sonos.
1245
+ attr_accessor :home_generation
1246
+ # ID of the tado° home.
1172
1247
  # @return [String, nil]
1173
- attr_accessor :model_display_name
1174
- # ID of the Sonos player for the speaker.
1248
+ attr_accessor :home_id
1249
+ # Name of the tado° home.
1175
1250
  # @return [String, nil]
1176
- attr_accessor :player_id
1177
- # Name of the speaker, as set in the Sonos app.
1251
+ attr_accessor :home_name
1252
+ # Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control.
1178
1253
  # @return [String, nil]
1179
- attr_accessor :player_name
1180
- # Software version running on the speaker.
1254
+ attr_accessor :serial_no
1255
+ # ID of the tado° zone within its home.
1181
1256
  # @return [String, nil]
1182
- attr_accessor :software_version
1183
- end
1184
-
1185
- class TadoMetadata < BaseResource
1186
- # Device type for a tado° device.
1257
+ attr_accessor :zone_id
1258
+ # Name of the tado° zone.
1187
1259
  # @return [String, nil]
1188
- attr_accessor :device_type
1189
- # Serial number for a tado° device.
1260
+ attr_accessor :zone_name
1261
+ # Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`.
1190
1262
  # @return [String, nil]
1191
- attr_accessor :serial_no
1263
+ attr_accessor :zone_type
1192
1264
  end
1193
1265
 
1194
1266
  class TapoMetadata < BaseResource
@@ -1284,6 +1356,30 @@ module Seam
1284
1356
  attr_accessor :timezone_raw_offset_ms
1285
1357
  end
1286
1358
 
1359
+ class TuyaMetadata < BaseResource
1360
+ # Tuya product category code for the device (e.g. ms).
1361
+ # @return [String, nil]
1362
+ attr_accessor :category
1363
+ # Device ID for a Tuya device.
1364
+ # @return [String, nil]
1365
+ attr_accessor :device_id
1366
+ # Device name for a Tuya device.
1367
+ # @return [String, nil]
1368
+ attr_accessor :device_name
1369
+ # Model reported for a Tuya device.
1370
+ # @return [String, nil]
1371
+ attr_accessor :model
1372
+ # Tuya product ID for the device.
1373
+ # @return [String, nil]
1374
+ attr_accessor :product_id
1375
+ # Tuya product name for the device.
1376
+ # @return [String, nil]
1377
+ attr_accessor :product_name
1378
+ # Time zone reported for a Tuya device (e.g. +08:00).
1379
+ # @return [String, nil]
1380
+ attr_accessor :time_zone
1381
+ end
1382
+
1287
1383
  class TwoNMetadata < BaseResource
1288
1384
  # Device ID for a 2N device.
1289
1385
  # @return [Float, nil]
@@ -1308,6 +1404,27 @@ module Seam
1308
1404
  attr_accessor :time_zone
1309
1405
  end
1310
1406
 
1407
+ class UnifiProtectMetadata < BaseResource
1408
+ # Camera ID reported by UniFi Protect.
1409
+ # @return [String, nil]
1410
+ attr_accessor :camera_id
1411
+ # Camera name reported by UniFi Protect.
1412
+ # @return [String, nil]
1413
+ attr_accessor :camera_name
1414
+ # Whether the camera has a microphone.
1415
+ # @return [Boolean, nil]
1416
+ attr_accessor :has_mic
1417
+ # MAC address reported by the UniFi Protect camera.
1418
+ # @return [String, nil]
1419
+ attr_accessor :mac
1420
+ # Model reported by the UniFi Protect camera.
1421
+ # @return [String, nil]
1422
+ attr_accessor :model
1423
+ # Name of the UniFi Protect console that manages the camera.
1424
+ # @return [String, nil]
1425
+ attr_accessor :nvr_name
1426
+ end
1427
+
1311
1428
  class VisionlineMetadata < BaseResource
1312
1429
  # Encoder ID for an ASSA ABLOY Visionline system.
1313
1430
  # @return [String, nil]
@@ -1356,6 +1473,27 @@ module Seam
1356
1473
  attr_accessor :serial_number
1357
1474
  end
1358
1475
 
1476
+ class YaleConnectMetadata < BaseResource
1477
+ # Device ID for a Yale Connect lock.
1478
+ # @return [String, nil]
1479
+ attr_accessor :device_id
1480
+ # Device name for a Yale Connect lock.
1481
+ # @return [String, nil]
1482
+ attr_accessor :device_name
1483
+ # Firmware version reported by the Yale Connect lock.
1484
+ # @return [String, nil]
1485
+ attr_accessor :firmware_version
1486
+ # Name of the Yale Connect home that contains the lock.
1487
+ # @return [String, nil]
1488
+ attr_accessor :home_name
1489
+ # Model reported by the Yale Connect lock.
1490
+ # @return [String, nil]
1491
+ attr_accessor :model
1492
+ # Time zone of the Yale Connect home, as Yale reports it.
1493
+ # @return [String, nil]
1494
+ attr_accessor :time_zone_description
1495
+ end
1496
+
1359
1497
  class CodeConstraints < BaseResource
1360
1498
  # @return [String]
1361
1499
  # Known values:
@@ -1466,108 +1604,6 @@ module Seam
1466
1604
  attr_accessor :time_zone
1467
1605
  end
1468
1606
 
1469
- class Speaker < BaseResource
1470
- class NowPlaying < BaseResource
1471
- # Album of the content that is currently playing.
1472
- # @return [String, nil]
1473
- attr_accessor :album
1474
- # Artist of the content that is currently playing.
1475
- # @return [String, nil]
1476
- attr_accessor :artist
1477
- # Title of the content that is currently playing.
1478
- # @return [String, nil]
1479
- attr_accessor :title
1480
- end
1481
-
1482
- # Content that is currently playing on the speaker.
1483
- # @return [NowPlaying, nil]
1484
- resource_accessor :now_playing, NowPlaying
1485
- # IDs of the other speakers that are currently grouped with this speaker. Pausing or resuming playback on a speaker also affects the speakers in its group.
1486
- # @return [Array<String>]
1487
- attr_accessor :grouped_with_device_ids
1488
- # Indicates whether the speaker's volume is fixed, for example, because the speaker's line-out level is controlled by an external amplifier. A speaker with a fixed volume cannot have its volume set through Seam.
1489
- # @return [Boolean]
1490
- attr_accessor :has_fixed_volume
1491
- # Indicates whether the speaker is muted.
1492
- # @return [Boolean]
1493
- attr_accessor :is_muted
1494
- # Maximum volume that you can set on the speaker. This is the ceiling of the speaker's native volume scale, not a limit configured for guests.
1495
- # @return [Float]
1496
- attr_accessor :max_volume
1497
- # Minimum volume that you can set on the speaker.
1498
- # @return [Float]
1499
- attr_accessor :min_volume
1500
- # Playback state of the speaker.
1501
- # @return [String]
1502
- # Known values:
1503
- # - `playing`
1504
- # - `paused`
1505
- # - `idle`
1506
- # - `buffering`
1507
- # - `unknown`
1508
- attr_accessor :playback_state
1509
- # Indicates whether the speaker can play a chime.
1510
- # @return [Boolean]
1511
- attr_accessor :supports_chime
1512
- # Current volume of the speaker, on the speaker's native volume scale from `min_volume` to `max_volume`. This is the native volume setting, not a decibel level.
1513
- # @return [Float]
1514
- attr_accessor :volume
1515
- # Increment between the volume values that you can set on the speaker.
1516
- # @return [Float]
1517
- attr_accessor :volume_step
1518
- # Date and time at which the speaker first reported its current volume.
1519
- # @return [Time, nil]
1520
- date_accessor :volume_reported_at
1521
- end
1522
-
1523
- class ActiveThermostatSchedule < BaseResource
1524
- class Errors < BaseResource
1525
- # Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
1526
- # @return [String]
1527
- attr_accessor :error_code
1528
- # Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1529
- # @return [String]
1530
- attr_accessor :message
1531
- # Date and time at which Seam created the error.
1532
- # @return [Time]
1533
- date_accessor :created_at
1534
- end
1535
-
1536
- # Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).
1537
- # @return [Array<Errors>]
1538
- resource_list_accessor :errors, Errors
1539
- # Key of the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).
1540
- # @return [String]
1541
- attr_accessor :climate_preset_key
1542
- # ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device.
1543
- # @return [String]
1544
- attr_accessor :device_id
1545
- # Indicates whether a person at the thermostat can change the thermostat's settings after the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts.
1546
- # @return [Boolean, nil]
1547
- attr_accessor :is_override_allowed
1548
- # Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). See also [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).
1549
- # @return [Integer, nil]
1550
- attr_accessor :max_override_period_minutes
1551
- # User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).
1552
- # @return [String, nil]
1553
- attr_accessor :name
1554
- # ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).
1555
- # @return [String]
1556
- attr_accessor :thermostat_schedule_id
1557
- # ID of the workspace that contains the thermostat schedule.
1558
- # @return [String]
1559
- attr_accessor :workspace_id
1560
- # Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created.
1561
- # @return [Time]
1562
- date_accessor :created_at
1563
- # Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
1564
- # @return [Time]
1565
- date_accessor :ends_at
1566
- # Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
1567
- # @return [Time]
1568
- date_accessor :starts_at
1569
- end
1570
-
1571
1607
  class AvailableClimatePresets < BaseResource
1572
1608
  class EcobeeMetadata < BaseResource
1573
1609
  # Reference to the Ecobee climate, if applicable.
@@ -1640,10 +1676,6 @@ module Seam
1640
1676
  # - `heat_cool`
1641
1677
  # - `eco`
1642
1678
  attr_accessor :hvac_mode_setting
1643
- # Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).
1644
- # @return [Boolean]
1645
- # @deprecated Use 'thermostat_schedule.is_override_allowed'
1646
- attr_accessor :manual_override_allowed
1647
1679
  # User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).
1648
1680
  # @return [String, nil]
1649
1681
  attr_accessor :name
@@ -1721,91 +1753,6 @@ module Seam
1721
1753
  # - `heat_cool`
1722
1754
  # - `eco`
1723
1755
  attr_accessor :hvac_mode_setting
1724
- # Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).
1725
- # @return [Boolean, nil]
1726
- # @deprecated Use 'thermostat_schedule.is_override_allowed'
1727
- attr_accessor :manual_override_allowed
1728
- # User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).
1729
- # @return [String, nil]
1730
- attr_accessor :name
1731
- end
1732
-
1733
- class DefaultClimateSetting < BaseResource
1734
- class EcobeeMetadata < BaseResource
1735
- # Reference to the Ecobee climate, if applicable.
1736
- # @return [String, nil]
1737
- attr_accessor :climate_ref
1738
- # Indicates if the climate preset is optimized by Ecobee.
1739
- # @return [Boolean, nil]
1740
- attr_accessor :is_optimized
1741
- # Indicates whether the climate preset is owned by the user or the system.
1742
- # @return [String, nil]
1743
- # Known values:
1744
- # - `user`
1745
- # - `system`
1746
- attr_accessor :owner
1747
- end
1748
-
1749
- # Metadata specific to the Ecobee climate, if applicable.
1750
- # @return [EcobeeMetadata, nil]
1751
- resource_accessor :ecobee_metadata, EcobeeMetadata
1752
- # Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted.
1753
- # @return [Boolean, nil]
1754
- attr_accessor :can_delete
1755
- # Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited.
1756
- # @return [Boolean, nil]
1757
- attr_accessor :can_edit
1758
- # Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be programmed in a thermostat daily program.
1759
- # @return [Boolean, nil]
1760
- attr_accessor :can_use_with_thermostat_daily_programs
1761
- # Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).
1762
- # @return [String, nil]
1763
- attr_accessor :climate_preset_key
1764
- # The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.
1765
- # @return [String, nil]
1766
- # Known values:
1767
- # - `home`
1768
- # - `away`
1769
- # - `wake`
1770
- # - `sleep`
1771
- # - `occupied`
1772
- # - `unoccupied`
1773
- attr_accessor :climate_preset_mode
1774
- # Temperature to which the thermostat should cool (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).
1775
- # @return [Float, nil]
1776
- attr_accessor :cooling_set_point_celsius
1777
- # Temperature to which the thermostat should cool (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).
1778
- # @return [Float, nil]
1779
- attr_accessor :cooling_set_point_fahrenheit
1780
- # Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).
1781
- # @return [String, nil]
1782
- attr_accessor :display_name
1783
- # Desired [fan mode setting](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings), such as `on`, `auto`, or `circulate`.
1784
- # @return [String, nil]
1785
- # Known values:
1786
- # - `auto`
1787
- # - `on`
1788
- # - `circulate`
1789
- attr_accessor :fan_mode_setting
1790
- # Temperature to which the thermostat should heat (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).
1791
- # @return [Float, nil]
1792
- attr_accessor :heating_set_point_celsius
1793
- # Temperature to which the thermostat should heat (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).
1794
- # @return [Float, nil]
1795
- attr_accessor :heating_set_point_fahrenheit
1796
- # Desired [HVAC mode](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.
1797
- # @return [String, nil]
1798
- # Known values:
1799
- # - `off`
1800
- # - `heat`
1801
- # - `cool`
1802
- # - `heat_cool`
1803
- # - `eco`
1804
- attr_accessor :hvac_mode_setting
1805
- # Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).
1806
- # @return [Boolean, nil]
1807
- # @deprecated Use 'thermostat_schedule.is_override_allowed'
1808
- attr_accessor :manual_override_allowed
1809
1756
  # User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).
1810
1757
  # @return [String, nil]
1811
1758
  attr_accessor :name
@@ -1922,6 +1869,9 @@ module Seam
1922
1869
  # Metadata for a Brivo device.
1923
1870
  # @return [BrivoMetadata, nil]
1924
1871
  resource_accessor :brivo_metadata, BrivoMetadata
1872
+ # Metadata for a Cielo device.
1873
+ # @return [CieloMetadata, nil]
1874
+ resource_accessor :cielo_metadata, CieloMetadata
1925
1875
  # Metadata for a ControlByWeb device.
1926
1876
  # @return [ControlbywebMetadata, nil]
1927
1877
  resource_accessor :controlbyweb_metadata, ControlbywebMetadata
@@ -1934,6 +1884,9 @@ module Seam
1934
1884
  # Metadata for an ecobee device.
1935
1885
  # @return [EcobeeMetadata, nil]
1936
1886
  resource_accessor :ecobee_metadata, EcobeeMetadata
1887
+ # Metadata for a Eufy device.
1888
+ # @return [EufyMetadata, nil]
1889
+ resource_accessor :eufy_metadata, EufyMetadata
1937
1890
  # Metadata for a 4SUITES device.
1938
1891
  # @return [FourSuitesMetadata, nil]
1939
1892
  resource_accessor :four_suites_metadata, FourSuitesMetadata
@@ -1988,9 +1941,6 @@ module Seam
1988
1941
  # Metadata for a Salto KS device.
1989
1942
  # @return [SaltoKsMetadata, nil]
1990
1943
  resource_accessor :salto_ks_metadata, SaltoKsMetadata
1991
- # Metada for a Salto device.
1992
- # @return [SaltoMetadata, nil]
1993
- resource_accessor :salto_metadata, SaltoMetadata
1994
1944
  # Metadata for a Schlage device.
1995
1945
  # @return [SchlageMetadata, nil]
1996
1946
  resource_accessor :schlage_metadata, SchlageMetadata
@@ -2000,12 +1950,12 @@ module Seam
2000
1950
  # Metadata for a Sensi device.
2001
1951
  # @return [SensiMetadata, nil]
2002
1952
  resource_accessor :sensi_metadata, SensiMetadata
1953
+ # Metadata for a Sensibo device.
1954
+ # @return [SensiboMetadata, nil]
1955
+ resource_accessor :sensibo_metadata, SensiboMetadata
2003
1956
  # Metadata for a SmartThings device.
2004
1957
  # @return [SmartthingsMetadata, nil]
2005
1958
  resource_accessor :smartthings_metadata, SmartthingsMetadata
2006
- # Metadata for a Sonos speaker.
2007
- # @return [SonosMetadata, nil]
2008
- resource_accessor :sonos_metadata, SonosMetadata
2009
1959
  # Metadata for a tado° device.
2010
1960
  # @return [TadoMetadata, nil]
2011
1961
  resource_accessor :tado_metadata, TadoMetadata
@@ -2018,12 +1968,18 @@ module Seam
2018
1968
  # Metadata for a TTLock device.
2019
1969
  # @return [TtlockMetadata, nil]
2020
1970
  resource_accessor :ttlock_metadata, TtlockMetadata
1971
+ # Metadata for a Tuya device.
1972
+ # @return [TuyaMetadata, nil]
1973
+ resource_accessor :tuya_metadata, TuyaMetadata
2021
1974
  # Metadata for a 2N device.
2022
1975
  # @return [TwoNMetadata, nil]
2023
1976
  resource_accessor :two_n_metadata, TwoNMetadata
2024
1977
  # Metadata for an Ultraloq device.
2025
1978
  # @return [UltraloqMetadata, nil]
2026
1979
  resource_accessor :ultraloq_metadata, UltraloqMetadata
1980
+ # Metadata for a UniFi Protect camera.
1981
+ # @return [UnifiProtectMetadata, nil]
1982
+ resource_accessor :unifi_protect_metadata, UnifiProtectMetadata
2027
1983
  # Metadata for an ASSA ABLOY Visionline system.
2028
1984
  # @return [VisionlineMetadata, nil]
2029
1985
  resource_accessor :visionline_metadata, VisionlineMetadata
@@ -2033,20 +1989,15 @@ module Seam
2033
1989
  # Metadata for a Yacan device.
2034
1990
  # @return [YacanMetadata, nil]
2035
1991
  resource_accessor :yacan_metadata, YacanMetadata
1992
+ # Metadata for a Yale Connect lock.
1993
+ # @return [YaleConnectMetadata, nil]
1994
+ resource_accessor :yale_connect_metadata, YaleConnectMetadata
2036
1995
  # Keypad battery status.
2037
1996
  # @return [KeypadBattery, nil]
2038
1997
  resource_accessor :keypad_battery, KeypadBattery
2039
- # Audio state and capabilities of the speaker.
2040
- # @return [Speaker, nil]
2041
- resource_accessor :speaker, Speaker
2042
- # Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).
2043
- # @return [ActiveThermostatSchedule, nil]
2044
- resource_accessor :active_thermostat_schedule, ActiveThermostatSchedule
2045
1998
  # Current climate setting.
2046
1999
  # @return [CurrentClimateSetting, nil]
2047
2000
  resource_accessor :current_climate_setting, CurrentClimateSetting
2048
- # @return [DefaultClimateSetting, nil]
2049
- resource_accessor :default_climate_setting, DefaultClimateSetting
2050
2001
  # Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat.
2051
2002
  # @return [TemperatureThreshold, nil]
2052
2003
  resource_accessor :temperature_threshold, TemperatureThreshold
@@ -2093,26 +2044,12 @@ module Seam
2093
2044
  # Indicates current noise level in decibels, if the device supports noise detection.
2094
2045
  # @return [Float, nil]
2095
2046
  attr_accessor :noise_level_decibels
2096
- # Indicates whether it is currently possible to use offline access codes for the device.
2097
- # @return [Boolean, nil]
2098
- # @deprecated use device.can_program_offline_access_codes
2099
- attr_accessor :offline_access_codes_enabled
2100
2047
  # Indicates whether the device is online.
2101
2048
  # @return [Boolean]
2102
2049
  attr_accessor :online
2103
- # Indicates whether it is currently possible to use online access codes for the device.
2104
- # @return [Boolean, nil]
2105
- # @deprecated use device.can_program_online_access_codes
2106
- attr_accessor :online_access_codes_enabled
2107
2050
  # Serial number of the device.
2108
2051
  # @return [String, nil]
2109
2052
  attr_accessor :serial_number
2110
- # @return [Boolean, nil]
2111
- # @deprecated use device.properties.model.can_connect_accessory_keypad
2112
- attr_accessor :supports_accessory_keypad
2113
- # @return [Boolean, nil]
2114
- # @deprecated use offline_access_codes_enabled
2115
- attr_accessor :supports_offline_access_codes
2116
2053
  # The delay in seconds before the lock automatically locks after being unlocked.
2117
2054
  # @return [Float, nil]
2118
2055
  attr_accessor :auto_lock_delay_seconds
@@ -2172,13 +2109,6 @@ module Seam
2172
2109
  # Key of the [fallback climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets/setting-the-fallback-climate-preset) for the thermostat.
2173
2110
  # @return [String, nil]
2174
2111
  attr_accessor :fallback_climate_preset_key
2175
- # @return [String, nil]
2176
- # Known values:
2177
- # - `auto`
2178
- # - `on`
2179
- # - `circulate`
2180
- # @deprecated Use `current_climate_setting.fan_mode_setting` instead.
2181
- attr_accessor :fan_mode_setting
2182
2112
  # Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat.
2183
2113
  # @return [Boolean, nil]
2184
2114
  attr_accessor :is_cooling
@@ -2453,7 +2383,7 @@ module Seam
2453
2383
  date_accessor :created_at
2454
2384
  end
2455
2385
 
2456
- # Indicates that a change in the reported device model has been detected for this Salto KS lock, which may occur after an IQ hub reset. Access code support may be affected. See https://help.getseam.com/articles/5098842588-salto-ks-lock-loses-access-code-support for troubleshooting steps.
2386
+ # Indicates that a change in the reported device model has been detected for this Salto KS lock, which may occur after an IQ hub reset. Access code support may be affected. See https://www.seam.co/help/salto-ks-lock-loses-access-code-support for troubleshooting steps.
2457
2387
  class SaltoKsLockAccessCodeSupportRemoved < Warnings
2458
2388
  # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
2459
2389
  # @return [String]
@@ -2573,6 +2503,21 @@ module Seam
2573
2503
  date_accessor :created_at
2574
2504
  end
2575
2505
 
2506
+ # Indicates that a technician has put the pool controller in service mode. Schedules and remote changes will not run until it is switched back.
2507
+ class ServiceMode < Warnings
2508
+ # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
2509
+ # @return [String]
2510
+ attr_accessor :message
2511
+ # Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
2512
+ # @return [String]
2513
+ # Known values:
2514
+ # - `service_mode`
2515
+ attr_accessor :warning_code
2516
+ # Date and time at which Seam created the warning.
2517
+ # @return [Time]
2518
+ date_accessor :created_at
2519
+ end
2520
+
2576
2521
  # Indicates a provider-specific issue that may affect device functionality.
2577
2522
  class ProviderIssue < Warnings
2578
2523
  # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
@@ -2633,6 +2578,21 @@ module Seam
2633
2578
  date_accessor :created_at
2634
2579
  end
2635
2580
 
2581
+ # Indicates that the lock has about two weeks of battery life remaining or the provider otherwise recommends replacing the lock's batteries soon.
2582
+ class BatteryReplacementRecommended < Warnings
2583
+ # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
2584
+ # @return [String]
2585
+ attr_accessor :message
2586
+ # Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
2587
+ # @return [String]
2588
+ # Known values:
2589
+ # - `battery_replacement_recommended`
2590
+ attr_accessor :warning_code
2591
+ # Date and time at which Seam created the warning.
2592
+ # @return [Time]
2593
+ date_accessor :created_at
2594
+ end
2595
+
2636
2596
  # Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.
2637
2597
  class UnreliableOnlineStatus < Warnings
2638
2598
  # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
@@ -2669,6 +2629,36 @@ module Seam
2669
2629
  date_accessor :created_at
2670
2630
  end
2671
2631
 
2632
+ # Indicates that a third-party subscription is required to enable additional device capabilities.
2633
+ class SubscriptionRequiredForAdditionalCapabilities < Warnings
2634
+ # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
2635
+ # @return [String]
2636
+ attr_accessor :message
2637
+ # Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
2638
+ # @return [String]
2639
+ # Known values:
2640
+ # - `subscription_required_for_additional_capabilities`
2641
+ attr_accessor :warning_code
2642
+ # Date and time at which Seam created the warning.
2643
+ # @return [Time]
2644
+ date_accessor :created_at
2645
+ end
2646
+
2647
+ # Indicates that the camera's account plan does not include cloud recording, so event media such as motion clips is unavailable.
2648
+ class CloudRecordingNotEnabled < Warnings
2649
+ # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
2650
+ # @return [String]
2651
+ attr_accessor :message
2652
+ # Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
2653
+ # @return [String]
2654
+ # Known values:
2655
+ # - `cloud_recording_not_enabled`
2656
+ attr_accessor :warning_code
2657
+ # Date and time at which Seam created the warning.
2658
+ # @return [Time]
2659
+ date_accessor :created_at
2660
+ end
2661
+
2672
2662
  # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
2673
2663
  # @return [String]
2674
2664
  attr_accessor :message
@@ -2697,12 +2687,16 @@ module Seam
2697
2687
  # - `time_zone_mismatch`
2698
2688
  # - `two_n_device_missing_timezone`
2699
2689
  # - `hub_required_for_additional_capabilities`
2690
+ # - `service_mode`
2700
2691
  # - `provider_issue`
2701
2692
  # - `keynest_unsupported_locker`
2702
2693
  # - `accessory_keypad_setup_required`
2703
2694
  # - `accessory_keypad_low_battery`
2695
+ # - `battery_replacement_recommended`
2704
2696
  # - `unreliable_online_status`
2705
2697
  # - `max_access_codes_reached`
2698
+ # - `subscription_required_for_additional_capabilities`
2699
+ # - `cloud_recording_not_enabled`
2706
2700
  attr_accessor :warning_code
2707
2701
  # Date and time at which Seam created the warning.
2708
2702
  # @return [Time]
@@ -2731,12 +2725,16 @@ module Seam
2731
2725
  "time_zone_mismatch" => TimeZoneMismatch,
2732
2726
  "two_n_device_missing_timezone" => TwoNDeviceMissingTimezone,
2733
2727
  "hub_required_for_additional_capabilities" => HubRequiredForAdditionalCapabilities,
2728
+ "service_mode" => ServiceMode,
2734
2729
  "provider_issue" => ProviderIssue,
2735
2730
  "keynest_unsupported_locker" => KeynestUnsupportedLocker,
2736
2731
  "accessory_keypad_setup_required" => AccessoryKeypadSetupRequired,
2737
2732
  "accessory_keypad_low_battery" => AccessoryKeypadLowBattery,
2733
+ "battery_replacement_recommended" => BatteryReplacementRecommended,
2738
2734
  "unreliable_online_status" => UnreliableOnlineStatus,
2739
- "max_access_codes_reached" => MaxAccessCodesReached
2735
+ "max_access_codes_reached" => MaxAccessCodesReached,
2736
+ "subscription_required_for_additional_capabilities" => SubscriptionRequiredForAdditionalCapabilities,
2737
+ "cloud_recording_not_enabled" => CloudRecordingNotEnabled
2740
2738
  }.freeze
2741
2739
  end
2742
2740
 
@@ -2750,14 +2748,20 @@ module Seam
2750
2748
  # @return [Location, nil]
2751
2749
  resource_accessor :location, Location
2752
2750
  # Properties of the device.
2753
- # @return [Properties]
2751
+ # @return [Properties, nil]
2754
2752
  resource_accessor :properties, Properties
2755
2753
  # Array of errors associated with the device. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.
2756
2754
  # @return [Array<Errors>]
2757
2755
  resource_list_accessor :errors, Errors
2756
+ # Additional sensors of the same kind on the device, each with a stable `sensor_name`. Present only when the device has more than one sensor of a kind or no single main sensor.
2757
+ # @return [Array<NamedSensors>]
2758
+ resource_list_accessor :named_sensors, NamedSensors
2758
2759
  # Array of warnings associated with the device. Each warning object within the array contains two fields: `warning_code` and `message`. `warning_code` is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.
2759
2760
  # @return [Array<Warnings>]
2760
2761
  resource_list_accessor :warnings, Warnings
2762
+ # Air quality index, if the device measures it.
2763
+ # @return [Float, nil]
2764
+ attr_accessor :air_quality_index
2761
2765
  # Indicates whether the thermostat can be returned to its weekly program, the schedule that is configured on the device itself, releasing any hold that Seam has set.
2762
2766
  # @return [Boolean, nil]
2763
2767
  attr_accessor :can_activate_weekly_program
@@ -2773,15 +2777,6 @@ module Seam
2773
2777
  # Indicates whether the thermostat supports simultaneous heating and cooling.
2774
2778
  # @return [Boolean, nil]
2775
2779
  attr_accessor :can_hvac_heat_cool
2776
- # Indicates whether the speaker supports muting and unmuting.
2777
- # @return [Boolean, nil]
2778
- attr_accessor :can_mute_speaker
2779
- # Indicates whether the speaker supports pausing and resuming playback.
2780
- # @return [Boolean, nil]
2781
- attr_accessor :can_pause_speaker_playback
2782
- # Indicates whether the speaker supports playing a chime.
2783
- # @return [Boolean, nil]
2784
- attr_accessor :can_play_speaker_chime
2785
2780
  # Indicates whether the device supports programming offline access codes.
2786
2781
  # @return [Boolean, nil]
2787
2782
  attr_accessor :can_program_offline_access_codes
@@ -2806,9 +2801,6 @@ module Seam
2806
2801
  # Indicates whether the thermostat supports running climate programs.
2807
2802
  # @return [Boolean, nil]
2808
2803
  attr_accessor :can_run_thermostat_programs
2809
- # Indicates whether the speaker supports setting its volume.
2810
- # @return [Boolean, nil]
2811
- attr_accessor :can_set_speaker_volume
2812
2804
  # Indicates whether the device supports simulating connection in a sandbox.
2813
2805
  # @return [Boolean, nil]
2814
2806
  attr_accessor :can_simulate_connection
@@ -2827,7 +2819,7 @@ module Seam
2827
2819
  # Indicates whether the device supports simulating removal in a sandbox.
2828
2820
  # @return [Boolean, nil]
2829
2821
  attr_accessor :can_simulate_removal
2830
- # Indicates whether the camera supports streaming live video through a camera live view session.
2822
+ # Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline.
2831
2823
  # @return [Boolean, nil]
2832
2824
  attr_accessor :can_stream_live_video
2833
2825
  # Indicates whether the thermostat can be turned off.
@@ -2845,7 +2837,14 @@ module Seam
2845
2837
  # - `thermostat`
2846
2838
  # - `battery`
2847
2839
  # - `phone`
2840
+ # - `pool`
2848
2841
  attr_accessor :capabilities_supported
2842
+ # Carbon dioxide concentration in parts per million, if the device measures it.
2843
+ # @return [Float, nil]
2844
+ attr_accessor :co2_ppm
2845
+ # Carbon monoxide concentration in parts per million, if the device measures it.
2846
+ # @return [Float, nil]
2847
+ attr_accessor :co_ppm
2849
2848
  # Unique identifier for the account associated with the device.
2850
2849
  # @return [String]
2851
2850
  attr_accessor :connected_account_id
@@ -2855,7 +2854,7 @@ module Seam
2855
2854
  # ID of the device.
2856
2855
  # @return [String]
2857
2856
  attr_accessor :device_id
2858
- # Type of the device.
2857
+ # Type of the device. The `august_lock` and `yale_lock` values are deprecated. Use `yale_access_lock` in place of `august_lock`, and `yale_access_lock` or `yale_home_lock` in place of `yale_lock`.
2859
2858
  # @return [String]
2860
2859
  # Known values:
2861
2860
  # - `akuvox_lock`
@@ -2875,6 +2874,9 @@ module Seam
2875
2874
  # - `smartthings_lock`
2876
2875
  # - `wyze_lock`
2877
2876
  # - `yale_lock`
2877
+ # - `yale_access_lock`
2878
+ # - `yale_home_lock`
2879
+ # - `yale_connect_lock`
2878
2880
  # - `two_n_intercom`
2879
2881
  # - `controlbyweb_device`
2880
2882
  # - `ttlock_lock`
@@ -2889,6 +2891,8 @@ module Seam
2889
2891
  # - `omnitec_lock`
2890
2892
  # - `kisi_lock`
2891
2893
  # - `aqara_lock`
2894
+ # - `tuya_lock`
2895
+ # - `eufy_lock`
2892
2896
  # - `keynest_key`
2893
2897
  # - `noiseaware_activity_zone`
2894
2898
  # - `minut_sensor`
@@ -2897,6 +2901,8 @@ module Seam
2897
2901
  # - `honeywell_resideo_thermostat`
2898
2902
  # - `tado_thermostat`
2899
2903
  # - `sensi_thermostat`
2904
+ # - `sensibo_thermostat`
2905
+ # - `cielo_thermostat`
2900
2906
  # - `smartthings_thermostat`
2901
2907
  # - `ios_phone`
2902
2908
  # - `android_phone`
@@ -2904,20 +2910,65 @@ module Seam
2904
2910
  # - `tapo_camera`
2905
2911
  # - `arlo_camera`
2906
2912
  # - `reolink_camera`
2913
+ # - `unifi_protect_camera`
2907
2914
  # - `sonos_speaker`
2915
+ # - `alertify_sensor`
2916
+ # - `hayward_pool_controller`
2917
+ # - `jandy_pool_controller`
2918
+ # - `hayward_pool`
2919
+ # - `jandy_pool`
2908
2920
  attr_accessor :device_type
2909
2921
  # Display name of the device, defaults to nickname (if it is set) or `properties.appearance.name`, otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices.
2910
2922
  # @return [String]
2911
2923
  attr_accessor :display_name
2924
+ # Estimated number of occupants detected by the device.
2925
+ # @return [Float, nil]
2926
+ attr_accessor :estimated_occupant_count
2927
+ # Indicates whether the device was last reported as having its casing opened or tampered with. Omitted when the provider reports no casing state, including when the device does not support casing tamper detection. This is independent of `is_detached_from_mounting_plate`.
2928
+ # @return [Boolean, nil]
2929
+ attr_accessor :is_casing_tampered_with
2930
+ # Indicates whether the device was last reported as detached from its mounting plate. Omitted when Seam has no accepted observation, including when the device does not support mounting plate detection, reports an unknown status, or is offline. This is the last accepted provider observation, not a guarantee of current hardware state; check `is_online` before acting on it.
2931
+ # @return [Boolean, nil]
2932
+ attr_accessor :is_detached_from_mounting_plate
2912
2933
  # Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices).
2913
2934
  # @return [TrueClass]
2914
2935
  attr_accessor :is_managed
2936
+ # Indicates whether the device detects occupancy.
2937
+ # @return [Boolean, nil]
2938
+ attr_accessor :is_occupancy_detected
2939
+ # Indicates whether the device is online.
2940
+ # @return [Boolean]
2941
+ attr_accessor :is_online
2942
+ # Indicates whether the device detects smoking, if the device measures it.
2943
+ # @return [Boolean, nil]
2944
+ attr_accessor :is_smoking_detected
2945
+ # Display wording for the current mold risk, as reported by the provider or derived by Seam. The values are not stable and are only for display; use mold_risk_index for logic.
2946
+ # @return [String, nil]
2947
+ attr_accessor :mold_display_risk
2948
+ # Mold risk index from 0 (no risk) to 1 (high risk), if the device measures it. Seam defines this scale and maps each provider onto it: 0 = low, 0.5 = medium, 1 = high for providers that report levels.
2949
+ # @return [Float, nil]
2950
+ attr_accessor :mold_risk_index
2915
2951
  # Optional nickname to describe the device, settable through Seam.
2916
2952
  # @return [String, nil]
2917
2953
  attr_accessor :nickname
2954
+ # Noise level in decibels, if the device measures noise.
2955
+ # @return [Float, nil]
2956
+ attr_accessor :noise_level_decibels
2957
+ # Noise level as a Noise Risk Score (NRS), if the device reports one.
2958
+ # @return [Float, nil]
2959
+ attr_accessor :noise_level_nrs
2960
+ # Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity.
2961
+ # @return [Float, nil]
2962
+ attr_accessor :relative_humidity
2918
2963
  # IDs of the spaces the device is in.
2919
2964
  # @return [Array<String>]
2920
2965
  attr_accessor :space_ids
2966
+ # Temperature in °C, if the device measures temperature.
2967
+ # @return [Float, nil]
2968
+ attr_accessor :temperature_celsius
2969
+ # Temperature in °F, if the device measures temperature.
2970
+ # @return [Float, nil]
2971
+ attr_accessor :temperature_fahrenheit
2921
2972
  # Unique identifier for the Seam workspace associated with the device.
2922
2973
  # @return [String]
2923
2974
  attr_accessor :workspace_id