Fault only today:
My export (read from P1) is 0,19 kWh (not very sunny today, I know).
I have dynamic tariffs…appr. 0,24 per kW for an hour today
(sensors are good, checked it in DB Browser)
Still the cost calculation says: € 50,06
![]()
Can I fix this?
Fault only today:
My export (read from P1) is 0,19 kWh (not very sunny today, I know).
I have dynamic tariffs…appr. 0,24 per kW for an hour today
(sensors are good, checked it in DB Browser)
Still the cost calculation says: € 50,06
![]()
Can I fix this?
I narrowed it down:
Export to Excel and the manual math gives: 0,0506€ (factor 1000). How to correct?
AI helped:
To add a one-time cost to a specific day in the past (e.g., two days ago), you cannot rely on Home Assistant’s automatic “static price” calculation because it only runs when new energy data is recorded. Modifying the energy (kWh) in the past does not trigger a recalculation of cost.
Since “cost” is not a visible sensor in your standard entity list when using a static price, you must find and edit its hidden Long-Term Statistics record.
Even when you use a “static price,” Home Assistant creates a hidden internal statistic to store the dollars/euros calculated.
_cost (e.g., sensor.your_energy_meter_cost).energy_.Manually Inject the Money
In the Developer Tools > Statistics list, find that _cost entity.
Click the Adjust Statistic icon (the ramp with an arrow) on the far right.
In the dialog, use the date picker to navigate to two days ago. Pick any hour (e.g., 12:00 PM).
Enter the exact amount of money you want to add to that day in the Adjustment field.
5.00 to add $5.00 to that day’s total.Click Adjust.
Verify on the Dashboard
Go back to your Energy Dashboard and select the specific date from two days ago. The cost column should now show your manual adjustment alongside any existing calculated costs.
Why this is the only way:
Home Assistant stores cost data in a separate database table (statistics) as a running “sum”. Changing the price in the settings only affects future data. The only way to change what appears on a past day is to manually edit the “sum” value for that specific historical timestamp.
AI-reacties kunnen fout