Module: OpenHAB::DSL::Rules::Terse
- Included in:
- OpenHAB::DSL, Builder
- Defined in:
- lib/openhab/dsl/rules/terse.rb
Overview
If you have a single trigger and execution block, you can use a terse rule: All parameters to the trigger are passed through, and an optional ‘name:` parameter is added.
Instance Method Summary collapse
-
#changed ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block).
-
#channel ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block).
-
#channel_linked ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block).
-
#channel_unlinked ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block).
-
#cron ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block).
-
#every ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block).
-
#item_added ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block).
-
#item_removed ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block).
-
#item_updated ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block).
-
#on_start ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block).
-
#received_command ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block).
-
#thing_added ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block).
-
#thing_removed ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block).
-
#thing_updated ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block).
-
#updated ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block).
Instance Method Details
#changed ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
67 |
# File 'lib/openhab/dsl/rules/terse.rb', line 67 def_terse_rule(:changed) |
#channel ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
68 |
# File 'lib/openhab/dsl/rules/terse.rb', line 68 def_terse_rule(:channel) |
#channel_linked ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
69 |
# File 'lib/openhab/dsl/rules/terse.rb', line 69 def_terse_rule(:channel_linked) |
#channel_unlinked ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
70 |
# File 'lib/openhab/dsl/rules/terse.rb', line 70 def_terse_rule(:channel_unlinked) |
#cron ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
71 |
# File 'lib/openhab/dsl/rules/terse.rb', line 71 def_terse_rule(:cron) |
#every ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
72 |
# File 'lib/openhab/dsl/rules/terse.rb', line 72 def_terse_rule(:every) |
#item_added ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
73 |
# File 'lib/openhab/dsl/rules/terse.rb', line 73 def_terse_rule(:item_added) |
#item_removed ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
75 |
# File 'lib/openhab/dsl/rules/terse.rb', line 75 def_terse_rule(:item_removed) |
#item_updated ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
74 |
# File 'lib/openhab/dsl/rules/terse.rb', line 74 def_terse_rule(:item_updated) |
#on_start ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
76 |
# File 'lib/openhab/dsl/rules/terse.rb', line 76 def_terse_rule(:on_start) |
#received_command ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
77 |
# File 'lib/openhab/dsl/rules/terse.rb', line 77 def_terse_rule(:received_command) |
#thing_added ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
78 |
# File 'lib/openhab/dsl/rules/terse.rb', line 78 def_terse_rule(:thing_added) |
#thing_removed ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
80 |
# File 'lib/openhab/dsl/rules/terse.rb', line 80 def_terse_rule(:thing_removed) |
#thing_updated ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
79 |
# File 'lib/openhab/dsl/rules/terse.rb', line 79 def_terse_rule(:thing_updated) |
#updated ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
81 |
# File 'lib/openhab/dsl/rules/terse.rb', line 81 def_terse_rule(:updated) |