Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Elbers committed Jul 7, 2023
2 parents 7d1c6c4 + ba98c9d commit a567cb6
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 10 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/hassfest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Validate with hassfest

on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"

jobs:
validate:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- uses: home-assistant/actions/hassfest@master
18 changes: 18 additions & 0 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Validate

on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
validate-hacs:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- name: HACS validation
uses: "hacs/action@main"
with:
category: "integration"
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# Solaredge Forecast integration

Solaredge Forecast integration for Home Assistant uses the python package "SolarEdge" https://pypi.org/project/solaredge/

The Solaredge Forecast integration will collect monthly averaged solar product from the start of the production of the site.
It will forecast the total produced energy in kWh for a period of time (max 1 year).
Home assistant component that forecasts the total solar energy generation for a specified time period by using the [solaredge library](https://pypi.org/project/solaredge/)

## How to install

1. Make sure you have [hacs](https://hacs.xyz/) installed
1. Make sure yo have [hacs](https://hacs.xyz/) installed
2. Add this repository as custom repository to hacs by going to hacs, integrations, click on the three dots in the upper right corner and click on custom repositories.
3. In the repository field, fill in the link to this repository (https://github.com/nelbs/solaredge-forcast) and for category, select `Integration`. Click on `Add`
4. Go back to hacs, integrations and add click on the blue button `Exlore and download repositories` in the bottom left corner, search for `Solaredge-Forecast` and install it
4. Go back to hacs, integrations and add click on the blue button `Exlore and download repositories` in the bottom left corner, search for `Solaredge Forecast` and install it
5. Reboot HA
6. In HA goto Config -> Integrations. Add the Solaredge-Forecast integration to HA.
7. In your lovelace dashboard, add a card with the Solaredge-Forecast entities.
Expand Down Expand Up @@ -44,4 +41,4 @@ Day of the month for which the total energy will be predicted.
**Endmonth of the forecast period**

Month of the month for which the total energy will be predicted. If the enddate is after the current date the
current year is used for the enddate. If the enddate is before the current date the next year will be used.
current year is used for the enddate. If the enddate is before the current date the next year will be used.
4 changes: 2 additions & 2 deletions custom_components/solaredge_forecast/manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"domain": "solaredge_forecast",
"name": "Solaredge Forecast",
"config_flow": true,
"codeowners": ["@nelbs"],
"config_flow": true,
"dependencies": [],
"documentation": "https://www.home-assistant.io/integrations/solaredge_forecast",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/nelbs/solaredge-forcast/issues",
"requirements": [],
"version": "0.1.0"
}


Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def __init__(self, startdate, enddate, site_id, account_key):

def get_solar_forecast(self):
"""Calculate solar energy forecast."""

now = datetime.now()
yesterday = now.date() - timedelta(days=1)
today = now.date()
Expand Down

0 comments on commit a567cb6

Please sign in to comment.