Module: OpenHAB::Core::Things::ProfileCallback

Defined in:
lib/openhab/core/things/profile_callback.rb

Overview

Contains methods for profile's callback to forward commands between items and channels.

Instance Method Summary collapse

Instance Method Details

#handle_command(command) ⇒ void

This method returns an undefined value.

Forward the given command to the respective thing handler.

Parameters:



34
# File 'lib/openhab/core/things/profile_callback.rb', line 34

def_state_parsing_method(:handle_command, :command)

#send_command(command) ⇒ void

This method returns an undefined value.

Send a command to the framework.

Parameters:



41
# File 'lib/openhab/core/things/profile_callback.rb', line 41

def_state_parsing_method(:send_command, :command)

#send_update(state) ⇒ void

This method returns an undefined value.

Send a state update to the framework.

Parameters:



48
# File 'lib/openhab/core/things/profile_callback.rb', line 48

def_state_parsing_method(:send_update, :state)