You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far, only the API portion is in a functional state, as I haven't quite learned the ins and outs of HA Integration development (still struggling a bit with async/await, hence the use of requests instead of aiohttp)
If you'd like to test the API portion, you could do the following:
Clone the repository and open it in your terminal of choice
cd ./custom_components/brunata_online
Replace from .const import ( with from const import ( in api.py:13
python3 -i ./api.py
Create an instance of BrunataOnlineApiClient with your username and password, let's call it CLIENT for now
Call CLIENT.get_meters(), then CLIENT.get_consumption(ConsumptionType.WATER, Interval.DAY)
This should store your daily water consumption for the current month in CLIENT._water
Finally, you can run import json and json.dumps(CLIENT._water, indent=2)
This should print out your water consumption in the Python REPL.
Sadly, I haven't had much time recently, so the development is progressing slower than I would've liked... If you have any experience in writing integrations or Python tests, I'm more than open to reviewing pull requests 🙂
In any case, I'll keep this issue open so I can add comments as functionality improves. I'll also tag the first commit in which the integration works as a release build; that way, even if I forget to comment here, you'll know it's ready to be installed in Home Assistant then 😅
Hi, I have just set up my Home Assistant and we're using Brunata Online to track water usage and heating.
I've tried to enable this integration by linking the https://github.com/YukiElectronics/ha-brunata/tree/main/custom_components/brunata_online folder in my
<config>/custom_components
folder, HASS does not seem to pick it up correctly:Can you provide installation instructions how to test this integration? Thanks!
The text was updated successfully, but these errors were encountered: