balboa_worldwide_app 2.1.1 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34269811a73d4aeca5f876a55bf71bc1f746f902b0a6dcba3cc16be77c0165e7
4
- data.tar.gz: b07b0bc9e215cf9826b7596b1455a5c3f67a39fbc7ed664edef89899ef905abc
3
+ metadata.gz: b1b565e8ea9c2ff56e086777b75f0678440c67a045cec5a5677458dc5686545b
4
+ data.tar.gz: 8003b1fe9a607b5b03cbdf22b69591e78fbfb86c29c826744b19a3a09dea5d25
5
5
  SHA512:
6
- metadata.gz: 6de18fffd922c20a5e0f5d4eb44306055e21652e7b0dc3fc01e1c7b03cc09b96d7e6daa2643c17204da8c950eac2736cd57293e298eabd6ca2fae708e91488b5
7
- data.tar.gz: e2efa4b162ca612ca1f9044ce9e539055f0e1cf63bcd5c5d4bd691d182d5853948be09f8da4f061bbb493491a271a5354846fa1a4bbe2dd4612e68f7f806ec48
6
+ metadata.gz: fb74d4743d735f663e945f8070bda4b71ac49311b2462c273d933d91ca2a186ad2f0a0ff735c26ba548ac438427eb08a531ed67fddd0c9cc48ae530e81fda199
7
+ data.tar.gz: 5c84e5f528eaf1c248dc007bee5c44baafe6a659f270040a3aed9b3f6514ece48c9f252c28723187c2a09e96dd092121e3796e926da5a5fe154d26050ccc10b1
data/exe/bwa_mqtt_bridge CHANGED
@@ -156,7 +156,7 @@ class MQTTBridge
156
156
  spa.property("command",
157
157
  "Send a command to the tub",
158
158
  :enum,
159
- format: %w[normal_operation clear_notification],
159
+ format: %w[normal_operation clear_notification soak],
160
160
  retained: false,
161
161
  non_standard_value_check: allow_toggles) do |value|
162
162
  @bwa.toggle_item(value.to_sym)
data/lib/bwa/client.rb CHANGED
@@ -168,6 +168,10 @@ module BWA
168
168
 
169
169
  desired = 0 if desired == false
170
170
  max_pump_speed = configuration.pumps[index]
171
+
172
+ # turn all pumps off with a single command
173
+ return toggle_item(:soak) if desired.zero? && configuration.pumps.length == 1 && max_pump_speed != 1
174
+
171
175
  desired = max_pump_speed if desired == true
172
176
  desired = [desired, max_pump_speed].min
173
177
  current_pump_speed = [status.pumps[index], max_pump_speed].min
@@ -18,7 +18,7 @@ module BWA
18
18
  end
19
19
 
20
20
  def serialize
21
- data = "\x01\x00"
21
+ data = +"\x01\x00"
22
22
  data[1] = (scale == :fahrenheit ? 0x00 : 0x01).chr
23
23
  super(data)
24
24
  end
@@ -20,6 +20,7 @@ module BWA
20
20
  light2: 0x12,
21
21
  aux1: 0x16,
22
22
  aux2: 0x17,
23
+ soak: 0x1d,
23
24
  hold: 0x3c,
24
25
  temperature_range: 0x50,
25
26
  heating_mode: 0x51
data/lib/bwa/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BWA
4
- VERSION = "2.1.1"
4
+ VERSION = "2.1.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: balboa_worldwide_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-14 00:00:00.000000000 Z
11
+ date: 2022-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ccutrer-serialport
@@ -160,9 +160,9 @@ description:
160
160
  email: cody@cutrer.com'
161
161
  executables:
162
162
  - bwa_client
163
- - bwa_server
164
- - bwa_proxy
165
163
  - bwa_mqtt_bridge
164
+ - bwa_proxy
165
+ - bwa_server
166
166
  extensions: []
167
167
  extra_rdoc_files: []
168
168
  files:
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  - !ruby/object:Gem::Version
214
214
  version: '0'
215
215
  requirements: []
216
- rubygems_version: 3.1.2
216
+ rubygems_version: 3.3.5
217
217
  signing_key:
218
218
  specification_version: 4
219
219
  summary: Library for communication with Balboa Water Group's WiFi module or RS-485