Skip to content

Commit

Permalink
Added Generic Event Trigger
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Cumming <[email protected]>
  • Loading branch information
mjcumming committed Oct 7, 2023
1 parent c5ab1ec commit c5d9ea8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion triggers.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ const DateTimeTrigger = (itemOrName, timeOnly = false, triggerName) =>
* @param {string|array} eventTypes Specifies the event type(s) to match, e.g. ItemStateChangedEvent, ItemAddedEvent, ItemRemovedEvent, ItemUpdatedEvent, ItemCommandEvent, etc
* @param {string} [triggerName] the optional name of the trigger to create
*/
const GenericTriggerEvent = (eventTopic, eventSource, eventTypes, triggerName) =>
const GenericEventTrigger = (eventTopic, eventSource, eventTypes, triggerName) =>
_createTrigger('core.GenericEventTrigger', triggerName, {
topic: eventTopic,
source: eventSource,
Expand Down Expand Up @@ -402,6 +402,7 @@ module.exports = {
ThingStatusChangeTrigger,
SystemStartlevelTrigger,
GenericCronTrigger,
GenericEventTrigger
TimeOfDayTrigger,
DateTimeTrigger,
PWMTrigger,
Expand Down

0 comments on commit c5d9ea8

Please sign in to comment.