Module: OpenHAB::Core::Actions

Included in:
DSL
Defined in:
lib/openhab/core/actions.rb,
lib/openhab/core/actions/exec.rb,
lib/openhab/core/actions/http.rb,
lib/openhab/core/actions/ping.rb,
lib/openhab/core/actions/audio.rb,
lib/openhab/core/actions/voice.rb,
lib/openhab/core/actions/ephemeris.rb,
lib/openhab/core/actions/notification.rb,
lib/openhab/core/actions/transformation.rb

Overview

Access to global actions.

All openHAB's actions including those provided by add-ons are available, notably:

From add-ons, e.g.:

Thing-specific actions can be accessed from the Thing object. See Thing#actions.

Defined Under Namespace

Classes: Audio, Ephemeris, Exec, HTTP, Notification, Ping, Transformation, Voice

Class Method Summary collapse

Class Method Details

.notify(msg, email: nil, icon: nil, tag: nil, severity: nil, id: nil, title: nil, on_click: nil, attachment: nil, buttons: nil) ⇒ Object

Deprecated.

Use Notification.send instead.



56
57
58
59
# File 'lib/openhab/core/actions.rb', line 56

def notify(*args, **kwargs)
  logger.warn("`notify` method is deprecated. Use `Notification.send` instead.")
  Notification.send(*args, **kwargs)
end