Rule examples
Each example shows what you put in the IF, THEN and ON RESET fields. For the steps in the app, see Create a rule. Reading names change a little from device to device.
The limits in the examples are only examples. Use the limits that apply to your site and your products.
The fridge gets warm
Section titled “The fridge gets warm”For a temperature logger, for example HAM ThermoSenseX2.
| Field | Value |
|---|---|
| IF | Fridge: Temperature > 8 |
| FOR | 15 minutes |
| THEN | Notify me (App) and Email me |
| ON RESET | Notify me (App) |
The FOR time ignores a short door opening and the defrost cycle. For a freezer, make a second rule with its own limit, for example > -15.
Power cut
Section titled “Power cut”A device on mains power stops sending data when the power goes off. The same happens when the router goes off. A connection rule alerts you for both.
| Field | Value |
|---|---|
| IF | Device: Connection = Disconnected |
| FOR | 15 minutes |
| THEN | Notify me (App) and Send an SMS |
| ON RESET | Notify me (App) |
A push alert arrives only if your phone has internet. If the power also goes off where you are, an SMS or a call is safer. See Get an alert when a device goes offline.
Water leak
Section titled “Water leak”For the HAM BLE Water Leak Sensor.
| Field | Value |
|---|---|
| IF | Sensor: Leak = yes |
| FOR | 0 minutes |
| THEN | Notify me (App) and Make a phonecall |
| ON RESET | Notify me (App) |
A leak needs a fast response. That is why the FOR time is 0 and the action is a call.
The door stays open
Section titled “The door stays open”For a door contact, for example the HAM BLE Magnetic Contact.
| Field | Value |
|---|---|
| IF | Door: Magnet = open |
| FOR | 5 minutes |
| THEN | Notify me (App) |
For a cold room, you can add a second action that turns off the fan or the air conditioner. See What a rule does: alert or command.
The vehicle leaves an area
Section titled “The vehicle leaves an area”For a GPS tracker.
| Field | Value |
|---|---|
| IF | Vehicle: Location (geofence) outside, radius 200 m around the warehouse |
| THEN | Send an SMS |
| ON RESET | Notify me (App) with the message “The vehicle is back” |
Yard light at night
Section titled “Yard light at night”A light turns on when a contact or a motion sensor becomes active, only at night. It turns off 2 minutes later.
| Field | Value |
|---|---|
| IF | Input: the contact is active |
| and | Time of Day between 20:00 and 06:30 |
| THEN | Yard light: ON |
| ON RESET | Yard light: OFF, AFTER 2 minutes |
Daily energy above a limit
Section titled “Daily energy above a limit”For an energy meter, for example the HAM DinMeter3P.
| Field | Value |
|---|---|
| IF | Meter: Energy Daily > your limit in kWh |
| and | Day of Week between Monday and Friday |
| THEN | Notify me (App) |
A “Goodnight” button
Section titled “A “Goodnight” button”A rule with the source Manual trigger becomes a button on the device list. When you tap it, all its actions run.
- Make a new rule with the name “Goodnight”.
- Under IF, select Manual trigger.
- Under THEN, add one action for each light or relay that you want to turn off.
- Tap Save.
See Scenes.

