What did each device cost during grid-only hours?
Multiply each device’s usage by the import price for the same interval. Begin with intervals whose records confirm the household load came entirely from the grid. In the fictional comparison below, both devices recorded four kWh, but device B cost more because more of its use fell in the higher-rate interval.
Home Assistant users discuss the problem when grid prices vary and solar or battery power supplies some hours. This method isolates the portion you can price directly from the meter and rate records. Discussion and replies
Reconcile the devices to the meter
- Match usage and rate records by the same interval boundaries. Keep a unique interval ID, particularly when the clock changes or the same local hour repeats.
- Use only confirmed grid-only rows and check that grid-to-load and total load agree. Multiply the device’s kWh by that interval’s price. Review a duplicate device entry before counting it.
- Subtract total recorded device kWh from household load. Keep the difference as unmetered usage at the same rate. A negative remainder needs a scope or readings check.
| Interval | Rate | Device A | Device B | Unmetered |
|---|---|---|---|---|
| H1 | USD 0.10/kWh | 3 kWh | 1 kWh | 0 kWh |
| H2 | USD 0.30/kWh | 1 kWh | 3 kWh | 1 kWh |
Across the two intervals, A costs USD 0.60 and B costs USD 1.00. H2 has one remaining kWh at USD 0.30, bringing the grid-only total to USD 1.90. Check the rates and load in Meter!A2:E3 and the four device rows in Devices!A2:C5. H3 in Meter!A4:E4 had mixed supply. Keep its device readings out of the dollar result unless you have an independently supported allocation. Standing charges and exports are separate.
Download the fictional meter and device tables. Open the CSVs as Meter and Devices, then match the rate and consumption rows.
Copy the practice data
| Interval | Device | kWh |
|---|---|---|
| H1 | A | 3 |
| H1 | B | 1 |
| H2 | A | 1 |
| H2 | B | 3 |
| H3 | A | 3 |
| H3 | B | 1 |
| Interval | Load kWh | Grid to load kWh | Source | USD per kWh |
|---|---|---|---|---|
| H1 | 4 | 4 | Grid only | 0.10 |
| H2 | 5 | 5 | Grid only | 0.30 |
| H3 | 5 | 2 | Mixed | 0.40 |