Skip to main content

Alert Widget

✦ Special

The Alert widget monitors a virtual pin value and displays a colored alert banner inside the dashboard when a threshold condition is met. Unlike the Notification system (which sends server-generated push or email alerts), the Alert widget is purely visual — a real-time in-dashboard indicator that requires no firmware changes.

Default size: 3 × 2 grid cells


Configuration

PropertyTypeDefaultDescription
conditiongt | lt | eq | gte | lte | neqgtComparison operator
thresholdnumber80Threshold value to compare against
severityinfo | warning | errorwarningAlert color/style
messagestringAlert triggeredMessage displayed when condition is true
acknowledgeButtonbooleanfalseShow "Acknowledge" button to dismiss the alert
DevicedeviceThe device to monitor
PinV0V255The virtual pin to watch
LabelstringWidget label

Conditions

Condition codeMeaning
gtValue > threshold
ltValue < threshold
gteValue threshold
lteValue threshold
eqValue = threshold
neqValue threshold

Severity styles

SeverityColorUse for
infoBlue #3B82F6Informational state changes
warningAmber #F59E0BElevated but not critical
errorRed #EF4444Critical / action required

Firmware example

No firmware changes needed — just push the pin value normally:

void loop() {
Vwire.run();

float temp = readTemperature();
Vwire.virtualSend(V5, temp); // Alert widget is configured to trigger when temp > 85
delay(10000);
}

The Alert widget watches V5 on the configured device and shows the alert banner whenever temp > 85.


Alert widget vs Notification system

FeatureAlert WidgetServer NotificationsDevice notify()
TriggerClient-side (browser)Server-side (always on)Device firmware
DeliveryDashboard banner onlyPush, email, in-app bellPush, email, in-app bell
Requires open dashboard
Firmware changes needed
ConfigurationWidget settingsNotification rules panelIn firmware code

For push notifications and emails sent directly from your device code, see Alerts & Notifications.