Skip to content
Sensor for Home Assistant scraping the Goodwe SEMS portal for solar panel production.
Python
Branch: master
Clone or download
tuxick and TimSoethout Add example template for accessing data (#11)
* Add example template for accessing data

* Improved the comments
Latest commit f8a0ab1 Dec 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
custom_components/sems Beautiful soup dependency no longer necessary since using API Dec 9, 2019
images add screenshots Jan 4, 2019
README.md Add example template for accessing data (#11) Dec 24, 2019

README.md

Goodwe SEMS scraper for Home Assistant

Setup

Crude sensor for Home Assistant that scrapes from GoodWe SEMS portal. Copy all the files in custom_components/sems/ in your Home Assistant config dir:

  • sensor.py
  • __init__.py
  • manifest.json

And update configuration. The ID of your Power Station can be retrieved by logging in to the SEMS Portal with your credentials: https://www.semsportal.com

After login you'll see the ID in your URL. E.g.: https://www.semsportal.com/powerstation/powerstatussnmin/12345678-1234-1234-1234-123456789012

In this example the ID of the Power Station is: 12345678-1234-1234-1234-123456789012

Example entry in configuration.yaml:

sensor:
  - platform: sems
    username: 'XXXX'
    password: 'XXXX'
    station_id : '12345678-1234-1234-1234-123456789012'
    scan_interval: 60

# Optional/example
# A template to ease access to the data as "sensor.pv_outputpower" etc.
  - platform: template
    sensors:
      pv_outputpower:
        value_template: '{{ states.sensor.sems_portal.attributes.outputpower }}'
        unit_of_measurement: 'W'
        friendly_name: "Power output"

Use the credentials you use to login to https://www.semsportal.com/.

scan_interval controls how often the sensor updates/scrapes. By default this seems to be every 60 seconds.

HACS

Note: The repository folder structure is changed in order to be compatible with HACS, see here how to add this as custom repo to HACS. It is also under submission to be included by default in HACS.

Screenies

Overview icon

Detail window

Credits

Reuses code from https://github.com/Sprk-nl/goodwe_sems_portal_scraper.

You can’t perform that action at this time.