balboa_worldwide_app 2.1.8 → 2.2.0

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: 7a8bdb58b8e445cb2de9839b0736204a587b125469534436654c4742b35fd8ac
4
- data.tar.gz: cd20988f1b7cbe4be798345ac6fdd228a88ab5b2049f4dd808f85796cdeee8a6
3
+ metadata.gz: 15d4e21ca22aeaf718021a0b6e05cc7425c1940bca453f01a022f9b35203b5f3
4
+ data.tar.gz: 8ca0830a4c1ce17089163edc5ceccfcafcf1998aa1390c97084072e09ee44c8d
5
5
  SHA512:
6
- metadata.gz: f18439aca093e2aceb8ca9899e1ec27820e39bafeaaae2b959149d61ca18f111251f6e08d8eb06186976944f46e1f5b05f0e0e8283b2b07c2ff255913a68d0a8
7
- data.tar.gz: b86b284297cac9328b0c2d4e1e1aa8d423e6d9a7a249ce24f9dcc4b516bd27d82f173604d9c2c67dd806aee938c6b2713f60bcc61bcead50b1a66da8c210d31d
6
+ metadata.gz: fde7af32ab786260325c190fcd3405e5ae8df641f470f88530de9c7243c268c3eb2188bd2ceb574c0ae9fd80007f706b9929a56318d4bcb0e5a4ec6f29a786a3
7
+ data.tar.gz: b9838132e082e36c1c16c527275f1e42b1511fdc1941a7be7327f7696a6050d22623b0cfb5181d5fd6d23f5fb0979cd6c7d6c470630d649819b177a6c915f57d
data/exe/bwa_mqtt_bridge CHANGED
@@ -4,7 +4,7 @@
4
4
  require "sd_notify"
5
5
  require "set"
6
6
  require "json"
7
- require "mqtt/home_assistant"
7
+ require "mqtt/homie/home_assistant"
8
8
 
9
9
  require "bwa/logger"
10
10
  require "bwa/client"
@@ -153,14 +153,24 @@ class MQTTBridge
153
153
  end
154
154
 
155
155
  @homie.node("spa", "Hot Tub", @bwa.model) do |spa|
156
- spa.property("command",
157
- "Send a command to the tub",
158
- :enum,
159
- format: %w[normal_operation clear_notification soak],
160
- retained: false,
161
- non_standard_value_check: allow_toggles) do |value|
156
+ command = spa.property("command",
157
+ "Send a command to the tub",
158
+ :enum,
159
+ format: %w[normal_operation clear_notification soak],
160
+ retained: false,
161
+ non_standard_value_check: allow_toggles) do |value|
162
162
  @bwa.toggle_item(value.to_sym)
163
163
  end
164
+ command.hass_button(name: "Clear Notification",
165
+ object_id: "clear_notification",
166
+ payload_press: "clear_notification")
167
+ command.hass_button(name: "Normal Operation",
168
+ object_id: "normal_operation",
169
+ payload_press: "normal_operation")
170
+ command.hass_button(name: "Soak",
171
+ object_id: "soak",
172
+ payload_press: "soak")
173
+
164
174
  spa.property("hold",
165
175
  "Hold",
166
176
  :boolean,
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.8"
4
+ VERSION = "2.2.0"
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.8
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-06 00:00:00.000000000 Z
11
+ date: 2025-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ccutrer-serialport
@@ -39,25 +39,25 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.4'
41
41
  - !ruby/object:Gem::Dependency
42
- name: mqtt-homeassistant
42
+ name: mqtt-homie-homeassistant
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.1'
47
+ version: '1.0'
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: 0.1.5
50
+ version: 1.0.4
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - "~>"
56
56
  - !ruby/object:Gem::Version
57
- version: '0.1'
57
+ version: '1.0'
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 0.1.5
60
+ version: 1.0.4
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: net-telnet-rfc2217
63
63
  requirement: !ruby/object:Gem::Requirement