Releases: scottbonline/sense
Optional datetime param for Trend Data
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
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
- @lymanepp made their first contribution in #49
- @benbogart made their first contribution in #52
Full Changelog: 0.9.2...0.9.3
Backwards compatibility for getTrends
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.
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
The client session can now be passed to the async instance to be used for the non-websocket API calls
Small fixes
Performance and formatting of SenseLink components.
Default value of active voltage changed to list to match normal value
Added local device emulation with SenseLink
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
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
0.7.1 Add timeout to prevent home assistant block on startup when sense is …
Async Release
Update adds async version