Module: OpenHAB::DSL::Actions

Defined in:
lib/rspec/openhab/actions.rb

Instance Method Summary collapse

Instance Method Details

#notify(msg, email: nil) ⇒ Object

redefine these to do nothing so that rules won’t fail



7
8
9
# File 'lib/rspec/openhab/actions.rb', line 7

def notify(msg, email: nil) # rubocop:disable Lint/UnusedMethodArgument:
  logger.debug("notify: #{msg}")
end

#play_sound(filename, sink: nil, volume: nil) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument:



15
16
17
# File 'lib/rspec/openhab/actions.rb', line 15

def play_sound(filename, sink: nil, volume: nil) # rubocop:disable Lint/UnusedMethodArgument:
  logger.debug("play_sound: #{filename}")
end

#say(text, voice: nil, sink: nil, volume: nil) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument:



11
12
13
# File 'lib/rspec/openhab/actions.rb', line 11

def say(text, voice: nil, sink: nil, volume: nil) # rubocop:disable Lint/UnusedMethodArgument:
  logger.debug("say: #{text}")
end