openhab-scripting 5.12.0 → 5.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openhab/core/{uid.rb → abstract_uid.rb} +1 -1
- data/lib/openhab/core/sitemaps/provider.rb +35 -11
- data/lib/openhab/core/things/abstract_description_type.rb +21 -0
- data/lib/openhab/core/things/channel.rb +9 -0
- data/lib/openhab/core/things/channel_definition.rb +61 -0
- data/lib/openhab/core/things/channel_group_definition.rb +51 -0
- data/lib/openhab/core/things/channel_group_type.rb +45 -0
- data/lib/openhab/core/things/channel_group_type_uid.rb +37 -0
- data/lib/openhab/core/things/channel_group_uid.rb +25 -0
- data/lib/openhab/core/things/channel_type.rb +74 -0
- data/lib/openhab/core/things/channel_type_uid.rb +53 -0
- data/lib/openhab/core/things/channel_uid.rb +19 -2
- data/lib/openhab/core/things/thing.rb +11 -2
- data/lib/openhab/core/things/thing_type.rb +62 -0
- data/lib/openhab/core/things/thing_type_uid.rb +54 -0
- data/lib/openhab/core/things/thing_uid.rb +30 -0
- data/lib/openhab/core/things/uid.rb +25 -0
- data/lib/openhab/core/things.rb +1 -3
- data/lib/openhab/dsl/rules/builder.rb +46 -8
- data/lib/openhab/dsl/rules/triggers/watch/watch_handler.rb +1 -0
- data/lib/openhab/dsl/sitemaps/builder.rb +199 -57
- data/lib/openhab/dsl/things/builder.rb +52 -18
- data/lib/openhab/dsl/version.rb +1 -1
- data/lib/openhab/dsl.rb +4 -4
- metadata +15 -3
data/lib/openhab/dsl/version.rb
CHANGED
data/lib/openhab/dsl.rb
CHANGED
@@ -61,13 +61,13 @@ module OpenHAB
|
|
61
61
|
end
|
62
62
|
|
63
63
|
# (see Rules::Builder#scene)
|
64
|
-
def scene(name = nil, id: nil, **kwargs, &block)
|
65
|
-
rules.build { scene(name, id: id, **kwargs, &block) }
|
64
|
+
def scene(name = nil, description: nil, id: nil, tag: nil, tags: nil, **kwargs, &block)
|
65
|
+
rules.build { scene(name, description: description, id: id, tag: tag, tags: tags, **kwargs, &block) }
|
66
66
|
end
|
67
67
|
|
68
68
|
# (see Rules::Builder#script)
|
69
|
-
def script(name = nil, id: nil, **kwargs, &block)
|
70
|
-
rules.build { script(name, id: id, **kwargs, &block) }
|
69
|
+
def script(name = nil, description: nil, id: nil, tag: nil, tags: nil, **kwargs, &block)
|
70
|
+
rules.build { script(name, description: description, id: id, tag: tag, tags: tags, **kwargs, &block) }
|
71
71
|
end
|
72
72
|
|
73
73
|
# @!group Rule Support
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openhab-scripting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian O'Connell
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2024-01-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -358,6 +358,7 @@ extensions: []
|
|
358
358
|
extra_rdoc_files: []
|
359
359
|
files:
|
360
360
|
- lib/openhab/core.rb
|
361
|
+
- lib/openhab/core/abstract_uid.rb
|
361
362
|
- lib/openhab/core/actions.rb
|
362
363
|
- lib/openhab/core/actions/audio.rb
|
363
364
|
- lib/openhab/core/actions/ephemeris.rb
|
@@ -432,7 +433,15 @@ files:
|
|
432
433
|
- lib/openhab/core/script_handling.rb
|
433
434
|
- lib/openhab/core/sitemaps/provider.rb
|
434
435
|
- lib/openhab/core/things.rb
|
436
|
+
- lib/openhab/core/things/abstract_description_type.rb
|
435
437
|
- lib/openhab/core/things/channel.rb
|
438
|
+
- lib/openhab/core/things/channel_definition.rb
|
439
|
+
- lib/openhab/core/things/channel_group_definition.rb
|
440
|
+
- lib/openhab/core/things/channel_group_type.rb
|
441
|
+
- lib/openhab/core/things/channel_group_type_uid.rb
|
442
|
+
- lib/openhab/core/things/channel_group_uid.rb
|
443
|
+
- lib/openhab/core/things/channel_type.rb
|
444
|
+
- lib/openhab/core/things/channel_type_uid.rb
|
436
445
|
- lib/openhab/core/things/channel_uid.rb
|
437
446
|
- lib/openhab/core/things/item_channel_link.rb
|
438
447
|
- lib/openhab/core/things/links/provider.rb
|
@@ -441,6 +450,10 @@ files:
|
|
441
450
|
- lib/openhab/core/things/proxy.rb
|
442
451
|
- lib/openhab/core/things/registry.rb
|
443
452
|
- lib/openhab/core/things/thing.rb
|
453
|
+
- lib/openhab/core/things/thing_type.rb
|
454
|
+
- lib/openhab/core/things/thing_type_uid.rb
|
455
|
+
- lib/openhab/core/things/thing_uid.rb
|
456
|
+
- lib/openhab/core/things/uid.rb
|
444
457
|
- lib/openhab/core/timer.rb
|
445
458
|
- lib/openhab/core/types.rb
|
446
459
|
- lib/openhab/core/types/comparable_type.rb
|
@@ -464,7 +477,6 @@ files:
|
|
464
477
|
- lib/openhab/core/types/type.rb
|
465
478
|
- lib/openhab/core/types/un_def_type.rb
|
466
479
|
- lib/openhab/core/types/up_down_type.rb
|
467
|
-
- lib/openhab/core/uid.rb
|
468
480
|
- lib/openhab/core/value_cache.rb
|
469
481
|
- lib/openhab/core_ext.rb
|
470
482
|
- lib/openhab/core_ext/between.rb
|