Class ItemCommandEvent

  • All Implemented Interfaces:

    public class ItemCommandEvent
    extends ItemEvent
    ItemCommandEvents can be used to deliver commands through the openHAB event bus. Command events must be created with the ItemEventFactory.
    Stefan Bußweiler - Initial contribution
    • Field Detail

      • TYPE

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

      • ItemCommandEvent

        protected ItemCommandEvent​(String topic,
                                   String payload,
                                   String itemName,
                                   Command command,
                                   @Nullable String source)
        Constructs a new item command event object.
        topic - the topic
        payload - the payload
        itemName - the item name
        command - the command
        source - the source, can be null
    • Method Detail

      • getType

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

        public Command getItemCommand()
        Gets the item command.
        the item command