add features to show total heating time and percentage on heating tab

and total pump cycles on homepage
This commit is contained in:
2021-03-06 14:21:12 +01:00
parent 910797adaf
commit 3b502ac434
10 changed files with 55 additions and 4 deletions

View File

@ -57,6 +57,12 @@ class GeneralInformation extends Component<GeneralInformationRestControllerProps
secondary={props.data.lastPumpDuration !== 0 ? stringifyTime(props.data.lastPumpDuration) : "-"}
/>
</ListItem>
<ListItem>
<ListItemText
primary="Pumpzyklen seit Programmstart"
secondary={props.data.pumpcycles}
/>
</ListItem>
<ListItem>
<ListItemText
primary="WasserSensor / DruckSensor"

View File

@ -39,6 +39,12 @@ class HeatingInformation extends React.Component<HeatingRestcontollerprops> {
secondary={props.data.lastheatduration === 0 ? "-" : props.data.lastheatduration === -1 ? "läuft gerade!" : stringifyTime(props.data.lastheatduration)}
/>
</ListItem>
<ListItem>
<ListItemText
primary="Gesammte Heizdauer / Prozentuelle Einschaltzeit"
secondary={stringifyTime(props.data.totalheattime) + ' / ' + props.data.heattimepercent + '%'}
/>
</ListItem>
<ListItem>
<ListItemText
primary="Temperatur/Luftfeuchtigkeit:"

View File

@ -14,6 +14,7 @@ export interface GeneralInformaitonState {
watersensor: boolean;
pressuresensor: boolean;
version: string;
pumpcycles: number;
}
export interface HeatingInformationState {
@ -21,5 +22,6 @@ export interface HeatingInformationState {
lastheatduration: number;
hum: number;
temp: number;
totalheattime: number;
heattimepercent: number;
}