Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

☀⚡🧠Smart(er) Home Battery Charging #102

Open
8 of 9 tasks
dannytsang opened this issue Mar 19, 2024 · 3 comments
Open
8 of 9 tasks

☀⚡🧠Smart(er) Home Battery Charging #102

dannytsang opened this issue Mar 19, 2024 · 3 comments

Comments

@dannytsang
Copy link
Owner

dannytsang commented Mar 19, 2024

Better manage the overnight charging along with Octopus tariff. In my case, Octopus Agile.

In the winter, it was 99% fully charged overnight so very little logic is required to managed the grid charging. As Spring starts, the reliance on the grid charging can be reduced as more solar generation is present.

This enhancement is to better manage the grid charging using cheaper electricity whilst leaving capacity during the day for solar storage.

A few factors it should consider:

  • Solar forecast - make sure it does not over charge the battery and allow the ☀sun do it's work.
  • Weather forecast - offset/adjust the in tandem with the solar forecast. ⛅
  • Temperature forecast - The temperature can also affect the efficiency of the panels. 🌡️
  • Electricity provider rates - Octopus Agile has different rates every 30 minutes so it should target the cheaper slots. 🐙
  • Household load - the amount of electricity consumed varies and affects how much is required. 🏡
  • Take into account current charge / target SOC for time of day 🔋
  • Current battery state of charge 🔋
  • Take into account holiday mode ✈️
  • No self sustaining 1+ hour period in a day 🏂
@dannytsang dannytsang self-assigned this Mar 19, 2024
dannytsang added a commit that referenced this issue Mar 19, 2024
Added half hourly forecast to forecast notification.

Update #102
dannytsang added a commit that referenced this issue Mar 21, 2024
Average currently seems high at 0.99kWh. I suspect this would differ if the average was broken down to per day of the week average but this does not seem to be possible right now.

Update #102
dannytsang added a commit that referenced this issue Apr 11, 2024
@dannytsang
Copy link
Owner Author

dannytsang commented Apr 25, 2024

Total Capacity: 13kwh
Charge at 3kWh = 33.30% per hour (when below 90%).


Target charge: 45% (5.85kwh).

21:00 - Forecast and reporting time.
70% of 13kWh = 9.1kWh
60% of 13kWh = 7.8kWh (usable capacity)

2:30 - First cheapest rate to charge.
33% of 13kWh = 4.29kwh
23% of 13kWh = 2.99kWh (usable capacity)

5.5h difference between 21:00 & 2:30

@dannytsang
Copy link
Owner Author

Target charge: 45% (5.85kwh).

21:00 - Forecast and reporting time.
64% of 13kWh = 8.32kWh
54% of 13kWh = 7.02kWh (usable capacity)

3:30 - First cheapest rate to charge.
28% of 13kWh = 3.64kwh
18% of 13kWh = 2.34kWh (usable capacity)

6.5h difference between 21:00 & 3:30

dannytsang added a commit that referenced this issue Apr 28, 2024
Added emoji support for weather again.

Update #102
dannytsang added a commit that referenced this issue Apr 28, 2024
dannytsang added a commit that referenced this issue Apr 30, 2024
This will provide the amount of energy left in the battery in seconds.

Update #102
dannytsang added a commit that referenced this issue May 11, 2024
dannytsang added a commit that referenced this issue May 13, 2024
This is a force charge of the battery and does not notification.

Update #102
dannytsang added a commit that referenced this issue May 16, 2024
dannytsang added a commit that referenced this issue May 29, 2024
dannytsang added a commit that referenced this issue Jun 10, 2024
A target rate can be manually adjusted and I see this as being changed more frequently compared to below export rate.

This will allow periods where it's below export rate but only charge when it is significantly less or delay charging to a more favourable period semi automatically.

For example:
1. 14:00-15:00: 14p/kWh
2. 15:00-15:30: 9p/kWh
3. 15:30-16:00: 13p/kWh

You can use it to target the 9p/kWh or include 13p but not 14p without having to constantly adjust schedules. I can see these would differ in frequency of usage between summer and winter. i.e Winter will be charging as much from the grid due to lack of sun.

Update #102
dannytsang added a commit that referenced this issue Jun 15, 2024
Added weather to solar forecast data. This will be used in the future for weather compensation solar charging.

Removed weather forecast from nightly solar forecast report because it is now retuned in solar forecast data.

Update #102
dannytsang added a commit that referenced this issue Jun 15, 2024
This will be used to modify the solar forecast depending on the weather condition.

Update #102
dannytsang added a commit that referenced this issue Jun 17, 2024
Added minimum solar for first and last generation. This will fix issue where it was less than 0.01 being rounded to 0kWh in the notification.

Update #102
dannytsang added a commit that referenced this issue Jun 17, 2024
…st script.

Added debugging messages on weather data to notification.

Update #102
dannytsang added a commit that referenced this issue Jun 22, 2024
Moved octopus charging schedule priority to below target export rate.

Update #102
dannytsang added a commit that referenced this issue Jul 4, 2024
Added solar forecast source to forecast data response.

Update #102
dannytsang added a commit that referenced this issue Jul 11, 2024
This can happen when it cannot find a forecast matching the criteria.

Update #102
dannytsang added a commit that referenced this issue Jul 17, 2024
…ript errors setting the variables it will still work.

A temporary workaround until the variables are more stable.

Update #102
dannytsang added a commit that referenced this issue Jul 24, 2024
dannytsang added a commit that referenced this issue Jul 27, 2024
Added remaining solar using Solcast.

Update #102
dannytsang added a commit that referenced this issue Jul 27, 2024
dannytsang added a commit that referenced this issue Aug 16, 2024
Added battery charge level to notification.

Update #102
dannytsang added a commit that referenced this issue Oct 12, 2024
Try to prevent it from stopping the check solar script from failing.

Update #102
dannytsang added a commit that referenced this issue Nov 1, 2024
Only applies to Agile tariff if the battery runtime won't make it past peak electricity period.

Update #102
@dannytsang
Copy link
Owner Author

Compensation is in place and require fine tuning before implementing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant