Farm alerts and notifications
An alert system fails in two ways: it stays silent when it matters, or it cries so often that everyone ignores it. Good rules avoid both.
An alert rule watches one reading and fires when it breaks a limit for long enough. Urvara has six kinds of rule, three severities, and a “must last” time that ignores short blips. A rule can also depend on a second reading. An open alert shows on the 3D farm and is sent by Telegram, webhook, email or a notification on your phone or computer. It closes by itself when the reading returns to normal.
The six kinds of rule
| Rule | Fires when | Use it for |
|---|---|---|
| Above | The value is over a limit | High temperature, overload |
| Below | The value is under a limit | Low tank, stopped pump |
| Outside a range | The value is under the low limit or over the high one | pH, temperature, voltage |
| No data for | Nothing arrived for a number of minutes | Dead sensors, flat batteries, lost links |
| Changes faster than | The value moved more than a limit within some minutes | Leaks, sudden heat |
| Differs from the design | The value is more than a percentage away from what the design predicts | A system that does not perform as planned |
Try a rule
This is a day of tank level readings with a morning refill, a short dip from a splash, and a leak in the afternoon. Move the limit and the time and see when the alert opens and closes.
Severity and “must last”
- Every rule is info, warning or critical.
- Must last is how long the limit must stay broken before the alert opens, from none up to 24 hours.
- One rule has at most one open alert. It does not send a new message for every reading.
- When the reading returns to normal the alert closes and a “resolved” message is sent.
A rule on two readings
Any rule except “No data for” can carry a condition on a second reading. When you make a rule, change Always (no second reading) to Only while another reading is above or below a value.
| Detail | |
|---|---|
| Example | Flow below 5 L/min, only while pump current is above 1 A: the pump is on but no water moves |
| When it is judged | When either of the two readings arrives |
| The alert text | “Flow is 0.4 L/min, below the limit of 5 L/min, while Pump current is 2.1 A.” |
| A silent second reading | If it has sent nothing for 15 minutes, the condition counts as not met and the rule does not fire |
| Must last | Works with these rules too |
| Changing the condition | It is chosen when the rule is made. To change it, remove the rule and add it again |
How alerts reach you
| Where | How |
|---|---|
| In the app | A list on the Live farm screen and a count in the header |
| On the 3D farm | The value label on the component turns amber or red |
| Telegram | A message from your own Telegram bot |
| Webhook | A JSON message to any address, for your own systems and chat tools |
| A plain message to any address | |
| Notification on this device | A notification from your browser, on a computer or a phone, even when Urvara is closed |
| Text message (SMS) | To a mobile number, where the service has SMS turned on. It starts on critical alerts only, with at most 30 messages a day to one number |
Each destination has its own lowest severity, so your phone can get critical alerts only while a team channel gets everything. A test button sends a sample.
Notifications on a device work in Chrome, Edge and Firefox on computers and Android, and in Safari on a Mac. On an iPhone or iPad, add Urvara to the Home Screen first; that is Apple’s rule. Each browser or device is turned on separately.
Let the AI suggest the rules
After a few days of readings, Urvara can look at what is normal for each sensor and propose rules that fit: the limits, the delay and the reason for each. You approve them one by one. Proposals the agent files in chat can apply by themselves if you choose “Add and tighten”. See AI farm monitoring.
AI watch: alerts without a rule
Turn on AI watch on the Rules tab and the AI reviews the last 24 hours of every reading on a timer, from every 15 minutes to once a day. It looks for what fixed rules miss: a slow drift, two readings that disagree, a sensor stuck on one value. Each finding becomes an alert titled “AI watch: …”, and it closes by itself when a later review no longer reports it.
These alerts are info or warning, never critical. AI watch is not second by second, so fixed rules are still what catches a sudden fault. More in AI farm monitoring.
- Six kinds of rule with three severities and a delay.
- Rules on two readings, such as “the pump draws current but there is no flow”.
- Alerts that close by themselves, with a “resolved” message.
- Alerts by Telegram, webhook, email and notifications on your phone or computer, and by text message where the service has SMS turned on.
- Rule proposals from the readings’ own history.
- AI watch: the AI reviews the last 24 hours of readings on a timer, as often as every 15 minutes, and raises an alert for what fixed rules miss.
- Ready-made rule sets you can apply in one step for each kind of farm.
A notification is sent once and is not retried if the destination is down. For anything critical, use two destinations.
Rules on two readings, automations, timed plant checks, AI watch and the sending of text messages and push notifications are covered by automated tests and were tried in the running app with simulated devices. Push notifications have not yet been tried end to end in a real phone or desktop browser; only the part of the service that signs and sends them was tested.
Questions people ask
How do I stop false alarms from farm sensors?
Give each rule a “must last” time so a single odd reading is ignored, set the limit from what the sensor really reads on a normal day rather than from a textbook, and use a “no data” rule to tell a dead sensor from a real problem.
Can Urvara send alerts to WhatsApp or Slack?
Not directly. Urvara sends to Telegram, to email, to a webhook, as a notification on your device, and by text message where the service has SMS turned on. A webhook can be pointed at a service that passes the message on to another chat tool.
Does an alert switch equipment off?
Not by itself. An alert tells people. To switch something from a reading, make an automation: it switches one output on or off when a reading crosses a value. There is also a safety check: Urvara refuses to switch an output on while the farm has an open critical alert, and that holds for automations too.
Last checked against the product: .