seam 2.1.0 → 2.2.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: 6dcceb277f2f271709aced25ddb9bc3b1f9e5b91169ac12791b2c462955509c7
4
+ data.tar.gz: c99bbec793de9980b40b9d250babd8aa67eeafc96f82f3888cc595afa3451117
5
5
  SHA512:
6
- metadata.gz: cbaaedfa65d60963d719e848cd57628d8bad58c006f754e9fb6c5d87debed97601304cff9890f372da889029b77b3f66f94ee83e9683cf158303c84dfcb7caa8
7
- data.tar.gz: '09709484de2997533804923d5efbe605f60c6e62cf8d37689e99f5f4c65220484d65db9650386d2c1a851df392ba4a88c09b24c7f0c7713bb94263c4f4b28dee'
6
+ metadata.gz: 1826060dbd984eb5aca524c507736c04183845a81746ee5e219b04a4e917e9270b39b927add7a1ba864e35c98ddbd6e9a19b3d073df709d3d26c7f6784fae7cb
7
+ data.tar.gz: 60fafbd7890b76bc99095c4fbeea40ae5c285dfea72fc6bc07d80cb2ba53ce60f1b68cb5daee86bf675fb5f30043be6b83e5d9f973bb77524cad9bb7d6e5fb5e
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.2.0)
5
5
  faraday (~> 2.7)
6
6
  faraday-retry (~> 2.2)
7
7
  svix (~> 1.30)
@@ -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.2.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.2.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-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday