seam 2.166.0 → 2.167.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 (83) 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 +46 -3
  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 +4 -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 +354 -311
  30. data/lib/seam/resources/device_provider.rb +11 -13
  31. data/lib/seam/resources/event.rb +372 -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/unmanaged_access_code.rb +44 -4
  36. data/lib/seam/resources/unmanaged_access_grant.rb +38 -4
  37. data/lib/seam/resources/unmanaged_access_method.rb +18 -1
  38. data/lib/seam/resources/unmanaged_device.rb +108 -38
  39. data/lib/seam/resources/workspace.rb +0 -4
  40. data/lib/seam/routes/access_codes.rb +19 -23
  41. data/lib/seam/routes/access_codes_simulate.rb +1 -1
  42. data/lib/seam/routes/access_codes_unmanaged.rb +7 -5
  43. data/lib/seam/routes/access_grants.rb +24 -24
  44. data/lib/seam/routes/access_grants_unmanaged.rb +5 -4
  45. data/lib/seam/routes/access_methods.rb +20 -14
  46. data/lib/seam/routes/access_methods_unmanaged.rb +2 -2
  47. data/lib/seam/routes/acs_access_groups.rb +4 -4
  48. data/lib/seam/routes/acs_credentials.rb +4 -4
  49. data/lib/seam/routes/acs_encoders.rb +5 -5
  50. data/lib/seam/routes/acs_entrances.rb +6 -8
  51. data/lib/seam/routes/acs_systems.rb +3 -3
  52. data/lib/seam/routes/acs_users.rb +44 -34
  53. data/lib/seam/routes/action_attempts.rb +2 -2
  54. data/lib/seam/routes/cameras_live_views.rb +5 -5
  55. data/lib/seam/routes/client_sessions.rb +20 -21
  56. data/lib/seam/routes/connect_webviews.rb +3 -3
  57. data/lib/seam/routes/connected_accounts.rb +7 -5
  58. data/lib/seam/routes/customers.rb +4 -5
  59. data/lib/seam/routes/devices.rb +10 -10
  60. data/lib/seam/routes/devices_unmanaged.rb +7 -5
  61. data/lib/seam/routes/events.rb +16 -12
  62. data/lib/seam/routes/instant_keys.rb +7 -5
  63. data/lib/seam/routes/locks.rb +10 -8
  64. data/lib/seam/routes/locks_simulate.rb +2 -2
  65. data/lib/seam/routes/media.rb +1 -1
  66. data/lib/seam/routes/noise_sensors.rb +1 -1
  67. data/lib/seam/routes/noise_sensors_noise_thresholds.rb +9 -3
  68. data/lib/seam/routes/phones.rb +2 -2
  69. data/lib/seam/routes/phones_simulate.rb +1 -1
  70. data/lib/seam/routes/spaces.rb +18 -13
  71. data/lib/seam/routes/thermostats.rb +14 -18
  72. data/lib/seam/routes/thermostats_daily_programs.rb +2 -2
  73. data/lib/seam/routes/thermostats_schedules.rb +3 -3
  74. data/lib/seam/routes/user_identities.rb +24 -18
  75. data/lib/seam/routes/user_identities_unmanaged.rb +2 -2
  76. data/lib/seam/routes/webhooks.rb +3 -3
  77. data/lib/seam/routes/workspaces.rb +6 -16
  78. data/lib/seam/url_search_params_serializer.rb +2 -1
  79. data/lib/seam/version.rb +1 -1
  80. data/lib/seam/wait_for_action_attempt.rb +3 -1
  81. data/lib/seam/webhook.rb +25 -5
  82. data/lib/seam.rb +12 -6
  83. 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,51 @@ 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
+ # Mold risk level as reported by the device, if the device measures it.
357
401
  # @return [String, nil]
358
- # @deprecated Use `time_zone` instead.
359
- attr_accessor :timezone
402
+ attr_accessor :mold_risk_level
403
+ # Noise level in decibels, if the device measures noise.
404
+ # @return [Float, nil]
405
+ attr_accessor :noise_level_decibels
406
+ # Noise level as a Noise Risk Score (NRS), if the device reports one.
407
+ # @return [Float, nil]
408
+ attr_accessor :noise_level_nrs
409
+ # Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity.
410
+ # @return [Float, nil]
411
+ attr_accessor :relative_humidity
412
+ # Stable, hardware-defined name of the sensor, such as a port number.
413
+ # @return [String]
414
+ attr_accessor :sensor_name
415
+ # Temperature in °C, if the device measures temperature.
416
+ # @return [Float, nil]
417
+ attr_accessor :temperature_celsius
418
+ # Temperature in °F, if the device measures temperature.
419
+ # @return [Float, nil]
420
+ attr_accessor :temperature_fahrenheit
360
421
  end
361
422
 
362
423
  class Properties < BaseResource
@@ -395,9 +456,6 @@ module Seam
395
456
  end
396
457
 
397
458
  class Model < BaseResource
398
- # @return [Boolean, nil]
399
- # @deprecated use device.properties.model.can_connect_accessory_keypad
400
- attr_accessor :accessory_keypad_supported
401
459
  # Indicates whether the device can connect a accessory keypad.
402
460
  # @return [Boolean, nil]
403
461
  attr_accessor :can_connect_accessory_keypad
@@ -410,12 +468,6 @@ module Seam
410
468
  # Display name that corresponds to the manufacturer-specific terminology for the device.
411
469
  # @return [String]
412
470
  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
471
  end
420
472
 
421
473
  class AssaAbloyCredentialServiceMetadata < BaseResource
@@ -562,6 +614,24 @@ module Seam
562
614
  attr_accessor :device_name
563
615
  end
564
616
 
617
+ class CieloMetadata < BaseResource
618
+ # ID of the air conditioner or heat pump model that the Cielo device is set up to control.
619
+ # @return [String, nil]
620
+ attr_accessor :appliance_id
621
+ # Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat.
622
+ # @return [String, nil]
623
+ attr_accessor :cielo_device_type
624
+ # Name of the device in the Cielo Home app.
625
+ # @return [String, nil]
626
+ attr_accessor :device_name
627
+ # MAC address of the Cielo device.
628
+ # @return [String, nil]
629
+ attr_accessor :mac_address
630
+ # Temperature unit that the Cielo device displays: `C` or `F`.
631
+ # @return [String, nil]
632
+ attr_accessor :temperature_unit
633
+ end
634
+
565
635
  class ControlbywebMetadata < BaseResource
566
636
  # Device ID for a ControlByWeb device.
567
637
  # @return [String, nil]
@@ -654,10 +724,6 @@ module Seam
654
724
  # IANA time zone for a dormakaba Oracode device.
655
725
  # @return [String, nil]
656
726
  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
727
  # Site name for a dormakaba Oracode device.
662
728
  # @return [String, nil]
663
729
  attr_accessor :site_name
@@ -672,6 +738,15 @@ module Seam
672
738
  attr_accessor :ecobee_device_id
673
739
  end
674
740
 
741
+ class EufyMetadata < BaseResource
742
+ # @return [String, nil]
743
+ attr_accessor :device_id
744
+ # @return [String, nil]
745
+ attr_accessor :device_name
746
+ # @return [String, nil]
747
+ attr_accessor :model
748
+ end
749
+
675
750
  class FourSuitesMetadata < BaseResource
676
751
  # Device ID for a 4SUITES device.
677
752
  # @return [Float, nil]
@@ -1074,33 +1149,6 @@ module Seam
1074
1149
  attr_accessor :site_name
1075
1150
  end
1076
1151
 
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
1152
  class SchlageMetadata < BaseResource
1105
1153
  # Device ID for a Schlage device.
1106
1154
  # @return [String, nil]
@@ -1135,14 +1183,38 @@ module Seam
1135
1183
  # Device name for a Sensi device.
1136
1184
  # @return [String, nil]
1137
1185
  attr_accessor :device_name
1138
- # Deprecated. Seam no longer sets this field.
1139
- # @return [Boolean, nil]
1140
- attr_accessor :dual_setpoints_not_supported
1141
1186
  # Product type for a Sensi device.
1142
1187
  # @return [String, nil]
1143
1188
  attr_accessor :product_type
1144
1189
  end
1145
1190
 
1191
+ class SensiboMetadata < BaseResource
1192
+ # Firmware version of the Sensibo device.
1193
+ # @return [String, nil]
1194
+ attr_accessor :firmware_version
1195
+ # MAC address of the Sensibo device.
1196
+ # @return [String, nil]
1197
+ attr_accessor :mac_address
1198
+ # ID of the Sensibo device, which Sensibo calls a pod.
1199
+ # @return [String, nil]
1200
+ attr_accessor :pod_id
1201
+ # Product model of the Sensibo device, such as `skyv2` or `skyplus`.
1202
+ # @return [String, nil]
1203
+ attr_accessor :product_model
1204
+ # Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`.
1205
+ # @return [String, nil]
1206
+ attr_accessor :product_name
1207
+ # Name of the room that the Sensibo device is in.
1208
+ # @return [String, nil]
1209
+ attr_accessor :room_name
1210
+ # Serial number of the Sensibo device.
1211
+ # @return [String, nil]
1212
+ attr_accessor :serial_number
1213
+ # Temperature unit that the Sensibo device displays: `C` or `F`.
1214
+ # @return [String, nil]
1215
+ attr_accessor :temperature_unit
1216
+ end
1217
+
1146
1218
  class SmartthingsMetadata < BaseResource
1147
1219
  # Device ID for a SmartThings device.
1148
1220
  # @return [String, nil]
@@ -1158,37 +1230,34 @@ module Seam
1158
1230
  attr_accessor :model
1159
1231
  end
1160
1232
 
1161
- class SonosMetadata < BaseResource
1162
- # Models of the speakers bonded to this speaker, such as surrounds or a subwoofer.
1233
+ class TadoMetadata < BaseResource
1234
+ # Serial numbers of all tado° devices in the zone.
1163
1235
  # @return [Array<String>]
1164
- attr_accessor :bonded_member_models
1165
- # Color of the speaker, as reported by Sonos.
1236
+ attr_accessor :device_serial_numbers
1237
+ # Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`.
1166
1238
  # @return [String, nil]
1167
- attr_accessor :color
1168
- # ID of the Sonos household that the speaker belongs to.
1239
+ attr_accessor :device_type
1240
+ # Generation of the tado° home, such as `PRE_LINE_X`.
1169
1241
  # @return [String, nil]
1170
- attr_accessor :household_id
1171
- # Model name of the speaker, as reported by Sonos.
1242
+ attr_accessor :home_generation
1243
+ # ID of the tado° home.
1172
1244
  # @return [String, nil]
1173
- attr_accessor :model_display_name
1174
- # ID of the Sonos player for the speaker.
1245
+ attr_accessor :home_id
1246
+ # Name of the tado° home.
1175
1247
  # @return [String, nil]
1176
- attr_accessor :player_id
1177
- # Name of the speaker, as set in the Sonos app.
1248
+ attr_accessor :home_name
1249
+ # Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control.
1178
1250
  # @return [String, nil]
1179
- attr_accessor :player_name
1180
- # Software version running on the speaker.
1251
+ attr_accessor :serial_no
1252
+ # ID of the tado° zone within its home.
1181
1253
  # @return [String, nil]
1182
- attr_accessor :software_version
1183
- end
1184
-
1185
- class TadoMetadata < BaseResource
1186
- # Device type for a tado° device.
1254
+ attr_accessor :zone_id
1255
+ # Name of the tado° zone.
1187
1256
  # @return [String, nil]
1188
- attr_accessor :device_type
1189
- # Serial number for a tado° device.
1257
+ attr_accessor :zone_name
1258
+ # Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`.
1190
1259
  # @return [String, nil]
1191
- attr_accessor :serial_no
1260
+ attr_accessor :zone_type
1192
1261
  end
1193
1262
 
1194
1263
  class TapoMetadata < BaseResource
@@ -1284,6 +1353,30 @@ module Seam
1284
1353
  attr_accessor :timezone_raw_offset_ms
1285
1354
  end
1286
1355
 
1356
+ class TuyaMetadata < BaseResource
1357
+ # Tuya product category code for the device (e.g. ms).
1358
+ # @return [String, nil]
1359
+ attr_accessor :category
1360
+ # Device ID for a Tuya device.
1361
+ # @return [String, nil]
1362
+ attr_accessor :device_id
1363
+ # Device name for a Tuya device.
1364
+ # @return [String, nil]
1365
+ attr_accessor :device_name
1366
+ # Model reported for a Tuya device.
1367
+ # @return [String, nil]
1368
+ attr_accessor :model
1369
+ # Tuya product ID for the device.
1370
+ # @return [String, nil]
1371
+ attr_accessor :product_id
1372
+ # Tuya product name for the device.
1373
+ # @return [String, nil]
1374
+ attr_accessor :product_name
1375
+ # Time zone reported for a Tuya device (e.g. +08:00).
1376
+ # @return [String, nil]
1377
+ attr_accessor :time_zone
1378
+ end
1379
+
1287
1380
  class TwoNMetadata < BaseResource
1288
1381
  # Device ID for a 2N device.
1289
1382
  # @return [Float, nil]
@@ -1308,6 +1401,27 @@ module Seam
1308
1401
  attr_accessor :time_zone
1309
1402
  end
1310
1403
 
1404
+ class UnifiProtectMetadata < BaseResource
1405
+ # Camera ID reported by UniFi Protect.
1406
+ # @return [String, nil]
1407
+ attr_accessor :camera_id
1408
+ # Camera name reported by UniFi Protect.
1409
+ # @return [String, nil]
1410
+ attr_accessor :camera_name
1411
+ # Whether the camera has a microphone.
1412
+ # @return [Boolean, nil]
1413
+ attr_accessor :has_mic
1414
+ # MAC address reported by the UniFi Protect camera.
1415
+ # @return [String, nil]
1416
+ attr_accessor :mac
1417
+ # Model reported by the UniFi Protect camera.
1418
+ # @return [String, nil]
1419
+ attr_accessor :model
1420
+ # Name of the UniFi Protect console that manages the camera.
1421
+ # @return [String, nil]
1422
+ attr_accessor :nvr_name
1423
+ end
1424
+
1311
1425
  class VisionlineMetadata < BaseResource
1312
1426
  # Encoder ID for an ASSA ABLOY Visionline system.
1313
1427
  # @return [String, nil]
@@ -1356,6 +1470,27 @@ module Seam
1356
1470
  attr_accessor :serial_number
1357
1471
  end
1358
1472
 
1473
+ class YaleConnectMetadata < BaseResource
1474
+ # Device ID for a Yale Connect lock.
1475
+ # @return [String, nil]
1476
+ attr_accessor :device_id
1477
+ # Device name for a Yale Connect lock.
1478
+ # @return [String, nil]
1479
+ attr_accessor :device_name
1480
+ # Firmware version reported by the Yale Connect lock.
1481
+ # @return [String, nil]
1482
+ attr_accessor :firmware_version
1483
+ # Name of the Yale Connect home that contains the lock.
1484
+ # @return [String, nil]
1485
+ attr_accessor :home_name
1486
+ # Model reported by the Yale Connect lock.
1487
+ # @return [String, nil]
1488
+ attr_accessor :model
1489
+ # Time zone of the Yale Connect home, as Yale reports it.
1490
+ # @return [String, nil]
1491
+ attr_accessor :time_zone_description
1492
+ end
1493
+
1359
1494
  class CodeConstraints < BaseResource
1360
1495
  # @return [String]
1361
1496
  # Known values:
@@ -1466,108 +1601,6 @@ module Seam
1466
1601
  attr_accessor :time_zone
1467
1602
  end
1468
1603
 
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
1604
  class AvailableClimatePresets < BaseResource
1572
1605
  class EcobeeMetadata < BaseResource
1573
1606
  # Reference to the Ecobee climate, if applicable.
@@ -1640,10 +1673,6 @@ module Seam
1640
1673
  # - `heat_cool`
1641
1674
  # - `eco`
1642
1675
  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
1676
  # User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).
1648
1677
  # @return [String, nil]
1649
1678
  attr_accessor :name
@@ -1721,91 +1750,6 @@ module Seam
1721
1750
  # - `heat_cool`
1722
1751
  # - `eco`
1723
1752
  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
1753
  # User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).
1810
1754
  # @return [String, nil]
1811
1755
  attr_accessor :name
@@ -1922,6 +1866,9 @@ module Seam
1922
1866
  # Metadata for a Brivo device.
1923
1867
  # @return [BrivoMetadata, nil]
1924
1868
  resource_accessor :brivo_metadata, BrivoMetadata
1869
+ # Metadata for a Cielo device.
1870
+ # @return [CieloMetadata, nil]
1871
+ resource_accessor :cielo_metadata, CieloMetadata
1925
1872
  # Metadata for a ControlByWeb device.
1926
1873
  # @return [ControlbywebMetadata, nil]
1927
1874
  resource_accessor :controlbyweb_metadata, ControlbywebMetadata
@@ -1934,6 +1881,9 @@ module Seam
1934
1881
  # Metadata for an ecobee device.
1935
1882
  # @return [EcobeeMetadata, nil]
1936
1883
  resource_accessor :ecobee_metadata, EcobeeMetadata
1884
+ # Metadata for a Eufy device.
1885
+ # @return [EufyMetadata, nil]
1886
+ resource_accessor :eufy_metadata, EufyMetadata
1937
1887
  # Metadata for a 4SUITES device.
1938
1888
  # @return [FourSuitesMetadata, nil]
1939
1889
  resource_accessor :four_suites_metadata, FourSuitesMetadata
@@ -1988,9 +1938,6 @@ module Seam
1988
1938
  # Metadata for a Salto KS device.
1989
1939
  # @return [SaltoKsMetadata, nil]
1990
1940
  resource_accessor :salto_ks_metadata, SaltoKsMetadata
1991
- # Metada for a Salto device.
1992
- # @return [SaltoMetadata, nil]
1993
- resource_accessor :salto_metadata, SaltoMetadata
1994
1941
  # Metadata for a Schlage device.
1995
1942
  # @return [SchlageMetadata, nil]
1996
1943
  resource_accessor :schlage_metadata, SchlageMetadata
@@ -2000,12 +1947,12 @@ module Seam
2000
1947
  # Metadata for a Sensi device.
2001
1948
  # @return [SensiMetadata, nil]
2002
1949
  resource_accessor :sensi_metadata, SensiMetadata
1950
+ # Metadata for a Sensibo device.
1951
+ # @return [SensiboMetadata, nil]
1952
+ resource_accessor :sensibo_metadata, SensiboMetadata
2003
1953
  # Metadata for a SmartThings device.
2004
1954
  # @return [SmartthingsMetadata, nil]
2005
1955
  resource_accessor :smartthings_metadata, SmartthingsMetadata
2006
- # Metadata for a Sonos speaker.
2007
- # @return [SonosMetadata, nil]
2008
- resource_accessor :sonos_metadata, SonosMetadata
2009
1956
  # Metadata for a tado° device.
2010
1957
  # @return [TadoMetadata, nil]
2011
1958
  resource_accessor :tado_metadata, TadoMetadata
@@ -2018,12 +1965,18 @@ module Seam
2018
1965
  # Metadata for a TTLock device.
2019
1966
  # @return [TtlockMetadata, nil]
2020
1967
  resource_accessor :ttlock_metadata, TtlockMetadata
1968
+ # Metadata for a Tuya device.
1969
+ # @return [TuyaMetadata, nil]
1970
+ resource_accessor :tuya_metadata, TuyaMetadata
2021
1971
  # Metadata for a 2N device.
2022
1972
  # @return [TwoNMetadata, nil]
2023
1973
  resource_accessor :two_n_metadata, TwoNMetadata
2024
1974
  # Metadata for an Ultraloq device.
2025
1975
  # @return [UltraloqMetadata, nil]
2026
1976
  resource_accessor :ultraloq_metadata, UltraloqMetadata
1977
+ # Metadata for a UniFi Protect camera.
1978
+ # @return [UnifiProtectMetadata, nil]
1979
+ resource_accessor :unifi_protect_metadata, UnifiProtectMetadata
2027
1980
  # Metadata for an ASSA ABLOY Visionline system.
2028
1981
  # @return [VisionlineMetadata, nil]
2029
1982
  resource_accessor :visionline_metadata, VisionlineMetadata
@@ -2033,20 +1986,15 @@ module Seam
2033
1986
  # Metadata for a Yacan device.
2034
1987
  # @return [YacanMetadata, nil]
2035
1988
  resource_accessor :yacan_metadata, YacanMetadata
1989
+ # Metadata for a Yale Connect lock.
1990
+ # @return [YaleConnectMetadata, nil]
1991
+ resource_accessor :yale_connect_metadata, YaleConnectMetadata
2036
1992
  # Keypad battery status.
2037
1993
  # @return [KeypadBattery, nil]
2038
1994
  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
1995
  # Current climate setting.
2046
1996
  # @return [CurrentClimateSetting, nil]
2047
1997
  resource_accessor :current_climate_setting, CurrentClimateSetting
2048
- # @return [DefaultClimateSetting, nil]
2049
- resource_accessor :default_climate_setting, DefaultClimateSetting
2050
1998
  # Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat.
2051
1999
  # @return [TemperatureThreshold, nil]
2052
2000
  resource_accessor :temperature_threshold, TemperatureThreshold
@@ -2093,26 +2041,12 @@ module Seam
2093
2041
  # Indicates current noise level in decibels, if the device supports noise detection.
2094
2042
  # @return [Float, nil]
2095
2043
  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
2044
  # Indicates whether the device is online.
2101
2045
  # @return [Boolean]
2102
2046
  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
2047
  # Serial number of the device.
2108
2048
  # @return [String, nil]
2109
2049
  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
2050
  # The delay in seconds before the lock automatically locks after being unlocked.
2117
2051
  # @return [Float, nil]
2118
2052
  attr_accessor :auto_lock_delay_seconds
@@ -2172,13 +2106,6 @@ module Seam
2172
2106
  # 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
2107
  # @return [String, nil]
2174
2108
  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
2109
  # Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat.
2183
2110
  # @return [Boolean, nil]
2184
2111
  attr_accessor :is_cooling
@@ -2453,7 +2380,7 @@ module Seam
2453
2380
  date_accessor :created_at
2454
2381
  end
2455
2382
 
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.
2383
+ # 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
2384
  class SaltoKsLockAccessCodeSupportRemoved < Warnings
2458
2385
  # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
2459
2386
  # @return [String]
@@ -2573,6 +2500,21 @@ module Seam
2573
2500
  date_accessor :created_at
2574
2501
  end
2575
2502
 
2503
+ # Indicates that a technician has put the pool controller in service mode. Schedules and remote changes will not run until it is switched back.
2504
+ class ServiceMode < Warnings
2505
+ # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
2506
+ # @return [String]
2507
+ attr_accessor :message
2508
+ # Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
2509
+ # @return [String]
2510
+ # Known values:
2511
+ # - `service_mode`
2512
+ attr_accessor :warning_code
2513
+ # Date and time at which Seam created the warning.
2514
+ # @return [Time]
2515
+ date_accessor :created_at
2516
+ end
2517
+
2576
2518
  # Indicates a provider-specific issue that may affect device functionality.
2577
2519
  class ProviderIssue < Warnings
2578
2520
  # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
@@ -2633,6 +2575,21 @@ module Seam
2633
2575
  date_accessor :created_at
2634
2576
  end
2635
2577
 
2578
+ # Indicates that the lock has about two weeks of battery life remaining or the provider otherwise recommends replacing the lock's batteries soon.
2579
+ class BatteryReplacementRecommended < Warnings
2580
+ # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
2581
+ # @return [String]
2582
+ attr_accessor :message
2583
+ # Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
2584
+ # @return [String]
2585
+ # Known values:
2586
+ # - `battery_replacement_recommended`
2587
+ attr_accessor :warning_code
2588
+ # Date and time at which Seam created the warning.
2589
+ # @return [Time]
2590
+ date_accessor :created_at
2591
+ end
2592
+
2636
2593
  # Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.
2637
2594
  class UnreliableOnlineStatus < Warnings
2638
2595
  # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
@@ -2669,6 +2626,36 @@ module Seam
2669
2626
  date_accessor :created_at
2670
2627
  end
2671
2628
 
2629
+ # Indicates that a third-party subscription is required to enable additional device capabilities.
2630
+ class SubscriptionRequiredForAdditionalCapabilities < Warnings
2631
+ # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
2632
+ # @return [String]
2633
+ attr_accessor :message
2634
+ # Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
2635
+ # @return [String]
2636
+ # Known values:
2637
+ # - `subscription_required_for_additional_capabilities`
2638
+ attr_accessor :warning_code
2639
+ # Date and time at which Seam created the warning.
2640
+ # @return [Time]
2641
+ date_accessor :created_at
2642
+ end
2643
+
2644
+ # Indicates that the camera's account plan does not include cloud recording, so event media such as motion clips is unavailable.
2645
+ class CloudRecordingNotEnabled < Warnings
2646
+ # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
2647
+ # @return [String]
2648
+ attr_accessor :message
2649
+ # Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
2650
+ # @return [String]
2651
+ # Known values:
2652
+ # - `cloud_recording_not_enabled`
2653
+ attr_accessor :warning_code
2654
+ # Date and time at which Seam created the warning.
2655
+ # @return [Time]
2656
+ date_accessor :created_at
2657
+ end
2658
+
2672
2659
  # Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
2673
2660
  # @return [String]
2674
2661
  attr_accessor :message
@@ -2697,12 +2684,16 @@ module Seam
2697
2684
  # - `time_zone_mismatch`
2698
2685
  # - `two_n_device_missing_timezone`
2699
2686
  # - `hub_required_for_additional_capabilities`
2687
+ # - `service_mode`
2700
2688
  # - `provider_issue`
2701
2689
  # - `keynest_unsupported_locker`
2702
2690
  # - `accessory_keypad_setup_required`
2703
2691
  # - `accessory_keypad_low_battery`
2692
+ # - `battery_replacement_recommended`
2704
2693
  # - `unreliable_online_status`
2705
2694
  # - `max_access_codes_reached`
2695
+ # - `subscription_required_for_additional_capabilities`
2696
+ # - `cloud_recording_not_enabled`
2706
2697
  attr_accessor :warning_code
2707
2698
  # Date and time at which Seam created the warning.
2708
2699
  # @return [Time]
@@ -2731,12 +2722,16 @@ module Seam
2731
2722
  "time_zone_mismatch" => TimeZoneMismatch,
2732
2723
  "two_n_device_missing_timezone" => TwoNDeviceMissingTimezone,
2733
2724
  "hub_required_for_additional_capabilities" => HubRequiredForAdditionalCapabilities,
2725
+ "service_mode" => ServiceMode,
2734
2726
  "provider_issue" => ProviderIssue,
2735
2727
  "keynest_unsupported_locker" => KeynestUnsupportedLocker,
2736
2728
  "accessory_keypad_setup_required" => AccessoryKeypadSetupRequired,
2737
2729
  "accessory_keypad_low_battery" => AccessoryKeypadLowBattery,
2730
+ "battery_replacement_recommended" => BatteryReplacementRecommended,
2738
2731
  "unreliable_online_status" => UnreliableOnlineStatus,
2739
- "max_access_codes_reached" => MaxAccessCodesReached
2732
+ "max_access_codes_reached" => MaxAccessCodesReached,
2733
+ "subscription_required_for_additional_capabilities" => SubscriptionRequiredForAdditionalCapabilities,
2734
+ "cloud_recording_not_enabled" => CloudRecordingNotEnabled
2740
2735
  }.freeze
2741
2736
  end
2742
2737
 
@@ -2750,14 +2745,20 @@ module Seam
2750
2745
  # @return [Location, nil]
2751
2746
  resource_accessor :location, Location
2752
2747
  # Properties of the device.
2753
- # @return [Properties]
2748
+ # @return [Properties, nil]
2754
2749
  resource_accessor :properties, Properties
2755
2750
  # 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
2751
  # @return [Array<Errors>]
2757
2752
  resource_list_accessor :errors, Errors
2753
+ # 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.
2754
+ # @return [Array<NamedSensors>]
2755
+ resource_list_accessor :named_sensors, NamedSensors
2758
2756
  # 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
2757
  # @return [Array<Warnings>]
2760
2758
  resource_list_accessor :warnings, Warnings
2759
+ # Air quality index, if the device measures it.
2760
+ # @return [Float, nil]
2761
+ attr_accessor :air_quality_index
2761
2762
  # 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
2763
  # @return [Boolean, nil]
2763
2764
  attr_accessor :can_activate_weekly_program
@@ -2773,15 +2774,6 @@ module Seam
2773
2774
  # Indicates whether the thermostat supports simultaneous heating and cooling.
2774
2775
  # @return [Boolean, nil]
2775
2776
  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
2777
  # Indicates whether the device supports programming offline access codes.
2786
2778
  # @return [Boolean, nil]
2787
2779
  attr_accessor :can_program_offline_access_codes
@@ -2806,9 +2798,6 @@ module Seam
2806
2798
  # Indicates whether the thermostat supports running climate programs.
2807
2799
  # @return [Boolean, nil]
2808
2800
  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
2801
  # Indicates whether the device supports simulating connection in a sandbox.
2813
2802
  # @return [Boolean, nil]
2814
2803
  attr_accessor :can_simulate_connection
@@ -2827,7 +2816,7 @@ module Seam
2827
2816
  # Indicates whether the device supports simulating removal in a sandbox.
2828
2817
  # @return [Boolean, nil]
2829
2818
  attr_accessor :can_simulate_removal
2830
- # Indicates whether the camera supports streaming live video through a camera live view session.
2819
+ # Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline.
2831
2820
  # @return [Boolean, nil]
2832
2821
  attr_accessor :can_stream_live_video
2833
2822
  # Indicates whether the thermostat can be turned off.
@@ -2845,7 +2834,14 @@ module Seam
2845
2834
  # - `thermostat`
2846
2835
  # - `battery`
2847
2836
  # - `phone`
2837
+ # - `pool`
2848
2838
  attr_accessor :capabilities_supported
2839
+ # Carbon dioxide concentration in parts per million, if the device measures it.
2840
+ # @return [Float, nil]
2841
+ attr_accessor :co2_ppm
2842
+ # Carbon monoxide concentration in parts per million, if the device measures it.
2843
+ # @return [Float, nil]
2844
+ attr_accessor :co_ppm
2849
2845
  # Unique identifier for the account associated with the device.
2850
2846
  # @return [String]
2851
2847
  attr_accessor :connected_account_id
@@ -2855,7 +2851,7 @@ module Seam
2855
2851
  # ID of the device.
2856
2852
  # @return [String]
2857
2853
  attr_accessor :device_id
2858
- # Type of the device.
2854
+ # 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
2855
  # @return [String]
2860
2856
  # Known values:
2861
2857
  # - `akuvox_lock`
@@ -2875,6 +2871,9 @@ module Seam
2875
2871
  # - `smartthings_lock`
2876
2872
  # - `wyze_lock`
2877
2873
  # - `yale_lock`
2874
+ # - `yale_access_lock`
2875
+ # - `yale_home_lock`
2876
+ # - `yale_connect_lock`
2878
2877
  # - `two_n_intercom`
2879
2878
  # - `controlbyweb_device`
2880
2879
  # - `ttlock_lock`
@@ -2889,6 +2888,8 @@ module Seam
2889
2888
  # - `omnitec_lock`
2890
2889
  # - `kisi_lock`
2891
2890
  # - `aqara_lock`
2891
+ # - `tuya_lock`
2892
+ # - `eufy_lock`
2892
2893
  # - `keynest_key`
2893
2894
  # - `noiseaware_activity_zone`
2894
2895
  # - `minut_sensor`
@@ -2897,6 +2898,8 @@ module Seam
2897
2898
  # - `honeywell_resideo_thermostat`
2898
2899
  # - `tado_thermostat`
2899
2900
  # - `sensi_thermostat`
2901
+ # - `sensibo_thermostat`
2902
+ # - `cielo_thermostat`
2900
2903
  # - `smartthings_thermostat`
2901
2904
  # - `ios_phone`
2902
2905
  # - `android_phone`
@@ -2904,20 +2907,60 @@ module Seam
2904
2907
  # - `tapo_camera`
2905
2908
  # - `arlo_camera`
2906
2909
  # - `reolink_camera`
2910
+ # - `unifi_protect_camera`
2907
2911
  # - `sonos_speaker`
2912
+ # - `alertify_sensor`
2913
+ # - `hayward_pool_controller`
2914
+ # - `hayward_pool`
2908
2915
  attr_accessor :device_type
2909
2916
  # 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
2917
  # @return [String]
2911
2918
  attr_accessor :display_name
2919
+ # Estimated number of occupants detected by the device.
2920
+ # @return [Float, nil]
2921
+ attr_accessor :estimated_occupant_count
2922
+ # 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`.
2923
+ # @return [Boolean, nil]
2924
+ attr_accessor :is_casing_tampered_with
2925
+ # 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.
2926
+ # @return [Boolean, nil]
2927
+ attr_accessor :is_detached_from_mounting_plate
2912
2928
  # 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
2929
  # @return [TrueClass]
2914
2930
  attr_accessor :is_managed
2931
+ # Indicates whether the device detects occupancy.
2932
+ # @return [Boolean, nil]
2933
+ attr_accessor :is_occupancy_detected
2934
+ # Indicates whether the device is online.
2935
+ # @return [Boolean]
2936
+ attr_accessor :is_online
2937
+ # Indicates whether the device detects smoking, if the device measures it.
2938
+ # @return [Boolean, nil]
2939
+ attr_accessor :is_smoking_detected
2940
+ # Mold risk level as reported by the device, if the device measures it.
2941
+ # @return [String, nil]
2942
+ attr_accessor :mold_risk_level
2915
2943
  # Optional nickname to describe the device, settable through Seam.
2916
2944
  # @return [String, nil]
2917
2945
  attr_accessor :nickname
2946
+ # Noise level in decibels, if the device measures noise.
2947
+ # @return [Float, nil]
2948
+ attr_accessor :noise_level_decibels
2949
+ # Noise level as a Noise Risk Score (NRS), if the device reports one.
2950
+ # @return [Float, nil]
2951
+ attr_accessor :noise_level_nrs
2952
+ # Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity.
2953
+ # @return [Float, nil]
2954
+ attr_accessor :relative_humidity
2918
2955
  # IDs of the spaces the device is in.
2919
2956
  # @return [Array<String>]
2920
2957
  attr_accessor :space_ids
2958
+ # Temperature in °C, if the device measures temperature.
2959
+ # @return [Float, nil]
2960
+ attr_accessor :temperature_celsius
2961
+ # Temperature in °F, if the device measures temperature.
2962
+ # @return [Float, nil]
2963
+ attr_accessor :temperature_fahrenheit
2921
2964
  # Unique identifier for the Seam workspace associated with the device.
2922
2965
  # @return [String]
2923
2966
  attr_accessor :workspace_id