https://github.com/halfrubbish/AgileBattery
Tesla Powerwall and Octopus Energy integration
https://github.com/halfrubbish/AgileBattery
Last synced: 5 months ago
JSON representation
Tesla Powerwall and Octopus Energy integration
- Host: GitHub
- URL: https://github.com/halfrubbish/AgileBattery
- Owner: halfrubbish
- License: gpl-3.0
- Created: 2023-08-25T20:45:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-07T20:26:35.000Z (about 1 year ago)
- Last Synced: 2024-08-13T07:05:04.773Z (9 months ago)
- Language: PowerShell
- Size: 43.9 KB
- Stars: 9
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - halfrubbish/AgileBattery - Tesla Powerwall and Octopus Energy integration (PowerShell)
README
# AgileBattery
Powershell module to allow Tesla Powerwall and Octopus Energy integration for those on an Agile tariff. The module will continously control of the amount of energy stored in the powerwall, charging it during the cheapest periods of the day# Setup
You'll need to generate a Tesla refresh access token using the page here: https://tesla-info.com/tesla-token.php that you need to pass as either -RefreshToken or put in a txt file and pass to -RefreshTokenPathYou'll need to set your powerwall to Time Based Control, and create a schedule with 1 single half hour "off-peak" tariff slot. I would recommend picking a slot in the early hours of the morning as it will charge every day in that slot they tend to be cheaper in general then. This is required as otherwise varying the charge/discharge ratio (Backup vs Time Based Control %) will not work.
# Running it
```
Import-Module AgileBattery.psm1
Invoke-AgileBatteryControl -RefreshToken "abcdefghijklmnop123456......etc"
```# Shameless Referral
Found this useful? Considering buying a tesla? Use my referral link to buy a Tesla and get up to £500 off. https://ts.la/matt33479Thinking of joining Octopus Energy? Use my referral link to save £50 https://share.octopus.energy/wise-snake-478