# NILM Calculator for power monitoring. AI Agent Connect

> NILM Calculator lets your AI client break down a single power signal into individual appliance activities. It uses signature matching and state-transition rules to identify when specific devices turn on or off, how much energy they consume, and whether their operational logic holds up.

## Overview
- **Category:** data-analysis
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_BpSka4H3VADIOHU0ghuBTmLCR4t2vO3OFwZ7HxEM/ai-agent-connect
- **Tags:** nilm, power-monitoring, energy-consumption, signal-processing, appliance-detection

## Description

You can stop guessing which devices are driving your energy bills. This MCP gives your AI agent the ability to perform Non-Intrusive Load Monitoring (NILM) by analyzing a single aggregate power waveform. Instead of needing a sensor on every single plug, your agent looks at the total power flow and identifies the unique electrical signatures of individual appliances. 

You can use it to pull specific event logs for a single device, check if a machine is cycling through its states correctly, or calculate the exact kilowatt-hours used by a specific unit. It's a heavy-duty signal processing tool that turns raw voltage and current data into actionable device-level intelligence. Whether you're auditing a home's energy footprint or monitoring industrial equipment, this MCP handles the math and the pattern matching so your agent can focus on the analysis.

## Tools

### analyze_waveform
This tool breaks down a single aggregate power signal into individual appliance events. It identifies specific device activities within the total waveform.

### calculate_energy_consumption
Use this to find the total energy used by the appliances identified in your analysis. It converts signal data into usable energy totals.

### get_appliance_events
This tool retrieves a filtered list of events for a specific appliance. It helps you isolate the activity history of one device from the rest of the data.

### validate_state_transitions
This tool checks the operational logic of an appliance. It ensures that the detected state changes follow expected patterns.

## Prompt Examples

**Prompt:** 
```
Analyze this power waveform: [100, 105, 500, 510, 102, 98] with a sampling interval of 1 and a threshold of 10.
```

**Response:** 
```
The analysis identified an appliance event at timestamp 2 with a power magnitude of 500.
```

**Prompt:** 
```
What was the total energy used by the refrigerator?
```

**Response:** 
```
The total energy used by the refrigerator was 15.5 kWh.
```

**Prompt:** 
```
Get all events for the 'Heater' appliance.
```

**Response:** 
```
The heater had 3 events: one at 10:00, one at 10:15, and one at 10:30.
```

## Capabilities

### Signal Decomposition
Your agent uses this to split a single power stream into individual device signatures.

### Energy Accounting
Your agent calculates the specific energy footprint for every identified appliance.

### Logic Validation
Your agent checks if appliance state changes match real-world operational rules.

### Event Filtering
Your agent isolates specific timestamps and activities for a single piece of equipment.

## Use Cases

### Home Energy Auditing
Identify which specific appliances are consuming the most power from a single smart meter reading.

### Equipment Health Monitoring
Use state transition validation to see if a motor or heater is cycling incorrectly.

### Industrial Load Analysis
Break down factory floor power usage into specific machine events.

### Demand Response Testing
Track how specific appliances respond to changes in the power signal.

## Benefits

- Decomposes aggregate signals without needing individual device sensors.
- Identifies specific appliance events through signature matching.
- Validates that appliance state changes follow logical patterns.
- Calculates precise energy totals for individual devices.

## How It Works

Connect your client to Vinkius and start processing waveforms immediately.

1. Connect your MCP-compatible client to the Vinkius hosted environment.
2. Provide the aggregate power waveform data to your agent.
3. Your agent calls the analysis tools to decompose the signal.
4. Your agent retrieves specific energy totals or event logs based on your questions.

## Frequently Asked Questions

**What is NILM?**
Non-Intrusive Load Monitoring is a method of decomposing a single aggregate power signal into the individual energy signatures of the appliances using it.

**How do I use this with Claude or Cursor?**
You connect your client to the Vinkius platform once, and the tools become available for your agent to call directly within your existing workflow.

**Can I see the energy used by a single device?**
Yes, you can use the energy consumption tool to calculate the specific totals for any appliance identified during the waveform analysis.

**Does this require hardware for every appliance?**
No, the core purpose of this MCP is to use a single aggregate waveform to identify multiple devices.

**How does the tool ensure the data is accurate?**
The MCP includes a validation tool that checks appliance state transitions against operational logic to ensure the identified events make sense.

**How does the decomposition work?**
The `analyze_waveform` tool uses signature matching against an appliance library to identify power spikes and patterns in the aggregate signal.

**Can I verify if an appliance is operating correctly?**
Yes, you can use `validate_state_transitions` to check if the detected sequence of events follows the defined operational rules for a device.

**How is energy consumption calculated?**
The `calculate_energy_consumption` tool sums the power magnitude of detected events multiplied by their duration based on the sampling interval.
