#How to develop a new integration to pull water usage from utility (SFPUC)?

1 messages · Page 1 of 1 (latest)

fervent sigil
#

Hello! I want to get my water usage from my local utility, SFPUC, but haven't found any existing integration. So I decided to try to contribute back to the community and code it up myself. I already have code to pull data using SFPUC's API, and I started following the HA Dev Docs on creating a new integration.

My goals are to get historical data on integration setup, and then update regularly afterwards to pull latest data. However, I'm feeling a bit stuck as to how exactly I can put everything together. Right now on HA Dev environment, I managed to add the integration, log in successfully to SFPUC, pull data (a dictionary with format {datetime(): gallons, e.g., {datetime.datetime(2024, 9, 20, 23, 0): 1.5, other_time: 2.0}). However, it only writes the latest value at current time in the sensor sensor.sfpuc_water_usage.
The dev docs mentioned the #devs_core-archived channel for questions, but it seems like this is archived... Is this the right place to ask for advice now?

Thanks!

weary scarab
#

Head to "Channels & Roles" at the top and select "I want to contibute dev skills to Home Assistant!".
That way you will get the Developer role and gain access to according channels, where other Devs can help you.

fervent sigil
#

(is there a "resolved" button somewhere?)