Skip to main content

ShineMonitor API in Python

ShineMonitor is the cloud backend (api.shinemonitor.com) used by several inverter vendor apps — WatchPower, SolarPower, etc. By decompiling the WatchPower Android APK with Jadx, the authentication flow was reverse-engineered, giving direct access to the backend REST API for programmatic inverter queries.

pip install shinemonitor-api

Check the examples/ folder for usage. To run the examples or develop the library, use uv:

uv sync --all-groups

That installs all dependencies, including the optional examples group.

Sync and async

Two thin I/O shells over a shared sansio core (URL building, signing, parsing). Pick whichever fits the calling code — both expose the same methods.

# sync
from shinemonitor_api import ShineMonitorAPI

with ShineMonitorAPI() as api:
    api.login(username, password)
    devices = api.get_devices()
    for device in devices:
        print(api.get_last_data(device).main)
# async
import asyncio
from shinemonitor_api.aio import AsyncShineMonitorAPI

async def main():
    async with AsyncShineMonitorAPI() as api:
        await api.login(username, password)
        devices = await api.get_devices()
        snapshots = await asyncio.gather(
            *(api.get_last_data(d) for d in devices)
        )
        for snapshot in snapshots:
            print(snapshot.main)

asyncio.run(main())

Both clients accept an httpx.Client / httpx.AsyncClient for reuse in apps that already manage one (e.g. Home Assistant).

Targeting a different vendor app

The ShineMonitor backend is shared by many white-label apps (WatchPower, RenoClient / Renovigi, ...). Devices are scoped to the app that registered them, so pass the matching profile — WatchPower is the default.

from shinemonitor_api import ShineMonitorAPI, AppProfile

# a shipped preset
with ShineMonitorAPI(app=AppProfile.RENOCLIENT) as api:
    api.login(username, password)
    devices = api.get_devices()

# an app without a preset — supply its identifiers
custom = AppProfile(app_id="com.example.app", app_version="1.0.0")
api = ShineMonitorAPI(app=custom)

AppProfile.from_name("renoclient") resolves a shipped preset by name (handy when the app is chosen from config). get_devices() automatically falls back from the undocumented webQueryDeviceEs action to the documented queryDevices when the former reports no devices.

Migrating from watchpower-api

watchpower-api is the previous PyPI name. The package was renamed to shinemonitor-api because the upstream API serves more than just the WatchPower app. The WatchPowerAPI class is now ShineMonitorAPI.

# before
from watchpower_api import WatchPowerAPI

# after
from shinemonitor_api import ShineMonitorAPI

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shinemonitor_api-0.8.0.tar.gz (127.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shinemonitor_api-0.8.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file shinemonitor_api-0.8.0.tar.gz.

File metadata

  • Download URL: shinemonitor_api-0.8.0.tar.gz
  • Upload date:
  • Size: 127.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for shinemonitor_api-0.8.0.tar.gz
Algorithm Hash digest
SHA256 1f65b4318efb2c31ea0365f39f3b2c951c59c99abfc8ca9a305a5ed4a283625c
MD5 dfb2ae6538dec4fc48ecc8e3041d032f
BLAKE2b-256 666dea0b77a614b8085a6e1b32380c5b8e9ddfda5015700d31967e40bd53d077

See more details on using hashes here.

File details

Details for the file shinemonitor_api-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: shinemonitor_api-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for shinemonitor_api-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a62443628907a6c8186b846b1781a9064e682a4c26dcd3132a6222799c29b58
MD5 6400c5afb97355def0c5ab71c99c8eb8
BLAKE2b-256 b41673900ec75401848f24889a76d6bb4110df52a1275b204fb1b886c35834a7

See more details on using hashes here.

Release history Release notifications | RSS feed

0.8.1

2 files

This release

0.8.0 This release

2 files

0.7.0

2 files

0.6.5

2 files

0.6.4

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page