Skip to main content

General

Rules & Automation

Fix issues with rules not triggering or actions failing.

Rule Not Triggering

Symptoms

  • Rule is active but notifications never arrive
  • Action history shows no executions

Diagnostic Checklist

Verify Rule is Active

Navigate to Automation > Rules and ensure:

  • Rule status shows Active (green toggle)
  • Rule is not in Test Mode (test mode only logs, doesn't execute)

Check Criteria Syntax

Open the rule and review the Criteria expression. Common mistakes:

MistakeCorrection
[Payload][Key = 'Temp'] AND [Payload][Value > 50][Payload][Key = 'Temp' AND NumericValue > 50] (same bracket)
Key = TemperatureKey = 'Temperature' (quotes required)
Value > 100NumericValue > 100 (use NumericValue for numeric comparisons)

Verify Data is Flowing

Ensure the device generating data is active and connected. Check UNS Explorer for live values.

Check Rate Limiting

If rate limiting is enabled (e.g., max 10 actions per 60 seconds), additional triggers are ignored.


Expression Errors

"Invalid expression" when saving

The criteria parser couldn't understand the expression. Check:

  1. Balanced brackets: Every [ must have a matching ]
  2. Correct operators: Use AND, OR, NOT (not &&, ||)
  3. String quotes: Use single quotes for strings: 'value'

"Column not found" error

You referenced a property that doesn't exist in the event type:

Event TypeAvailable Properties
DataReceivedPayload, MetaData, Attributes, Topic
StatusChangedDeviceId, DeviceName, CurrentConnectionStatus, PreviousConnectionStatus
LogReceivedMessage, Level, Category, Source, Time
MetricsReceivedDevice, TotalRequests, FailedRequests, AverageResponseTime, etc.

See Expression Syntax Reference for complete list.


Actions Not Executing

Notification Not Sent

  1. Check Integration Configuration: Navigate to Integrations > Notifications and verify the channel (Email, Slack, etc.) is correctly configured
  2. Test the Integration: Use the Test button to send a test message
  3. Review Action History: Open the rule and check the History tab for error messages

Common Action Errors

ErrorSolution
Channel not configuredAdd the notification channel in Integrations settings
Rate limitedReduce rule trigger frequency or increase rate limit
Authentication failedUpdate API keys or tokens in integration config

Anomaly Detection Not Working

Model Not Training

Anomaly detection requires historical data to build a baseline.

  • Minimum Data: At least 100 data points for statistical significance
  • Warm-up Period: Allow 1-2 hours of data collection before anomalies are detected

Too Many False Positives

Adjust the Sensitivity threshold:

  • Lower value = fewer alerts (only extreme anomalies)
  • Higher value = more alerts (minor deviations flagged)
lightbulb
Seasonal Patterns

If your data has daily/weekly patterns (e.g., higher values during work hours), the model will adapt over time. Allow 1-2 weeks for pattern learning.


See Also