Files
HomeAssistant/PowerMonitor.Manager/Interface/IPowerCostCalculationService.cs
T
2026-03-17 12:55:25 +02:00

16 lines
560 B
C#

using PowerMonitorManager.Models;
namespace PowerMonitorManager.Interface;
public interface IPowerCostCalculationService
{
void RecordCosts(PowerCalculationResult calculation, double nordPoolPrice, int pollIntervalSeconds, DateTime now);
CostSnapshot GetTotalCostSnapshot();
CostSnapshot GetOtherCostSnapshot();
CostSnapshot GetDeviceCostSnapshot(string entityId);
IReadOnlyDictionary<string, CostSnapshot> GetAllDeviceCostSnapshots();
double LastKnownPrice { get; }
string PriceSource { get; }
void SetPrice(double price);
}