Skip to content

Repository files navigation

reposit-python-client

Build Status

Retrieve data collected by your Reposit Power Home Energy Management System

Compatibility

  • Python 2.7
  • Python 3.5+ preferred

Installation

pip install reposit

Quickstart

from reposit.auth import RPConnection
from reposit import Controller, Account
user = RPConnection('username', 'password')
account = Account(user)
user_keys = account.get_user_keys()
controller = Controller(user, user_key=user_keys[0])
print(controller.battery_capacity)

Data

MethodParamsDescriptionUnit
battery_capacity-Get the capacity of the batterykWh
battery_min_state_of_charge-Get the minimum state of charge of the batteryPercentage (%)
has_battery-Bool of whether the user has a battery or notTrue/False
has_inverter-Bool of whether the user has an inverter or notTrue/False
get_solar_generation
  • start (timestamp)
  • end(timestamp)(optional, default=now)
Get a list of solar generation data based on start or endkW
latest_solar_generation-Get a list of the latest generation data. Goes back the last 24 hours.kW
get_house_consumption
  • start (timestamp)
  • end(timestamp)(optional, default=now)
Get a list of house consumption values based on start or endkW
latest_house_consumption-Get a list of the latest house consumption. Goes back the last 24 hours.kW
get_battery_data
  • start (timestamp)
  • end(timestamp)(optional, default=now)
Get a list of battery data based on start or endkWh
latest_battery_data-Get a list of the latest battery data. Goes back the last 24 hours.kWh
get_remaining_charge
  • start (timestamp)
  • end(timestamp)(optional, default=now)
Get a list of the battery's remaining charge values based on start or end. There should be at least a 5 minute gap between start and end timestamps (i.e. 300 seconds)

Note: This can be used to calculate the state of charge with the formula: (remaining_charge / battery_capacity) * 100`
kWh
get_meter_data
  • start (timestamp)
  • end(timestamp)(optional, default=now)
Get a list of meter data based on start or end. There should be at least a 5 minute gap between start and end timestamps (i.e. 300 seconds)kW
latest_meter_data-Get a list of the latest meter data. Goes back the last 24 hours.kW
feed_in_tariff-Get the feed-in-tariffDollars ($)

Links

Reposit Power

About

A library to communicate with a Reposit Controller

Resources

Stars

1 star

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages