IoT · Backend engineering
Medusa Protect
Medusa Protect connects an installed water-monitoring system to a mobile app. It helps property owners spot unusual flow, check protection status and understand water use without being on site.
Explore the app screens ↓ View on Google Play ↗ View on the App Store ↗
The challenge: one view of a system with many moving parts
Someone away from the property needs quick answers: Was unusual flow detected? Is the water still on? What should I do next? Behind those questions are separate systems for hardware, device registration, readings and alerts. The backend had to make those events understandable without treating a successful API call as proof that everything downstream had happened.
The build, step by step
1. Get the right device into the right property
We started with installer onboarding. The flow takes a device serial number, registers it with the hardware provider, and links it to the right property. We put the provider-specific API calls behind an adapter so the rest of the platform could work with Medusa’s own model for devices and properties.
2. Handle the gap between an API response and an event
During integration, we saw a device register on the provider side without Medusa receiving the expected confirmation event. That exposed an important boundary: accepting a registration request and receiving the follow-up event are two different steps. Webhooks give us a timely path for incoming events. Scheduled synchronization is a separate way to refresh device state rather than treating any one event as the only source of truth.
3. Route updates to the people who need them
Administrators and installers don’t all work with the same customers or devices. We added role-based access for those workflows and used Socket.IO to send live updates to the appropriate audiences. The customer-facing app presents protection status, water usage and alerts without exposing the operational controls behind them.
What each part of the stack did
- NestJS and TypeScript: Organized the backend into modules for accounts, devices, provider integrations, webhooks, notifications and scheduled jobs.
- PostgreSQL: Stored customer and device records and the associations used by the platform.
- Provider APIs, webhooks and scheduled jobs: Connected the hardware platform, processed incoming events and refreshed device state.
- React and Socket.IO: Supported the web operations interface and pushed updates without requiring a manual page refresh.
What the platform makes possible
Device onboarding, status updates and alerts now sit behind one backend. On the customer side, the app brings protection status, usage trends and incident history into one place. On supported configurations, the hardware can shut off the water during a critical event, while the app shows the alert and valve status.
Inside the Medusa Protect app
Click any image to open it at full size. These are customer-facing images from the public Google Play listing.

An early warning explains what was detected.

Daily readings and trends help put usage in context.

A severe leak alert shows the actions the system has taken.

An activity feed keeps alerts and checks in one place.
How protection works
What happens when unusual flow is detected?
The app shows a warning and the event context. Depending on the system configuration, critical events can trigger automatic shutoff.
Can users check the system away from home?
With a connected system and account, users can see current protection and valve status, recent activity and water usage.
Building a connected-device product? Talk to Vebiee Studio about device integrations, event processing and customer alerts.
