Class ItemStateEvent

  • All Implemented Interfaces:

    public class ItemStateEvent
    extends ItemEvent
    ItemStateEvents can be used to deliver item status updates through the openHAB event bus. State events must be created with the ItemEventFactory.
    Stefan Bußweiler - Initial contribution
    • Field Detail

      • TYPE

        public static final String TYPE
        The item state event type.
    • Constructor Detail

      • ItemStateEvent

        protected ItemStateEvent​(String topic,
                                 String payload,
                                 String itemName,
                                 State itemState,
                                 @Nullable String source)
        Constructs a new item state event.
        topic - the topic
        payload - the payload
        itemName - the item name
        itemState - the item state
        source - the source, can be null
    • Method Detail

      • getType

        public String getType()
        Description copied from interface: Event
        Gets the event type.
        the event type
      • getItemState

        public State getItemState()
        Gets the item state.
        the item state