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)
72 |
# File 'lib/openhab/dsl/rules/terse.rb', line 72 def_terse_rule(:changed) |
#channel ⇒ 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(:channel) |
#channel_linked ⇒ 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(:channel_linked) |
#channel_unlinked ⇒ 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(:channel_unlinked) |
#cron ⇒ 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(:cron) |
#every ⇒ 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(:every) |
#item_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(:item_added) |
#item_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(:item_removed) |
#item_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(:item_updated) |
#on_start ⇒ 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(:on_start) |
#received_command ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
82 |
# File 'lib/openhab/dsl/rules/terse.rb', line 82 def_terse_rule(:received_command) |
#thing_added ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
83 |
# File 'lib/openhab/dsl/rules/terse.rb', line 83 def_terse_rule(:thing_added) |
#thing_removed ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
85 |
# File 'lib/openhab/dsl/rules/terse.rb', line 85 def_terse_rule(:thing_removed) |
#thing_updated ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
84 |
# File 'lib/openhab/dsl/rules/terse.rb', line 84 def_terse_rule(:thing_updated) |
#updated ⇒ Object
*args, id: nil, name :nil, description: nil, tag: nil, tags: nil, on_load: false, **kwargs, &block)
86 |
# File 'lib/openhab/dsl/rules/terse.rb', line 86 def_terse_rule(:updated) |