rsmp 0.17.2 → 0.17.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: 1b1e7b64edaac39cb76f67bc47625a0af95688d70a50b84ec8692cc645bc2bfd
4
- data.tar.gz: 25ef625f7effbd9e50112f9495cb5511f17f06465e75325c1f324cf4810db19c
3
+ metadata.gz: 4b0fd1e980fcbbcccc0b302debbd6e128291dce874fc64f71f0ad5227bf387d9
4
+ data.tar.gz: 72172bb7a553ab5d411222de6fce9bb43f4e3754765bb122642c59b5b59a994b
5
5
  SHA512:
6
- metadata.gz: fe2bea264b7d19cf768897e657d784fb150cfb8df759835547eefabf28aa12afce331156e1c58911adaf6dc2efe60c28767d685d96061e52f142350c84f0f3d4
7
- data.tar.gz: c1fb46cd25c0d6ad5312575f9e186580e74bfe8f8bdaf3711fde77f0e7921648781da7e38ea763287c6699661f515d38f80c43c501ad26011ed3c4b475f92d2b
6
+ metadata.gz: 3835c19f22d51abb95076f53374b4d78fd7a583a7984695a72e4ef7ea35cdf0168b4312cf1361c03cdbb5b8c9e9141a0041a792ab754adc9010b6893dd4d7afe
7
+ data.tar.gz: db8ac3294d90673d21b2a4e59e937452dddbb9eed3a7102981e115086ffc6c74b3ac8ff50c1267f0e4a68b31f45786bfe840b0ef155e80ccc20e8a0fade029d9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsmp (0.17.2)
4
+ rsmp (0.17.3)
5
5
  async (~> 1.30.3)
6
6
  async-io (~> 1.33.0)
7
7
  colorize (~> 0.8.1)
@@ -69,6 +69,7 @@ module RSMP
69
69
  @time_int = nil
70
70
  @inputs.reset
71
71
  @signal_priorities = []
72
+ @dynamic_bands_timeout = 0
72
73
  end
73
74
 
74
75
  def dark?
@@ -239,7 +240,7 @@ module RSMP
239
240
  case command_code
240
241
  when 'M0001', 'M0002', 'M0003', 'M0004', 'M0005', 'M0006', 'M0007',
241
242
  'M0012', 'M0013', 'M0014', 'M0015', 'M0016', 'M0017', 'M0018',
242
- 'M0019', 'M0020', 'M0021', 'M0022',
243
+ 'M0019', 'M0020', 'M0021', 'M0022', 'M0023',
243
244
  'M0103', 'M0104'
244
245
 
245
246
  return send("handle_#{command_code.downcase}", arg, options)
@@ -474,6 +475,20 @@ module RSMP
474
475
  end
475
476
  end
476
477
 
478
+ def handle_m0023 arg, options={}
479
+ @node.verify_security_code 2, arg['securityCode']
480
+ timeout = arg['status'].to_i
481
+ unless timeout>=0 and timeout <= 65535
482
+ raise RSMP::MessageRejected.new "Timeout must be in the range 0-65535, got #{timeout}"
483
+ end
484
+ if timeout == 0
485
+ log "Dynamic bands timeout disabled", level: :info
486
+ else
487
+ log "Dynamic bands timeout set to #{timeout}min", level: :info
488
+ end
489
+ @dynamic_bands_timeout = timeout
490
+ end
491
+
477
492
  def handle_m0103 arg, options={}
478
493
  level = {'Level1'=>1,'Level2'=>2}[arg['status']]
479
494
  @node.change_security_code level, arg['oldSecurityCode'], arg['newSecurityCode']
data/lib/rsmp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RSMP
2
- VERSION = "0.17.2"
2
+ VERSION = "0.17.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsmp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.2
4
+ version: 0.17.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Tin