load and display tankinfo on ui

This commit is contained in:
2025-03-21 23:25:30 +01:00
parent 110cb50098
commit db27de3073
7 changed files with 200 additions and 8 deletions

View File

@@ -120,4 +120,24 @@ interface BatteryState {
remaining_milli_ampere: string,
state_of_charge: string,
state_of_health: string
}
interface TankInfo {
/// is there enough water in the tank
enough_water: boolean,
/// warning that water needs to be refilled soon
warn_level: boolean,
/// estimation how many ml are still in tank
left_ml: number | null,
/// if there is was an issue with the water level sensor
sensor_error: string | null,
/// raw water sensor value
raw: number | null,
/// percent value
percent: number | null,
/// water in tank might be frozen
water_frozen: boolean,
/// water temperature
water_temp: number | null,
temp_sensor_error: string | null
}