openhab-scripting 3.7.0 → 3.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openhab/dsl/rules/automation_rule.rb +3 -3
- data/lib/openhab/dsl/rules/rule_config.rb +5 -5
- data/lib/openhab/dsl/time_of_day.rb +3 -3
- data/lib/openhab/dsl/types/datetime.rb +1 -1
- data/lib/openhab/dsl/types/quantity.rb +1 -1
- data/lib/openhab/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce4c09125467556cead8a8ddbe0e2d24c087dcb1166bcc25d5e3ba0feb453f73
|
4
|
+
data.tar.gz: 9f06de9ff62504c2722d09d040d379e28dc2d8015e8191e1011825e48e6ef8a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0466716357e5c9d895dc097a7b93b5592c4c40940cdb373a412426698ca9b892546f04eb26ad702586109621b057383bea82accbf2e9cf9a19135f578fc2e2e
|
7
|
+
data.tar.gz: 825609752e1294f3bc0fc03167307b52c6518a1745176d7bc7d61c916be5f1b5234b2c60342bf5603b6031241e65fcc9c4ba9f23d57e35327dc4b71583f650e9
|
@@ -106,10 +106,10 @@ module OpenHAB
|
|
106
106
|
return true if check_to(trigger_delay, new_state)
|
107
107
|
|
108
108
|
logger.trace("Skipped execution of rule '#{name}' because to state #{new_state}"\
|
109
|
-
|
109
|
+
" does not equal specified state(#{trigger_delay.to})")
|
110
110
|
else
|
111
111
|
logger.trace("Skipped execution of rule '#{name}' because old state #{old_state}"\
|
112
|
-
|
112
|
+
" does not equal specified state(#{trigger_delay.from})")
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
@@ -237,7 +237,7 @@ module OpenHAB
|
|
237
237
|
return true if @between.cover? now
|
238
238
|
|
239
239
|
logger.trace("Skipped execution of rule '#{name}' because the current time #{now} "\
|
240
|
-
|
240
|
+
"is not between #{@between.begin} and #{@between.end}")
|
241
241
|
else
|
242
242
|
logger.trace("Skipped execution of rule '#{name}' because of guard #{@guard}")
|
243
243
|
end
|
@@ -140,11 +140,11 @@ module OpenHAB
|
|
140
140
|
#
|
141
141
|
def inspect
|
142
142
|
"Name: (#{name}) " \
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
143
|
+
"Triggers: (#{triggers}) " \
|
144
|
+
"Run blocks: (#{run}) " \
|
145
|
+
"on_start: (#{on_start?}) " \
|
146
|
+
"Trigger Waits: #{trigger_delays} " \
|
147
|
+
"Trigger UIDs: #{triggers.map(&:id).join(', ')}"
|
148
148
|
end
|
149
149
|
end
|
150
150
|
end
|
@@ -153,9 +153,9 @@ module OpenHAB
|
|
153
153
|
other_second_of_day = to_second_of_day(other)
|
154
154
|
logger.trace do
|
155
155
|
"SOD(#{sod}) "\
|
156
|
-
|
157
|
-
|
158
|
-
|
156
|
+
"other SOD(#{other_second_of_day}) "\
|
157
|
+
"Other Class (#{other.class}) "\
|
158
|
+
"Result (#{sod <=> other_second_of_day})"
|
159
159
|
end
|
160
160
|
sod <=> other_second_of_day
|
161
161
|
end
|
@@ -152,7 +152,7 @@ module OpenHAB
|
|
152
152
|
# @return [Float] Number of seconds since the Epoch, with nanosecond presicion
|
153
153
|
#
|
154
154
|
def to_f
|
155
|
-
zoned_date_time.to_epoch_second + zoned_date_time.nano / 1_000_000_000
|
155
|
+
zoned_date_time.to_epoch_second + (zoned_date_time.nano / 1_000_000_000)
|
156
156
|
end
|
157
157
|
|
158
158
|
#
|
@@ -147,7 +147,7 @@ module OpenHAB
|
|
147
147
|
define_method(operation) do |other|
|
148
148
|
logger.trace do
|
149
149
|
"Executing math operation '#{operation}' on quantity #{inspect} "\
|
150
|
-
|
150
|
+
"with other type #{other.class} and value #{other.inspect}"
|
151
151
|
end
|
152
152
|
|
153
153
|
a, b = to_qt(coerce(other).reverse)
|
data/lib/openhab/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openhab-scripting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.7.
|
4
|
+
version: 3.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian O'Connell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|