ansible4ozw 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ansible.rb +1 -0
- data/lib/ansible/version.rb +1 -1
- data/lib/ansible/zwave/zwave_value.rb +3 -3
- metadata +1 -1
data/lib/ansible.rb
CHANGED
data/lib/ansible/version.rb
CHANGED
@@ -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
|
|