About
TSUN Local is a Home Assistant integration that reads TSUN solar micro-inverters over the local network. It talks directly to the inverter, with no cloud service and no proxy in the data path, and it only reads data without writing any inverter configuration. It adds sensors, binary sensors for inverter online status and alarm state, and a button to refresh data on demand. Active alarms are shown as readable descriptions with stable protocol position codes, and unknown positions stay visible with neutral wording. Polling is adaptive, with separate intervals for normal operation, after an error and while offline or at night. Advanced diagnostic entities are disabled by default, and setup is done in the UI by entering an address manually or using discovery.
Automatic summary of the README and code of jptstar/tsun-local. Something wrong, or are you the maintainer and want your own text here? Get in touch
Shows in Vulpo
Button card, Chart card, Apple Watch.Installs over time
#1,442 of 1,483 Marketplace integrations. Installs sharing analytics.
Supports
- Works locallyTalks to your devices on your own network. No vendor cloud in between.
- From the MarketplaceInstalled through the Marketplace, formerly HACS.
- Actively maintainedIts author released or pushed a change in the last six months.
Provides
- Sensors
Setting it up
Install it from the Marketplace and restart Home Assistant, then add it under Settings, Devices and services.
Add a device manually
- IP address
- Port
- SN
- Protocol selection method
TSUN devices found
- Discovered address
- Port
- SN
Search another subnet
- IPv4 subnet
- Port
Update connection
- IP address
- Port
After setup
- Adaptive polling
- Normal interval
- Interval after error
- Offline / night
- Failures before offline
Texts from the code of jptstar/tsun-local.
Entities
- Binary sensorsMicro-inverter online, Inverter alarm
- ButtonsRefresh data
- SensorsRaw global alarm 0, Raw global alarm 1, Raw global alarm 2, Raw global alarm 3, Raw secondary alarm 0, Raw secondary alarm 1, Raw secondary alarm 2, Raw secondary alarm 3, Raw alarm code 1, Raw alarm code 2, Raw alarm code 3, Raw alarm code 4, and 117 more
Troubleshooting
- DiagnosticsDownloads a diagnostics file to attach to a bug report.
Information
- Installs
- 54 sharing analytics
- GitHub stars
- 7
- Connection
- Works locally
- Upkeep
- Updated in the last 6 months
- Version
- v1.6.2,
- Category
- Energy, Solar and batteries
- Kind
- Marketplace integration
- Needs
- Needs the Marketplace (HACS on 2026.10 and older)
- Domain
tsun_local- Issues
- Report an issue












