Skip to content

Commit

Permalink
feat: added total_liter_offset_m3 to water meter data API response types
Browse files Browse the repository at this point in the history
  • Loading branch information
jvandenaardweg committed Sep 2, 2023
1 parent c2afccb commit 81da7f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ export interface BaseDataResponse {
active_liter_lpm?: number;
/** Total water usage in cubic meters since installation. Available for: `HWE-WTR` */
total_liter_m3?: number;
/** The usage of this value is in development and should not be used. Available for: `HWE-WTR` */
total_liter_offset_m3?: number;
active_tariff?: number; // TODO: determine what this is, not in docs, but only found in example
}

Expand Down Expand Up @@ -237,7 +239,7 @@ export type P1MeterDataResponse = Omit<BaseDataResponse, 'active_liter_lpm' | 't
*/
export type WaterMeterDataResponse = Pick<
BaseDataResponse,
'wifi_ssid' | 'wifi_strength' | 'total_liter_m3' | 'active_liter_lpm'
'wifi_ssid' | 'wifi_strength' | 'total_liter_m3' | 'active_liter_lpm' | 'total_liter_offset_m3'
>;

/**
Expand Down

0 comments on commit 81da7f0

Please sign in to comment.