Package org.openhab.core.thing.events
Class ChannelTriggeredEvent
java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.thing.events.ChannelTriggeredEvent
- All Implemented Interfaces:
Event
ChannelTriggeredEvent
s can be used to deliver triggers through the openHAB event bus.
Trigger events must be created with the ThingEventFactory
.- Author:
- Moritz Kammerer - Initial contribution
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
ChannelTriggeredEvent
(String topic, String payload, @Nullable String source, String event, ChannelUID channel) Constructs a new thing trigger event. -
Method Summary
Methods inherited from class org.openhab.core.events.AbstractEvent
equals, getPayload, getSource, getTopic, hashCode
-
Field Details
-
TYPE
The thing trigger event type.
-
-
Constructor Details
-
ChannelTriggeredEvent
protected ChannelTriggeredEvent(String topic, String payload, @Nullable String source, String event, ChannelUID channel) Constructs a new thing trigger event.- Parameters:
topic
- the topic. The topic includes the thing UID, seeThingEventFactory.CHANNEL_TRIGGERED_EVENT_TOPIC
payload
- the payload. Contains a serializedThingEventFactory.TriggerEventPayloadBean
.source
- the sourceevent
- the eventchannel
- the channel which triggered the event
-
-
Method Details