lumnik. / scenarios All scenarios · Français

The filter pressure rises while the pump runs: lumnik says where to go and what to check

Goal Get a visit to make, with the customer, the last backwash and the filter model, when a pool filter's pressure passes that filter's own limit while filtration runs.

A pool professional follows a fleet of pools in MyIndygo. One filter is clogging: its pressure rises, but only while filtration runs. The customer, the contract, the last backwash and the installed filter live in three other tools.

myindygo-poll-1.json
{
 "modules": [
  {
   "id": "LRPC-0A1F01",
   "serialNumber": "LRPC-0A1F01",
   "type": "lr-pc-vs2",
   "name": "Filtration",
   "pool": "POOL-101",
   "poolName": "Pool Martin",
   "inputs": [
    {
     "type": 6,
     "lastValue": {
      "value": 7.2,
      "date": "2026-11-17T10:00:00Z"
     }
    },
    {
     "type": 8,
     "lastComputedMeasure": {

… 107 more lines

erp.json
{
 "installed": [
  {
   "pool": "POOL-101",
   "filter_model": "F-600",
   "alert_pressure_bar": 1.5,
   "warranty_until": "2027-06-30",
   "spare_parts": "pressure gauge MG-63, lid O-ring J-600",
   "check": "backwash, then check the pressure gauge"
  },
  {
   "pool": "POOL-102",
   "filter_model": "F-500",
   "alert_pressure_bar": 1.4,
   "warranty_until": "2026-03-31",
   "spare_parts": "pressure gauge MG-63",
   "check": "backwash, then check the pressure gauge"
  },
  {
   "pool": "POOL-103",

… 8 more lines

manifests/30-pool-filter.yaml
kind: Entityname: ScenarioPoolFilterAdescription: "A pool's filtration module as MyIndygo last measured it, with its customer, its last maintenance and its installed filter."match: [module]scopes: [pool-service]columns:  module: { label: "Module" }  pool_id: { label: "Pool" }  pool_name: { label: "Pool name" }  measured_at: { label: "Measured at" }  pressure_bar: { label: "Filter pressure (bar)" }  filtration: { label: "Filtration running (1 = yes)" }  customer: { label: "Customer" }  town: { label: "Town" }  contract: { label: "Contract" }  technician: { label: "Technician" }  last_backwash: { label: "Last backwash" }  last_visit: { label: "Last visit" }  filter_model: { label: "Filter" }  alert_pressure_bar: { label: "Alert pressure (bar)" }  warranty_until: { label: "Warranty until" }  spare_parts: { label: "Spare parts" }  check: { label: "Check" }sources:  - table: scenario_pool_module_a    map:      module: module      pool_id: pool_id      pool_name: pool_name      measured_at: measured_at      pressure_bar: pressure_bar      filtration: filtrationjoins:  - table: scenario_pool_customer_a    from: pool_id    to: pool_id    map: { customer: customer, town: town, contract: contract, technician: technician }  - table: scenario_pool_visit_a    from: pool_id    to: pool_id    map: { last_backwash: last_backwash, last_visit: last_visit }  - table: scenario_pool_equipment_a    from: pool_id    to: pool_id    map: { filter_model: filter_model, alert_pressure_bar: alert_pressure_bar, warranty_until: warranty_until, spare_parts: spare_parts, check: check }
manifests/40-filter-visit.yaml
apiVersion: apps.lumnik.io/v1kind: Processmetadata:  name: scenario-pool-filter-visit-aspec:  scope: pool-service  on:    event: data.row.changed    table: connector.v_scenariopoolfiltera  when:    - filtration=1                          # a pressure read with the pump stopped says nothing about the filter    - "pressure_bar>{alert_pressure_bar}"   # the limit is the installed filter's, from the ERP  emit:    type: decision.pool-filter-visit-a    key: pool_id    message: "{pool_name} ({customer}, {town}): filter pressure {pressure_bar} bar while filtration runs, above {alert_pressure_bar} bar for its {filter_model}. Last backwash {last_backwash}. Visit for {technician}: {check}."    fields: [module, measured_at, spare_parts, warranty_until]
myindygo-poll-4.json
{
 "modules": [
  {
   "id": "LRPC-0A1F01",
   "serialNumber": "LRPC-0A1F01",
   "type": "lr-pc-vs2",
   "name": "Filtration",
   "pool": "POOL-101",
   "poolName": "Pool Martin",
   "inputs": [
    {
     "type": 6,
     "lastValue": {
      "value": 7.2,
      "date": "2026-11-20T10:00:00Z"
     }
    },
    {
     "type": 8,
     "lastComputedMeasure": {

… 107 more lines

$ lm inbox --process scenario-pool-filter-visit-d
ID     WHEN      PROCESS                       MESSAGE                                                                                                                                                                                                                   ENTITY_KEY
31141  just now  scenario-pool-filter-visit-d  Pool Martin (M. et Mme Martin, Aix-en-Provence): filter pressure 1.6 bar while filtration runs, above 1.5 bar for its F-600. Last backwash 2026-10-04. Visit for Lucas Bernard: backwash, then check the pressure gauge.  POOL-101

$ lm entity get ScenarioPoolFilterD -o json
[
  {
    "module": "LRPC-0A1F01",
    "pool_id": "POOL-101",
    "pool_name": "Pool Martin",
    "measured_at": "2026-11-20T10:00:00Z",
    "pressure_bar": "1.6",
    "filtration": "1",
    "customer": "M. et Mme Martin",
    "town": "Aix-en-Provence",
    "contract": "Sérénité annual",
    "technician": "Lucas Bernard",
    "last_backwash": "2026-10-04",
    "last_visit": "2026-10-04",
    "filter_model": "F-600",
    "alert_pressure_bar": "1.5",
    "warranty_until": "2027-06-30",
    "spare_parts": "pressure gauge MG-63, lid O-ring J-600",
    "check": "backwash, then check the pressure gauge",
    "_conflicts": "{}"
  },
  {
    "module": "LRPC-0A1F02",
    "pool_id": "POOL-102",
    "pool_name": "Pool Dubois",
    "measured_at": "2026-11-20T10:00:00Z",
    "pressure_bar": "0.8",
    "filtration": "1",
    "customer": "Famille Dubois",
    "town": "Pertuis",
    "contract": "Sérénité annual",
    "technician": "Lucas Bernard",
    "last_backwash": "2026-11-10",
    "last_visit": "2026-11-10",
    "filter_model": "F-500",
    "alert_pressure_bar": "1.4",
    "warranty_until": "2026-03-31",
    "spare_parts": "pressure gauge MG-63",
    "check": "backwash, then check the pressure gauge",
    "_conflicts": "{}"
  },
  {
    "module": "LRPC-0A1F03",
    "pool_id": "POOL-103",
    "pool_name": "Pool Leroy",
    "measured_at": "2026-11-20T22:00:00Z",
    "pressure_bar": "1.7",
    "filtration": "0",
    "customer": "Camping Leroy",
    "town": "Manosque",
    "contract": "On call",
    "technician": "Inès Moreau",
    "last_backwash": "2026-11-02",
    "last_visit": "2026-11-02",
    "filter_model": "F-750",
    "alert_pressure_bar": "1.5",
    "warranty_until": "2028-04-30",
    "spare_parts": "pressure gauge MG-63, valve V-6",
    "check": "backwash, then check the pressure gauge",
    "_conflicts": "{}"
  }
]

Limits

This scenario runs on lumnik Open, free and open source.

Try lumnik Open →