Live monitoring · Alerts, control and AI

Remote on/off control of pumps and valves

Switching a pump from far away is easy to build and easy to get wrong. The hard part is knowing that it really switched, and that it will stop.

In short

Urvara can send on and off commands to outputs you mark as switchable. Control is off until you turn it on for the farm. Every command must be confirmed by the device within 60 seconds, an output can be given a longest run time, and nothing can be switched on while a critical alert is open. An automation can send the same commands at a time of day or when a reading crosses a value, under the same checks.

The checks on every command

  1. Control is off by default. You turn it on for one farm, and confirm that you mean it.
  2. Only marked outputs. Each output must be marked as one that may be switched from the app.
  3. Interlock. Switching on is refused while the farm has an open critical alert. Switching off is never blocked by an alert.
  4. The device must be reachable. A device connected directly must be online. A device behind a gateway gets the command on the gateway’s next check, every 3 seconds.
  5. Confirmation. The device must report the new state within 60 seconds. If it does not, the command expires and a critical alert is raised.
  6. Longest run time. An output can be set to switch off after a number of seconds, up to 24 hours.

What can be switched

DeviceCan it be switched?
A board on MQTT, direct to UrvaraYes
A board on MQTT behind the Urvara gatewayYes
A device that only sends by HTTPNo. It has no way to receive a command
Modbus, Zigbee and LoRaWAN devicesNo. Those routes carry readings only

Schedules and automations

On the Automate tab of Live farm you make automations. Each one switches one output on or off.

SettingWhat it does
At a time of dayRuns at a time you set, on the days of the week you choose, in the time zone of the browser that made it
When a reading crosses a valueRuns when a reading goes above or below a value, with an optional “must last” time. It runs once each time the reading crosses, and again only after the reading has gone back
Then switch back afterOptional. Switches the output the other way after a time from 10 seconds to 24 hours
Run it once nowRuns the automation by hand, after you confirm
  • An automation obeys the same checks as a person. Control must be on for the farm, the output must be marked as switchable, and nothing is switched on while a critical alert is open. Switching off is always allowed.
  • If an automation is refused or fails, an alert “Automation did not run” is raised with the reason. It clears on the next run that works.
  • If switching back fails, a critical alert “Automation could not switch back” is raised.
  • A timed automation that is more than 5 minutes late, for example while the service was restarting, is skipped for that day.
  • Each automation shows its last run and the result, and can be turned off with a tick box or removed.
  • A farm can have up to 50 automations.

Every setting is in the automations documentation.

Keep a safety in the device

A network can fail while a pump is on. Build the last line of safety into the device itself: a float switch that cuts the pump, a timer in the firmware, a relay that starts in the off state after a power cut. The ESPHome configuration Urvara writes sets relays to start off.

Who can switch

You, signed in to your account, and the automations you made. The AI agent cannot switch equipment, cannot turn control on, and cannot create or change an automation. It can see the automations you have.

Works today
  • On and off commands with confirmation and time-out.
  • A longest run time for each output.
  • An interlock on open critical alerts.
  • Schedules and automations that switch one output on or off, at a time of day or when a reading crosses a value.

Live farm has been tested with simulated devices on every route except USB. It has not yet been run with physical sensors in the field, so treat pin numbers, calibration values and radio set-ups as things to check on your own hardware.

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 control an irrigation pump remotely?

Put the pump’s contactor on a relay driven by a small networked board, and use software that sends the command and checks that the board confirms it. In Urvara the board connects by MQTT, you mark its output as switchable, and each command must be confirmed within 60 seconds. An automation can then run the pump at a time of day or when a reading crosses a value.

What happens if the internet drops while the pump is on?

The command to switch off cannot arrive until the link is back. That is why the device needs its own safety, such as a float switch or a run timer in its firmware. Urvara raises an alert when a command is not confirmed.

Last checked against the product: .

Design your farm before you build it.

Open Urvara in your browser. Lay out the land, connect the water and the power, and see what the checks say.