Releases: fjfricke/brunata-api
Releases · fjfricke/brunata-api
v0.2.0
What's new
- Periods API:
get_periods()returns all dashboard periods (start/end). NewPeriodmodel. - Period selection: Optional
period_indexonget_meter_readings(),get_meter_reading(),get_current_consumption(),get_monthly_consumption(), andget_monthly_consumptions()(default0= first period, e.g. current year). - Yearly reset: Cumulative values are per period and reset when a new period (e.g. new year) starts. Documented in docstrings and README so integrations (e.g. Home Assistant) can handle it (e.g.
period_index=1for previous year). - Exports:
Period,CurrentConsumption,MeterReadingin package__all__.
Full Changelog: v0.1.4...v0.2.0
Publish to Pypi. Add LICENCE and english README
Full Changelog: v0.1.3...v0.1.4
Add option to return all meter readings for one cost type if present
Update client to return all HZ/WW cost types. get_meter_readings() now returns a dict keyed by cost_type, add get_monthly_consumptions() for all series, and update CLI/README/tests accordingly.
Add current meter readings
v0.1.2 Update version to 0.1.2 in pyproject.toml. Add new commands to CLI fo…
Initial release
v0.1.1 Update version to 0.1.1 in pyproject.toml and adjust pydantic depende…