ansible4ozw 0.0.4 → 0.0.5

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.
@@ -33,6 +33,7 @@ require 'ansible/config'
33
33
  # note: I would like to convert this to ansible/device
34
34
  require 'ansible/ansible_device'
35
35
  require 'ansible/transceiver'
36
+ require 'ansible/ansible_value'
36
37
 
37
38
  # ansible extensions
38
39
  require 'ansible/knx'
@@ -1,3 +1,3 @@
1
1
  module Ansible
2
- VERSION = "0.0.4".freeze
2
+ VERSION = "0.0.5".freeze
3
3
  end
@@ -134,7 +134,7 @@ module Ansible
134
134
  return(false) unless respond_to? :read_operation
135
135
  result = @@transceiver.manager_send(read_operation, self)
136
136
  if result and result.retval then
137
- puts "#{self}.read_value() result == #{result.o_value}, Refreshed=#{RefreshedNodes[@_nodeId]}"
137
+ puts "#{Time.now} #{self}.read_value() result == #{result.o_value}, Refreshed=#{RefreshedNodes[@_nodeId]}"
138
138
  update(result.o_value)
139
139
  return(true)
140
140
  else
@@ -159,12 +159,12 @@ module Ansible
159
159
 
160
160
  # return a reasonable string representation of the ZWave value
161
161
  def to_s
162
- return "ZWaveValue[n:#{@_nodeId} g:#{@_genre} cc:#{@_commandClassId} i:#{@_instance} vi:#{@_valueIndex} t:#{@_type}]==#{@current_value}(#{@current_value.class})"
162
+ return "#{Time.now} ZWaveValue[n:#{@_nodeId} g:#{@_genre} cc:#{@_commandClassId} i:#{@_instance} vi:#{@_valueIndex} t:#{@_type}]==#{@current_value}(#{@current_value.class})"
163
163
  end
164
164
 
165
165
  # fetch all available ValueID info from OpenZWave
166
166
  def explain
167
- return(%Q{
167
+ return(%Q{#{Time.now}
168
168
  Value Label: #{ @@transceiver.manager_send(:GetValueLabel, self)}
169
169
  Value Help: #{ @@transceiver.manager_send(:GetValueHelp, self)}
170
170
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ansible4ozw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: