Class: OpenHAB::Core::Types::UnDefType

Inherits:
Object
  • Object
show all
Includes:
State
Defined in:
lib/openhab/core/types/un_def_type.rb

Overview

There are situations when item states do not have any defined value. This might be because they have not been initialized yet (never received an state update so far) or because their state is ambiguous (e.g. a group item with members whose states do not match will be NULL).

Constant Summary collapse

NULL =

Null State

UNDEF =

Undef State

Instance Method Summary collapse

Methods included from Type

#==, #eql?

Instance Method Details

#null?true, false

Check if self == NULL

Returns:

  • (true, false)


# File 'lib/openhab/core/types/un_def_type.rb', line 23

#undef?true, false

Check if self == UNDEF

Returns:

  • (true, false)


# File 'lib/openhab/core/types/un_def_type.rb', line 27