skillfed

sense-energy

API for the Sense Energy Monitor

sense-energy v0.14.3 76.7K downloads/30d#14,604 on PyPI190
Permissive license Active released

What it is and what it does

sense_energy is a Python client for the unofficial Sense Energy Monitor API. It lets you pull real-time power readings, trend data, and individual device information from a Sense home energy monitor programmatically. The package is commonly used to integrate Sense data into home automation platforms like Home Assistant, SmartThings, and ActiveTiles.

Beyond API access, sense_energy also includes a SenseLink class that emulates TP-Link Kasa HS110 smart plugs, allowing you to report custom power usage back to your Sense monitor. This is useful for monitoring non-standard devices or testing. The package depends on async libraries (aiohttp, websockets), HTTP clients (requests, websocket-client), and serialization tools (orjson, msgpack, ciso8601) to handle real-time data efficiently.

Use it for:

  • Pull real-time power consumption from a Sense monitor into Home Assistant or another home automation platform
  • Log historical energy usage and solar production data to a database for analysis and reporting
  • Emulate smart plugs to report custom power readings (e.g., from non-standard devices) back to Sense
  • Build dashboards or alerts based on real-time active power and device-level consumption
  • Integrate Sense data into third-party energy analytics or billing tools

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides Python access to the Sense Energy Monitor API for retrieving real-time and trend energy data, plus local device emulation to report custom power usage to Sense monitors.

Yes. The package is actively maintained, has no known vulnerabilities, installs cleanly, and is widely used for Sense monitor integration. Install it if you need programmatic access to Sense energy data or want to emulate devices for the Sense monitor. The main caveat is that it relies on an unofficial API, so changes to Sense's backend could break functionality without warning.

Install

sense-energy on PyPI

pip

pip install sense-energy

uv

uv add sense-energy

poetry

poetry add sense-energy

Installing sense-energy

Before you install

Low install friction with a pure-Python wheel. Active maintenance with a recent release (30 days ago) and steady repository activity. Nine runtime dependencies are all common, well-maintained packages.

License in practice

MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions.

Quickstart

pip install sense_energy

from sense_energy import Senseable
sense = Senseable()
sense.authenticate(username, password)
sense.update_realtime()
print("Active:", sense.active_power, "W")

Verify before relying

  • Whether the Sense API credentials and authentication flow remain stable with Sense's unofficial API
  • Whether local device emulation (SenseLink) requires specific Sense app configuration beyond enabling TP-Link HS110/HS300 support

Package facts

License not declared (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 9 — async_timeout, ciso8601, orjson, requests, websocket-client, websockets, aiohttp, kasa-crypt, msgpack
Maintenance actively maintained — 30 days since the last release
Last repo commit
First released
Downloads 76,654/month — #14,604 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: sense_energy-0.14.3-py3-none-any.whl

Keywords: sense, energy, api

License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.9

Tags

sense energy monitor apihome energy monitoring pythonsense api clientenergy data retrievalsmart plug emulationreal-time power monitoringhome assistant energy integration
home-automationenergy-monitoringiot

More Monitoring packages