seam 2.1.0 → 2.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c07f619b27bff2b51f470df41776663837f1927928c4ecbe9a3dfaad95f94be5
4
- data.tar.gz: 15462d83c3305282d8cf4c7a08579617bb7c3f9436c3e873f3ff1fc662a6e12f
3
+ metadata.gz: 9005bf668cb6e7c1d6b04eeccc9a823c2fee4c2694684058eda15def98c98739
4
+ data.tar.gz: 0ffae640e0e2c70f417cb86519459519aac33bc907c1f9d0e7cf56e5329bc9ce
5
5
  SHA512:
6
- metadata.gz: cbaaedfa65d60963d719e848cd57628d8bad58c006f754e9fb6c5d87debed97601304cff9890f372da889029b77b3f66f94ee83e9683cf158303c84dfcb7caa8
7
- data.tar.gz: '09709484de2997533804923d5efbe605f60c6e62cf8d37689e99f5f4c65220484d65db9650386d2c1a851df392ba4a88c09b24c7f0c7713bb94263c4f4b28dee'
6
+ metadata.gz: 1825424173e17c9175df0485a853acb80253b9787db538e944b0aa0d00b774c0ad0595656b45d886f7f664131a44996a5d59b76fd6d5051a62d1e1c355f0eaa4
7
+ data.tar.gz: 370712cee91cbeb94c97a715cf4a164079994f4608c707ef7422205dd3f437fa212e7426f0a064add7a4bb2718706798e8ec4caf5192a009d35141c37f2d012e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seam (2.1.0)
4
+ seam (2.3.0)
5
5
  faraday (~> 2.7)
6
6
  faraday-retry (~> 2.2)
7
7
  svix (~> 1.30)
@@ -18,8 +18,8 @@ module Seam
18
18
  Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
19
19
  end
20
20
 
21
- def list(acs_encoder_ids: nil, acs_system_ids: nil, limit: nil)
22
- @client.post("/acs/encoders/list", {acs_encoder_ids: acs_encoder_ids, acs_system_ids: acs_system_ids, limit: limit}.compact)
21
+ def list(acs_system_id: nil, limit: nil, acs_system_ids: nil, acs_encoder_ids: nil)
22
+ @client.post("/acs/encoders/list", {acs_system_id: acs_system_id, limit: limit, acs_system_ids: acs_system_ids, acs_encoder_ids: acs_encoder_ids}.compact)
23
23
 
24
24
  nil
25
25
  end
@@ -92,6 +92,14 @@ module Seam
92
92
  Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
93
93
  end
94
94
 
95
+ def set_hvac_mode(device_id:, hvac_mode_setting:, cooling_set_point_celsius: nil, cooling_set_point_fahrenheit: nil, heating_set_point_celsius: nil, heating_set_point_fahrenheit: nil, wait_for_action_attempt: nil)
96
+ res = @client.post("/thermostats/set_hvac_mode", {device_id: device_id, hvac_mode_setting: hvac_mode_setting, cooling_set_point_celsius: cooling_set_point_celsius, cooling_set_point_fahrenheit: cooling_set_point_fahrenheit, heating_set_point_celsius: heating_set_point_celsius, heating_set_point_fahrenheit: heating_set_point_fahrenheit}.compact)
97
+
98
+ wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt
99
+
100
+ Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
101
+ end
102
+
95
103
  def set_temperature_threshold(device_id:, lower_limit_celsius: nil, lower_limit_fahrenheit: nil, upper_limit_celsius: nil, upper_limit_fahrenheit: nil)
96
104
  @client.post("/thermostats/set_temperature_threshold", {device_id: device_id, lower_limit_celsius: lower_limit_celsius, lower_limit_fahrenheit: lower_limit_fahrenheit, upper_limit_celsius: upper_limit_celsius, upper_limit_fahrenheit: upper_limit_fahrenheit}.compact)
97
105
 
data/lib/seam/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Seam
4
- VERSION = "2.1.0"
4
+ VERSION = "2.3.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seam
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seam Labs, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-19 00:00:00.000000000 Z
11
+ date: 2024-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday