I recently set up a smart water meter from Anglian Water and wanted to share my experience integrating it with OpenHAB. While their website provides excellent hourly usage charts, the lack of an API was a bit of a hurdle. However, I found a clever workaround using a Python script to scrape the website data and log it into InfluxDB. Here’s how I made it work:
-
Script Setup: I used this Python script (GitHub link) to automate the data scraping process. It runs daily at 9 AM, ensuring I always have the latest data.
-
OpenHAB Integration: Setting up OpenHAB was straightforward. I configured it to trigger the script and display the results. The best part is seeing the data visualized in real-time, which helps me monitor my water usage more effectively.
-
Tips for Others: If you’re looking to integrate your smart water meter, consider setting up a cron job to automate the script. Also, ensure your OpenHAB instance has the necessary plugins installed for InfluxDB integration.
This setup has been a game-changer for me, providing both convenience and insights into my water consumption. I hope this helps someone else looking to enhance their smart home setup!