Skip to main content

Library to communicate with Solar Frotier inverters

Project description

PySolarFrontier

PySolarFrontier interacts as a library to communicate with Solar Frontier inverters.

I created this library to use it in the Solar Frontier Inverter integration made for Home Assistant.

Confirmed to work with the SF-WR-3000 inverter.

Credits to fredericvl and his pysaj library, alot of the code is based on his library.

Example usage

Customize based on your needs.

#!/usr/bin/env python3
import pysolarfrontier as pysf
import asyncio

INVERTER_IP = 'x.x.x.x'

async def example():
    # Initiate sensors
    sensor_def = pysf.Sensors()
    # Define IP of the inverter
    sf = pysf.SF(INVERTER_IP)
    # Get sensor values
    await sf.read(sensor_def)
    # Print sensor values
    for sensor in sensor_def:
        print()
        print('key:             ', sensor.key)
        print('name:            ', sensor.name)
        print('unit:            ', sensor.unit)
        print('value:           ', sensor.value)
        print('per_day_basis:   ', sensor.per_day_basis)
        print('per_total_basis: ', sensor.per_total_basis)
        print('date:            ', sensor.date)
        print('enabled:         ', sensor.enabled)

asyncio.run(example())

Project details


Download files

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

Source Distribution

pysolarfrontier-1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

pysolarfrontier-1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file pysolarfrontier-1.1.tar.gz.

File metadata

  • Download URL: pysolarfrontier-1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for pysolarfrontier-1.1.tar.gz
Algorithm Hash digest
SHA256 371287d603847f0ed6e54813bfa5526565139f542be0703b039ec9114f704b0e
MD5 e4994d34d0973eb7b9450f5db41cf7da
BLAKE2b-256 c220cbbb2f6053dce0d3ab38e02a3228b8e6ebd63755bfeadd8e9c67512a6c10

See more details on using hashes here.

File details

Details for the file pysolarfrontier-1.1-py3-none-any.whl.

File metadata

  • Download URL: pysolarfrontier-1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for pysolarfrontier-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61f550d2fed99dfc501ca33b17d0f969493d98037aa24eeece31cadf205c5a78
MD5 9989c99e07ddac4b239eb645dc45e96b
BLAKE2b-256 47857a223acab98d8d711deafd3cecc8b1e149ccb687f1a3e63120d75d2dd33e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page