Skip to content

Releases: scottbonline/sense

Optional datetime param for Trend Data

03 Jan 23:59
Compare
Choose a tag to compare

update_trend_data() now can take a datetime to get trend data from a specific date. Useful if the machine running the function is in a different timezone than the energy monitor

0.9.3

09 Nov 00:29
Compare
Choose a tag to compare

What's Changed

  • Merge changes from cbpowell/SenseLink to reduce log noise by @lymanepp in #49
  • Fix api_call and modify get_all_usage_data by @benbogart in #52

New Contributors

Full Changelog: 0.9.2...0.9.3

Backwards compatibility for getTrends

17 Aug 15:51
8623ae3
Compare
Choose a tag to compare
Add backwards compatibility to get_trend(). (#48)

* Add backwards compatibility to get_trend().

Add logic to handle prior boolean input to get_trend() to avoid breaking existing the existing HA sensor, as well as other users.

* Bump version up.

Expose more SenseableBase properties.

15 Aug 15:54
12c194d
Compare
Choose a tag to compare

Refactored get_trend() to handle more than two keys from self._trend_data.

  • 'key' is now a keyword argument on get_trend() with a default of "consumption", no longer is set as a boolean inside the function.
  • Perform type check on data referenced by key, ensure type is ...
  • dict (for consumption/production)
  • float (for to/from_grid and net_production properties)
  • int (for production_pct).
  • Converted existing True/False parameters on self.get_trend() calls to explicit key names.

Added new properties exposing existing information already in self._trend_data for daily scale and above.

  • production_pct
  • net_production
  • from_grid
  • to_grid

Add support for passing in the client session

12 Feb 19:52
Compare
Choose a tag to compare

The client session can now be passed to the async instance to be used for the non-websocket API calls

Small fixes

03 Oct 01:52
Compare
Choose a tag to compare

Performance and formatting of SenseLink components.
Default value of active voltage changed to list to match normal value

Added local device emulation with SenseLink

21 Aug 18:36
Compare
Choose a tag to compare

The SenseLink class emulates the energy monitoring functionality of TP-Link Kasa HS110 Smart Plugs and allows you to report "custom" power usage to your Sense Home Energy Monitor. This requires enabling "TP-Link HS110/HS300 Smart Plug" in the Sense app.

Updated snyc version to not validate ssl

Default SSL Certificates Loaded only once

12 May 02:28
5f910b6
Compare
Choose a tag to compare
Only load ssl default ssl certificates once (#35)

Fixes I/O in the event loop

Each update was creating a new ssl context which was
doing blocking i/o to load the default ssl certs

Connection Timeout

11 Mar 01:07
6f37765
Compare
Choose a tag to compare
0.7.1

Add timeout to prevent home assistant block on startup when sense is …

Async Release

06 Mar 01:13
b7d3be2
Compare
Choose a tag to compare

Update adds async version