2023-02-16 12:57:06 +00:00
|
|
|
using System.Diagnostics.CodeAnalysis;
|
2023-03-01 09:41:13 +00:00
|
|
|
using InnovEnergy.Lib.StatusApi;
|
|
|
|
using InnovEnergy.Lib.Units;
|
2023-02-16 12:57:06 +00:00
|
|
|
|
|
|
|
namespace InnovEnergy.Lib.Devices.Battery48TL;
|
|
|
|
|
2023-03-01 09:41:13 +00:00
|
|
|
using T = Battery48TLStatus;
|
|
|
|
|
2023-02-16 12:57:06 +00:00
|
|
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
2023-03-01 09:41:13 +00:00
|
|
|
public record Battery48TLStatus : BatteryStatus
|
2023-02-16 12:57:06 +00:00
|
|
|
{
|
2023-03-01 12:23:42 +00:00
|
|
|
public Voltage CellsVoltage { get; init; }
|
2023-03-01 09:41:13 +00:00
|
|
|
|
2023-03-01 12:23:42 +00:00
|
|
|
public Power MaxChargingPower { get; init; }
|
|
|
|
public Power MaxDischargingPower { get; init; }
|
2023-03-01 09:41:13 +00:00
|
|
|
|
2023-04-04 11:16:10 +00:00
|
|
|
public LedState GreenLed { get; init; }
|
|
|
|
public LedState AmberLed { get; init; }
|
|
|
|
public LedState BlueLed { get; init; }
|
|
|
|
public LedState RedLed { get; init; }
|
2023-03-01 09:41:13 +00:00
|
|
|
|
2023-04-04 11:16:10 +00:00
|
|
|
public IReadOnlyList<String> Warnings { get; init; } = Array.Empty<String>();
|
|
|
|
public IReadOnlyList<String> Alarms { get; init; } = Array.Empty<String>();
|
2023-03-01 09:41:13 +00:00
|
|
|
|
2023-04-04 11:16:10 +00:00
|
|
|
public Boolean ConnectedToDc { get; init; }
|
|
|
|
public Boolean Heating { get; init; }
|
|
|
|
public TemperatureState TemperatureState { get; init; } // cold | operating temperature | overheated
|
2023-03-01 09:41:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: strings
|
|
|
|
// TODO
|
|
|
|
// public State LimitedBy { get; init; }
|
|
|
|
|
|
|
|
// TODO
|
|
|
|
// public Boolean AlarmOutActive { get; init; }
|
|
|
|
// public Boolean InternalFanActive { get; init; }
|
|
|
|
// public Boolean VoltMeasurementAllowed { get; init; }
|
|
|
|
// public Boolean AuxRelay { get; init; }
|
|
|
|
// public Boolean RemoteState { get; init; }
|
|
|
|
|
2023-02-16 12:57:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|