Skip to content

halfrubbish/AgileBattery

Repository files navigation

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 -RefreshTokenPath

You'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/matt33479

Thinking of joining Octopus Energy? Use my referral link to save £50 https://share.octopus.energy/wise-snake-478

About

Tesla Powerwall and Octopus Energy integration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published