// Python Dev

Automatic energy consumption control system

Published on 2026-03-26

Client task

The client was building infrastructure for EV charging and needed a system that would automatically manage power delivery by consumption limits without constant manual monitoring.

What was delivered

  • • Built an MVP where each charging point follows a 'meter-relay-user' model.
  • • A seller assigns a consumption limit, the system tracks readings in real time, and automatically turns the relay off when the limit is exhausted.
  • • When a new limit is added, the relay turns back on, while the administrator can manually control relays at any time.
  • • Meter readings come through MQTT, the system subscribes to topics, parses incoming packets, and passes data into business logic.
  • • All relay commands and limit history are logged for audit purposes.
  • • Implemented administrator and seller roles, plus test coverage including an end-to-end integration scenario.

Result

The client received a working MVP for automatic energy control with validated relay shutdown logic and a foundation for further scaling.

This project combined backend logic, event-driven device data processing, and an operational interface. The key difficulty was not only to store readings, but to act on them in real time while maintaining a transparent audit trail.

Thanks to MQTT and a clear domain model, the system became a foundation for further expansion of the charging infrastructure, where direct power control matters just as much as analytics.

Stack:
#Python 3.11 #aiohttp #PostgreSQL #MQTT #Mosquitto #Docker #Tailwind CSS #Alpine.js

New request

Submit a request

Confirm that you are not a bot.