| Developer: | Glenn's Plugins Like this plugin? Show your appreciation! |
| Category: | Energy Monitoring |
| Github: | Github Repo |
| Assistance: | Get help! Check the online documentation |
| Plugin ID: | com.GlennNZ.indigoplugin.TeslaBattery |
| Latest release: | v1.0.35 released on June 18, 2026 |
| Release downloaded: | 3 times |
| Requires: | Indigo v2022.1.0 or higher |
| (Check the Releases tab below for older releases that may have different requirements) | |
| Download release v1.0.30 |
![]()
Changelog:
Add Control Panel Images to github for usage Add Battery Charging State Add Grid Usage T/F State for Image selection Add kW to all given production/consumption/usage data Change to PluginStore Update Code
A Plugin for Tesla Battery Gateway - enabling you to see everything that is happening within the Tesla App, and even re-create the app on a Indigo Control Panel (images are provided to help)
eg. Grid Usage in Watts & kW Solar Generation in Watts & kW Battery Usage in Watts & kW Home Consumption in Watts & kW Grid Usage T/G Battery Charging T/F
Also informs you in Connected to Grid - so in case of Grid outages can run Action Groups - eg. turn off devices.
Further Documentation to follow - but these pictures should explain
Usage
Need Tesla Battery with standard Gateway
Set up Static IP Address for this Gateway on the same network as Indigo Server
Install Plugin from
Click the Check Connection Button

If communicating - Generate Devices button will appear Click the Generate Devices button

This will create the plugins four devices with a folder called 'Tesla Battery Gateway'
eg.



More to follow. [Not extensively tested in all conditions as - as haven't had any negative numbers as solar generation has been poor lately! ]
Glenn
| v1.0.35 | Requires Indigo v2022.1.0+ | Released June 18, 2026 | Fixed 403 Forbidden errors from Tesla Owner API caused by Tesla enforcing TLS 1.3 |
| Released on: | June 18, 2026 |
| Requires: | Indigo v2022.1.0+ |
| Downloaded: | 3 times |
| Download this release | |

Connect your Tesla Powerwall to Indigo Domo for live monitoring, automation, and control — entirely from your local network, with optional Tesla cloud features.
- Fixed 403 Forbidden errors from Tesla Owner API caused by Tesla enforcing TLS 1.3 - Added TLSAdapter to bundled teslapy library — pins all HTTPS connections to TLS 1.3 only - Fix is equivalent to teslapy PR #176 (merged 2026-06-15, not yet in a release) - Removed battery_list() debug call from getauthTokenOnline() that crashed the background thread on every loop restart - getsiteInfo() now returns "" on exception (previously returned None, causing callers to misread failure as success) - getsiteInfo() logs a clear human-readable message on 403 rather than a stack trace
TariffResolver exceptions crashing runConcurrentThread — now caught and logged gracefullyget_tariff_rates_online unbound dev variable when no battery devices existsetOperationalModeOnline TypeError on auth failure (datareturned is always None)sendcommand local login payload — replaced with json.dumps()SystemIslandedReady grid state not handled — now treated same as SystemIslandedActivefillmetersinfo exception handler logging wrong function name (fillsiteinfo)if not self.tesla.authorized: guard (was commented out) — prevents unnecessary token refresh on every callgetsiteInfoOnline() call in setOperationalModeOnlineTypeError-causing 'authorization_required' in datareturned checkinfo log to debug| 🔋 Real-time charge percentage and battery state | ⚡ Live power flow — solar, grid, home, battery |
| 🛡️ Read and set backup reserve percentage | 📡 Local network polling — no cloud needed for monitoring |
| 💰 TOU tariff tracking (current rate period) | 🔔 Triggers on grid loss, restoration, faults, battery state |
| 📊 Rich Indigo device states for triggers & scripts | 🤖 Control battery mode and reserve via Action Groups |
Full setup guide → Installation wiki page
All documentation is in the Wiki:
| 📖 Installation | Step-by-step setup, static IP, refresh token |
| ⚙️ Configuration | Every Plugin Config field explained |
| 📟 Devices & States | All four devices and their full state lists |
| 🎮 Actions | Set operational mode, change backup reserve |
| ⚡ Triggers & Automation | Grid loss, battery events, example automations |
| 🖼️ Control Pages & Images | Using Powerwall images in control pages |
| 📋 Changelog | Full version history |
After running Generate Devices, four devices appear in the Tesla Battery Gateway folder:
| Device | Source | Key states |
|---|---|---|
| Tesla Site Info | Local + Online | Site name, grid code, battery mode, reserve %, tariff rate |
| Tesla Battery | Local + Online | Charge %, time remaining, storm mode, firmware version |
| Tesla Grid Status | Local | Connected/islanded, grid loss/restore timestamps, faults |
| Tesla Meters | Local | Solar W, Grid W, Home W, Battery W, solar/battery/grid boolean states |
The plugin includes 500+ images for use in Indigo control pages — charge level images (1–100%), combined state + charge images for all three states (charging / idle / discharging), and flow indicator icons.
| Charging 50% | Idle 50% | Discharging 75% |
|---|---|---|
![]() |
![]() |
![]() |
The batteryState_combined device state (e.g. charging_73) maps directly to these filenames. See the Control Pages wiki page for setup instructions.
| v1.0.30 | Requires Indigo v2022.1.0+ | Released May 31, 2026 | 1.0.30 Bug fixes. Wiki. Images. See Changelog. |
| Released on: | May 31, 2026 |
| Requires: | Indigo v2022.1.0+ |
| Downloaded: | 13 times |
| Download this release | |

Connect your Tesla Powerwall to Indigo Domo for live monitoring, automation, and control — entirely from your local network, with optional Tesla cloud features.
TariffResolver exceptions crashing runConcurrentThread — now caught and logged gracefullyget_tariff_rates_online unbound dev variable when no battery devices existsetOperationalModeOnline TypeError on auth failure (datareturned is always None)sendcommand local login payload — replaced with json.dumps()SystemIslandedReady grid state not handled — now treated same as SystemIslandedActivefillmetersinfo exception handler logging wrong function name (fillsiteinfo)if not self.tesla.authorized: guard (was commented out) — prevents unnecessary token refresh on every callgetsiteInfoOnline() call in setOperationalModeOnlineTypeError-causing 'authorization_required' in datareturned checkinfo log to debug| 🔋 Real-time charge percentage and battery state | ⚡ Live power flow — solar, grid, home, battery |
| 🛡️ Read and set backup reserve percentage | 📡 Local network polling — no cloud needed for monitoring |
| 💰 TOU tariff tracking (current rate period) | 🔔 Triggers on grid loss, restoration, faults, battery state |
| 📊 Rich Indigo device states for triggers & scripts | 🤖 Control battery mode and reserve via Action Groups |
Full setup guide → Installation wiki page
All documentation is in the Wiki:
| 📖 Installation | Step-by-step setup, static IP, refresh token |
| ⚙️ Configuration | Every Plugin Config field explained |
| 📟 Devices & States | All four devices and their full state lists |
| 🎮 Actions | Set operational mode, change backup reserve |
| ⚡ Triggers & Automation | Grid loss, battery events, example automations |
| 🖼️ Control Pages & Images | Using Powerwall images in control pages |
| 📋 Changelog | Full version history |
After running Generate Devices, four devices appear in the Tesla Battery Gateway folder:
| Device | Source | Key states |
|---|---|---|
| Tesla Site Info | Local + Online | Site name, grid code, battery mode, reserve %, tariff rate |
| Tesla Battery | Local + Online | Charge %, time remaining, storm mode, firmware version |
| Tesla Grid Status | Local | Connected/islanded, grid loss/restore timestamps, faults |
| Tesla Meters | Local | Solar W, Grid W, Home W, Battery W, solar/battery/grid boolean states |
The plugin includes 500+ images for use in Indigo control pages — charge level images (1–100%), combined state + charge images for all three states (charging / idle / discharging), and flow indicator icons.
| Charging 50% | Idle 50% | Discharging 75% |
|---|---|---|
![]() |
![]() |
![]() |
The batteryState_combined device state (e.g. charging_73) maps directly to these filenames. See the Control Pages wiki page for setup instructions.
Developed by Glenn Hawken · MIT Licence
| v1.0.16 | Requires Indigo v2022.1.0+ | Released Aug. 24, 2025 | Online Fix. Get Backup time remaining from Tesla Server. Refresh Token Checks. Read and Store |
| Released on: | Aug. 24, 2025 |
| Requires: | Indigo v2022.1.0+ |
| Downloaded: | 18 times |
| Download this release | |
![]()
Read Tesla Tarriff information online and use this to hourly update current siteInfo with information as to current this second Tarriff. Allowing triggering on different Tarriff levels. (OFF Peak, Peak, Shoulder etc.) These tariffs you setup manually within the telsa app if can't find the exact plan.
Pull Online time remaining (calculated by Tesla) on their servers (requires online account)
For Online connection/usage need to obtain a Tesla Access Token: Simplest way: With this Mac Store App: https://apps.apple.com/us/app/auth-app-for-tesla/id1552058613
| Released on: | April 13, 2024 |
| Requires: | Indigo v2022.1.0+ |
| Downloaded: | 16 times |
| Download this release | |
Python 3 Version:
Update to online connection, which Tesla is removing slowly. (Online aspects may fail in the near term) Update telsapy library to latest, removing some endpoints that may have ceased to exist
For Online Communication. (Can function receiving local data without control without Online aspects) For Online connection/usage need to obtain a Tesla Access Token, to paste into PluginConfig.
Simplest way: With this Mac Store App: https://apps.apple.com/us/app/auth-app-for-tesla/id1552058613
| Released on: | Oct. 16, 2023 |
| Requires: | Indigo v2022.1.0+ |
| Downloaded: | 16 times |
| Download this release | |
Python 3 Version:
Fix Online Communication. (Can function receiving local data without control without Online aspects) For Online connection/usage need to obtain a Tesla Access Token, to paste into PluginConfig.
Simplest way: With this Mac Store App: https://apps.apple.com/us/app/auth-app-for-tesla/id1552058613
| Released on: | June 17, 2021 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 14 times |
| Download this release | |
Add option of disabling Tesla Online access - recommended currently given API access issues
This: Allows full local data retrieval from Powerwall, DOES NOT ALLOW Mode changes
Currently API is back working, but may change and this gives option to disable this if not being used.
Fix for Action groups (some merge/rebase somewhere used old Actions.xml - hopefully the only issue)
| Released on: | Jan. 5, 2021 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 16 times |
| Download this release | |
0.6.5
Fix for battery percent not entered.
| Released on: | Nov. 1, 2020 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 16 times |
| Download this release | |
![]()
Given changes in 1.50.1 removing local control Moves to using Tesla online API to change battery mode, percentage. Update code to achieve this, update pluginConfig data, remove unneeded data
Also enables addition of online states in Battery Online Battery States: - battery mode - Current set battery backup reserve percentage - software version of battery - battery count
This remains optional, if not controlling battery fields can be left blank, new states will also remain blank.
| Released on: | Oct. 20, 2020 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 20 times |
| Download this release | |
![]()
Fix for missing site info data In particular missing solar info, but checks for all missing for future issues
| Released on: | Aug. 14, 2020 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 22 times |
| Download this release | |
![]()
Add action to change operational Mode of Battery (Tested for UK) Add few more options to site Information Further hardening of errors if missing data/regional differences Fix for siteinfo data change with new firmware
| Released on: | June 16, 2019 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 15 times |
| Download this release | |
![]()
Checks for missing Site Info data (particularly Grid_Code) but all other data. Remove Update checks (Continues to use subprocess Curl to bypass any security issues on older Mac/OSXs)
| Released on: | July 14, 2018 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 16 times |
| Download this release | |
![]()
Changelog: - Fix for IP address not sticking until save - Change to HTTPS connection new standard - Change to using CURL for this and requests will fail depending on Mac and Python version (TLS 1.2 version error) - Change to implementing a CURL proc timeout
| Released on: | June 11, 2018 |
| Requires: | Indigo v7.0.2 thru v2022.2 |
| Downloaded: | 17 times |
| Download this release | |
![]()
Changelog: - Fix for logging not sticking - Add Triggers for Various Events - More example Images to reproduce the Tesla App - Checks if gateway offline - Change source of data - Add few more True/False for SendingtoGrid, SolarGenerating,BatteryCharging, BatteryDischarging - Ignore low level Negatives e.g -0.0
| Released on: | June 10, 2018 |
| Requires: | Indigo v5.0.0 thru v2022.2 |
| Downloaded: | 15 times |
| Download this release | |
![]()
Changelog:
Add Control Panel Images to github for usage Add Battery Charging State Add Grid Usage T/F State for Image selection Add kW to all given production/consumption/usage data Change to PluginStore Update Code
A Plugin for Tesla Battery Gateway - enabling you to see everything that is happening within the Tesla App, and even re-create the app on a Indigo Control Panel (images are provided to help)
eg. Grid Usage in Watts & kW Solar Generation in Watts & kW Battery Usage in Watts & kW Home Consumption in Watts & kW Grid Usage T/G Battery Charging T/F
Also informs you in Connected to Grid - so in case of Grid outages can run Action Groups - eg. turn off devices.
Further Documentation to follow - but these pictures should explain
Usage
Need Tesla Battery with standard Gateway
Set up Static IP Address for this Gateway on the same network as Indigo Server
Install Plugin from
Click the Check Connection Button

If communicating - Generate Devices button will appear Click the Generate Devices button

This will create the plugins four devices with a folder called 'Tesla Battery Gateway'
eg.



More to follow. [Not extensively tested in all conditions as - as haven't had any negative numbers as solar generation has been poor lately! ]
Glenn
| Released on: | June 9, 2018 |
| Requires: | Indigo v5.0.0 thru v2022.2 |
| Downloaded: | 16 times |
| Download this release | |
![]()
A Plugin for Tesla Battery Gateway - enabling you to see everything that is happening within the Tesla App.
eg. Grid Usage in Watts Solar Generation in Watts Battery Usage in Watts Home Consumption in Watts
Also informs you in Connected to Grid - so in case of Grid outages can run Action Groups - eg. turn off devices.
Further Documentation to follow - but these pictures should explain
Usage
Need Tesla Battery with standard Gateway
Set up Static IP Address for this Gateway on the same network as Indigo Server
Install Plugin from
Click the Check Connection Button

If communicating - Generate Devices button will appear Click the Generate Devices button

This will create the plugins four devices with a folder called 'Tesla Battery Gateway'
eg.



More to follow. [Not extensively tested in all conditions as - as haven't had any negative numbers as solar generation today]
Glenn
| Released on: | June 9, 2018 |
| Requires: | Indigo v5.0.0 thru v2022.2 |
| Downloaded: | 17 times |
| Download this release | |
First Release testing update code.