IoT integration / Backend / Dashboard

NEU Smart Switch

Smart-device integration for facility lighting

Booking-driven lighting for the university's sports facilities: a NestJS service and dashboard that control off-the-shelf Shelly smart switches over the campus network, keep working when the backend is down, and recover on their own after a power cut.

Campus network only: Runs on the university's internal network, so there's no public link.
  • YEAR

    2025

  • ROLE

    Fullstack Engineerat Punica, NEU AI, Informatics & Innovation Center

  • PLATFORMS

    Web · Shelly devices

  • STATUS

    Live · internal

NEW BOOKINGCRON PAYLOADREBOOT → PING → RESTORE STATENEU LINKfacility bookingsNEU SERVERschedule, kept locallySMART SWITCHNestJS on a VPSSHELLY 01static IPSHELLY 02static IPSHELLY 03static IP

PROJECT DESCRIPTION

A standalone system with its own dashboard and user management (roles and permissions) that schedules and controls the lighting in the university's sports facilities from new bookings. Instead of building hardware, I integrated ready-made Shelly smart switches: the server runs on the same subnet as the switches and talks to each one directly over a dedicated static IP, and small scripts on the devices handle recovery.

SOLUTIONS

  1. 01

    Booking-driven lighting

    New facility bookings automatically schedule the lights for that slot, managed from a dashboard with roles and permissions.

  2. 02

    Survives backend outages

    A steady cron payload from the NEU server is persisted locally, so the switches keep their schedule even when the backend is unreachable.

  3. 03

    Self-healing after power cuts

    A small script on each Shelly switch pings the Smart Switch server when power returns, so the server can validate and restore the correct state immediately.

  4. 04

    Direct device networking

    The VPS shares a subnet with the switches, reaching each device on its own static IP.

TECH STACK

  • NestJS
  • Next.js
  • Shelly smart switches
  • Shelly scripts
  • Cron jobs
  • Static IP networking
  • VPS

● Runs on the university's internal network, so there's no public link.

● Dashboard screenshots coming soon.

NEXT PROJECTNEU Link