This Home Assistant integration retrieves water consumption data from Thames Water using their API. It allows you to monitor your water usage directly from your Home Assistant setup without needing additional devices.
You need a Thames Water Smart Meter. The water consumption data provided by this integration is delayed by approximately three days or more. This delay is a characteristic of the Thames Water data system and cannot be altered in this integration.
The integration uses Selenium to log in to the Thames Water website, as it needs to obtain the browser cookies to make the API call. I use the Selenium Addon in Home Assistant.
With these cookies, it then calls the getSmartWaterMeterConsumptions API to retrieve the usage data.
The integration was created recently, so it may contain bugs. Proceed with caution!
- Install the custom component using the Home Assistant Community Store (HACS) by adding the Custom Repository: https://github.com/AyrtonB/HA-Thames-Water
- In the HACS panel, select Thames Water from the repository list and select the DOWNLOAD button.
- Restart HA
- Go to Settings > Devices & Services > Add Integration and select Thames Water.
Copy the custom_components/thames_water/ directory and all of its files to your config/custom_components/ directory.
Once installed, restart Home Assistant:
Then, add the integration:
Manually add the Integration
Visit the Integrations section in Home Assistant and click the Add button in the bottom right corner. Search forThames Water and input your credentials. You may need to clear your browser cache before the integration appears in the list.
The water statistics can be integrated into HA Home Energy Management using thames_water:thameswater_consumption.
It will attempt to fetch the latest data at 00:00 and 12:00 every day.
