Work · Innovation Lab
aALoK
Solar IoT from the field to AI
An industrial IoT platform that reads almost any inverter, meter or sensor on a solar plant and turns it into live KPIs, alerts, maintenance work, daily reports and plain-language AI answers. I built its web, cloud and AI layers.
- Role
- Full Stack Developer at DyuLabs. Web platform, serverless backend, AI analyst and internal tools
- Period
- 2024 – present
- Status
- Status: Live
In numbers
19
inverter brands on one platform (551 parameters)
144.37 MWp
solar capacity monitored
~100K
lines of production code I own
30×
faster AI builds (40 min → 78 s)
< 500 ms
to accept any AI question (was a 29 s timeout)
6
production releases in 16 weeks
This page is about my own work on aALoK, a DyuLabs product. Customers, the device protocol, the security design and internal details are deliberately left out, and the diagram is a simplified one drawn for this site.
The problem
Building a solar plant is the easy part. Running it well is hard:
- Every inverter brand speaks its own dialect. Different registers, data types and fault codes, and usually its own portal. Three brands means three portals and no single view.
- Plants sit where networks don't. Fields and rooftops with no wired internet, and some owners can't send data to the cloud at all.
- Losses hide. A failed string, a dusty array or a hot inverter quietly costs money for weeks.
- Alarms go nowhere. An email says an inverter is down, and nothing tracks what happens next.
- Reports are still made by hand, in spreadsheets, every day.
What aALoK does
01
Connect
Nodes wire into inverters, meters, weather stations and PV strings.
02
Transmit
LoRa across the site, LTE to the cloud, or a server on site.
03
Decode
Device maps turn raw readings into engineering values.
04
Understand
KPIs, faults, losses, ESG, and an AI you can ask.
05
Act
Triggers, alerts, tickets with SLAs, work orders, daily reports.
06
Share
Web, mobile, and third-party data feeds.
Capabilities
Monitor
- Portfolio dashboard and an India plant map
- Plant details with live weather
- Inverters, PV strings and grid values
- Energy meters and weather stations
- String-level current monitoring
- Flow meters for solar pumping
Analyse
- Performance ratio, capacity factor and specific yield
- ESG impact: CO₂ avoided, coal saved, trees
- Side-by-side inverter comparison
- Monthly, yearly and lifetime trends
- One-click Excel exports with totals
Act
- No-code triggers ("if this, then tell them")
- Alert timelines per inverter and plant
- Tickets with SLAs, Kanban and work orders
- Daily PDF report for every plant
- Plant log with an automatic audit trail
Ask
- An AI analyst for plant questions in plain language
- Answers with tables and charts
- Understands romanised Hindi, Gujarati and Tamil
- Uses the plant you are looking at as context
Integrate
- Mobile app API
- Secure third-party data feeds
- Cloud or fully on-premise deployment
Administer
- Roles with page-level access
- Plant and device allocation per user
- White-label branding per customer
- Plant diagram editor
- Light and dark themes
Device compatibility
Every device below is supported by 47 device maps stored as data (551 decoded parameters), not by vendor-specific code. The cloud, the dashboard, the reports and the AI all read the same maps, so every screen shows the same numbers.
Inverters: 19 brands, 27 models
- ABB · Delta · Deye · Fronius · Growatt · Hitachi · Hopewind · INVT · KSolar · Mindra · Polycab · Schneider · Select GTI · Sofar · Solaryaan · Solis · Sungrow · Thea · Wattpower
Energy and weather
- Multi-function energy meters
- Pyranometers and solar radiation sensors
- Temperature sensors
- Multi-parameter weather stations
Strings and more
- PV string current sensors
- Water-flow meters for solar pumping
- New models added as data, without a software release
What I built
My scope is everything above the device boundary; the embedded team builds the hardware and firmware.
- The web platform. React, ~51K lines, 20+ routes and 16 feature-gated modules: live monitoring, analytics, no-code triggers and alerts, ticketing with SLAs and work orders, exports, user and role administration, white-label branding, a plant diagram editor and the AI assistant.
- The serverless backend. AWS IoT Core, Lambda, DynamoDB and AppSync: an ingestion service that decodes field data, KPIs every 15 minutes, an alert engine, daily PDF reports for every plant, and the mobile app API and third-party data feeds. 42 tables, 9 production functions and scripted, repeatable deployments.
- An AI analyst. A LangGraph agent with 28 domain tools. Ask "which inverters are tripped right now?" or "compare my best and worst plants this month" and get an answer with a table or a chart, limited to your own plants.
- Tools for the other teams. Radio-link diagnostics for the firmware engineers, safe data correction for operations, and an on-premise mode for sites that can't use the cloud.
Architecture
Experiences
built by me
- Web dashboard (React)
- AI analyst
- Mobile app API
- Third-party data feeds
Services
built by me
- KPIs every 15 min
- No-code triggers and alerts
- Tickets and work orders
- Daily PDF reports
- GraphQL and REST APIs
Data
built by me
- DynamoDB, 42 tables
- Raw readings kept, decoded on read
- Device maps as data
Ingestion
built by me
- AWS IoT Core
- Event-driven Lambda decoder
- Cloud or on-premise
Field
embedded team
- Inverters, meters, weather stations
- PV string sensors
- LoRa nodes
- LTE gateway
The hard parts
Any inverter, no new code
Every brand encodes its data differently. Instead of writing code per vendor, I made device support data: each model's registers (type, size, byte order, scaling) live in a map, readings are stored exactly as they arrive, and every surface (cloud, browser, reports and AI) decodes them with the same maps. Support grew from 2 brands to 19 brands, 27 models and 551 parameters, and fixing a map corrects history without a migration.
Exactly one KPI per window
Many functions process the same plant at the same moment. A conditional write acts as a gate for each 15-minute window, with rollback on failure, so performance ratio, capacity factor and CO₂ figures are computed exactly once and then rolled up hourly into monthly, yearly and lifetime totals.
Beating a 29-second wall
Long AI analyses outran the API gateway's fixed 29-second timeout. The endpoint now accepts a question in under 500 ms (202 Accepted), the agent runs in the background, and the chat polls with an optimistic message. Timeouts went to zero.
40-minute builds down to 78 seconds
AI container builds took about 40 minutes and often hung. The cause was a dependency release that needed a newer system library than the base image, so it quietly compiled from source. Pinning a compatible release, dropping the compiler toolchain and splitting the image into cacheable layers brought builds to 78 seconds.
An AI that can't over-reach
The agent never writes free-form queries. It chooses from 28 typed tools, every call is repaired and validated against its schema and against the plants this user may see, results are summarised deterministically, and usage is capped per user. Plain language in, permission-scoped data out. Its integration suite passes 57 of 57 cases.
A test tool that caught a spec bug
I wrote the radio-diagnostics parser test-first, with more than 50 unit tests. They showed that the documented payload layout was wrong before anyone built a dashboard on bad data, and fixing it recovered 12 signal-quality fields.
Before and after
| Area | Before | After |
|---|---|---|
| Devices | 2 hard-coded inverter brands | 19 brands from device maps |
| Web app | A 5-page prototype | 20+ routes with role- and feature-based access |
| Faults | An alarm email, then nothing | Alerts → tickets with an owner, SLA, work order and history |
| Reporting | Spreadsheets by hand | A PDF report for every plant, every day, plus one-click exports |
| Questions | Ask the support team | Ask the AI, get a chart |
| AI builds | ~40 minutes, often hung | 78 seconds |
| Long AI questions | 504 after 29 s | Accepted in under 500 ms |
| Third-party access | No machine access | Secure, scoped data feeds |
Beyond the code
- I lead the software and mobile teams, and work with the firmware team on the product's hardest logic.
- I turn customer requirements into shipped features. The ticketing module's types, priorities and SLAs came straight from a customer's requirements.
- I demo the platform at industry expos and handle clients from first call to onboarding.
- We shipped 6 production releases in 16 weeks, and the platform runs at 99.97% uptime.
Solar terms, briefly
- Performance ratio (PR): how much of the energy the sunlight made possible the plant actually delivered.
- Capacity utilisation factor (CUF): the energy produced compared with running at full power all day.
- Specific yield: kWh produced for each kWp installed, so plants of any size compare fairly.
- O&M: operations and maintenance, the people who keep the plant running.
Open for enhancement
aALoK keeps growing, and good ideas come from anywhere. If you run solar plants, build IoT systems or simply see something worth adding, suggest it below. I read every one.
Built with
React · Vite · Chart.js · D3 · ReactFlow · Node.js · AWS Lambda · AWS IoT Core · DynamoDB · AppSync (GraphQL) · Cognito · EventBridge · SES · Python · FastAPI · LangGraph · OpenAI · Docker · MQTT · Modbus · LoRa
Open for enhancement
What should aALoK do next?
Suggest a feature, an improvement or an integration, and vote for the ideas you like. Kenil reads every one, and approves each before it goes up.
Loading…