openHAB Trigger
AI-generatedSummary
Listen to the openHAB Event Bus via WebSocket and emit events when matching messages are received according to user-defined filters.
Inputs
- Topic Filters — Provide a comma-separated list of topic filters to receive specific event topics, supporting wildcards, regular expressions, and exclusions prefixed with !.
- Type Filters — Specify a comma-separated list of event types to subscribe to (e.g., ItemCommandEvent). Leave empty to receive all event types.
- Source Filters — Supply a comma-separated list of event sources to exclude from triggering the node; the node’s own source is always excluded automatically to prevent loops.
Output shape
a stream of event messages from openHAB matching the filters, each emitted individually as JSON objects containing full event details including parsed payload and timestamp
Filtering is applied by sending subscription filters to the openHAB WebSocket server after connection. The node automatically manages connection, heartbeat, and reconnection errors. Events from the node's own source are excluded to avoid event loops.
Examples
Example 1: Receive state change events for specific items except one
Set Topic Filters to include desired items and exclude one with a prefixed !, set Type Filters to 'ItemStateChangedEvent', and leave Source Filters empty.