Skip to content

Yenthe666/pysolaredge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pysolaredge

Python API wrapper for SolarEdge monitoring.
This library allows you to easily communicate with the SolarEdge API to get data about solar installations.
For more information about the documentation see https://www.solaredge.com/sites/default/files/se_monitoring_api.pdf

Installation

pip3 install py-solaredge

Getting started

Importing the SolarEdge client:

from solaredge.api.client import Client

Initializing the SolarEdge API client, and setting your API key:

se_client = Client()
se_client.set_api_key('XXX')

API's

All of the API classes are available through the client object. Client() is the base instance that allows access to the underlying classes and to call API endpoints to get data. Classes available at this point are sites and equipment.

Sites

Getting all sites:

sites = se_client.sites.get_sites()

Getting the number of sites:

number_of_sites = se_client.sites.get_total_sites()

Equipment

Getting the equipment / component list for a location:

equipment = se_client.equipment.get_site_equipment('location_id')

Batteries

Getting data about the batteries for a location (for the last day):

battery = se_client.battery.get_site_storage_data(12345, datetime.now() - timedelta(days=1), datetime.now())

About

Python API wrapper for SolarEdge monitoring

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages