Skip to content

0.13.0 Device Abstraction With More Stats

Compare
Choose a tag to compare
@kbickar kbickar released this 11 Oct 21:33
· 5 commits to stable since this release
3c3107e

What's Changed

  • sense.devices now returns a list of SenseDevices containing attributes name, icon, is_on, power_w, and trend stats daily_kwh, weekly_kwh, monthly_kwh, yearly_kwh
  • Scale enum added with values DAY, WEEK, MONTH, YEAR, and CYCLE. These replace the previous string values that can would passed to the get_trend function (or anything that took a scale).
  • Added sense.get_stat(self, scale: Scale, key: str) -> float function similar to get_trend
  • Updated Python minimum version to Python 3.9
  • Added async function sense.fetch_devices() -> None to fetch discovered device data
  • Added typing info to most functions