Skip to content

Support passing mac address in water consumtion request #69

Description

@mcnutter1

The water/consumption api endpoint also accepts a macAddress parameter, similar to the metrics API to get usage per valve...

See below:

:method: GET
:scheme: https
:path: /api/v2/water/consumption?macAddress=880ce0822ff0&interval=1m&startDate=2026-01-01&endDate=2026-01-31T05:00:00.000Z&tz=America/New_York
:authority: api-gw.meetflo.com
accept: /
content-type: application/json
accept-language: en-US,en;q=0.9
accept-encoding: gzip, deflate, br
if-none-match: W/"116-MNjzGZIyH7ZXENYV9ijDhrQIgUM"
user-agent: Smartwater-iOS-prod-3.45.0
priority: u=3

{
"params": {
"startDate": "2026-01-01T05:00:00.000Z",
"endDate": "2026-01-31T05:00:00.000Z",
"interval": "1m",
"tz": "America/New_York",
"macAddress": "880ce0822ff0"
},
"aggregations": {
"sumTotalGallonsConsumed": 97.23400000000001
},
"items": [{
"time": "2026-01-01T00:00:00-05:00",
"gallonsConsumed": 97.23400000000001
}]
}

The way aioflow pulls consumption today is across all valves, aggregaged... this new implementation will allow to pull consumption for each valve, relevant for the home assistant integration which is showing incorrect data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions