You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Monitor your Sharesight investment portfolio directly from Home Assistant. Track portfolio value, daily/weekly/financial-year performance, per-market breakdowns, holdings, dividends, trades, contributions, and more.
Key features:
OAuth2 authentication — no API keys stored in YAML
Automatic portfolio discovery — select your portfolio from a dropdown during setup
Per-market devices — each exchange (ASX, NYSE, LSE, etc.) gets its own HA device
Cash account tracking — including Xero-linked accounts
Auto-discovery of new markets and cash accounts (checked every 10 minutes)
Supports both standard and Edge (developer) API accounts
Multiple portfolio support — add the integration once per portfolio
Prerequisites
Before installing, you need to create an API application on Sharesight:
Go to HACS → Integrations → Explore & Download Repositories → search for Sharesight → Download
Restart Home Assistant
Option B: Manual
Download or clone this repository
Copy the custom_components/sharesight folder into your Home Assistant custom_components/ directory
Restart Home Assistant
Setup
After installation and restart:
In Home Assistant, go to Settings → Devices & Services → Application Credentials
Click Add Application Credentials and select Sharesight
Enter the Client ID and Client Secret from the Prerequisites step
Go to Settings → Devices & Services → click + Add Integration → search for Sharesight
You'll be redirected to Sharesight to authorize the connection — log in and click Allow
After returning to Home Assistant, select your portfolio from the dropdown list
Optionally enable Use Edge API if you have a Sharesight developer account
Click Submit — the integration will create devices and sensors for your portfolio
Adding multiple portfolios: Repeat steps 4–8 for each portfolio you want to monitor. Each portfolio gets its own set of devices.
Sensors
All sensors are organized into separate HA devices by category. Data refreshes every 30 seconds.
Portfolio
Sensor
Description
Portfolio Value
Current total portfolio value
Capital Gain / Percent
Total capital gain and percentage
Total Gain / Percent
Total return including dividends
Currency Gain / Percent
Gain/loss from currency movements
Dividend Gain / Percent
Total dividend income gain
Cost Basis
Total amount invested
Unrealised Gain / Percent
Paper profit/loss on open positions
Annualised Return Percent
Annualised total return
Portfolio Start Value
Portfolio value at inception
Portfolio ID, User ID, Primary Currency, Portfolio Name, Financial Year End
Diagnostic info
Daily Performance
Sensor
Description
Daily Change Amount / Percent
Today's total change
Daily Capital / Currency / Dividend Gain (+ Percent)
Breakdown of today's change
Daily Start Value / End Value
Opening and current value today
Weekly Performance
Sensor
Description
Weekly Change Amount / Percent
This week's total change
Weekly Capital / Currency / Dividend Gain (+ Percent)
Breakdown of this week's change
Weekly Start Value / End Value
Monday open and current value
Financial Year
Sensor
Description
FY Change Amount / Percent
Financial year total change
FY Capital / Currency / Dividend Gain (+ Percent)
Breakdown of FY change
FY Annualised Return Percent
Annualised return for the FY
FY Start Value / End Value
Start-of-FY and current value
Per-Market (one device per exchange, e.g. ASX, NYSE, LSE)
Sensor
Description
Value
Total value of holdings on this exchange
Capital / Total / Currency / Dividend Gain (+ Percent)
Gain breakdowns per market
Cost Basis
Total invested in this market
Annualised Return Percent
Annualised return for this market
Holding Count
Number of holdings on this exchange
Holdings
Sensor
Description
Number of Holdings
Total count of holdings
Largest Holding (Symbol / Value / Percent)
Your biggest position
Smallest Holding (Symbol / Value)
Your smallest position
Top Gain (Symbol / Amount / Percent)
Best performing holding
Worst Gain (Symbol / Amount / Percent)
Worst performing holding
Positive / Negative Holdings Count
How many holdings are green vs red
Positive / Negative Holdings Percent
Share of holdings that are green vs red
Average / Median Holding Value
Central tendency of holding sizes
Total Holdings Value / Gain
Aggregate value and gain across holdings
Top 3 / Top 5 Holdings Percent
Concentration of portfolio in largest holdings
Unconfirmed Transactions
Trades awaiting confirmation
Cash Accounts
Sensor
Description
Cash Balance
Balance per cash account (including Xero)
Income / Dividends
Sensor
Description
Total Dividend Income
Total dividends received (accrual basis)
Number of Dividends
Count of dividend payments
Average / Largest Dividend Amount
Central tendency / record dividend
Largest Dividend Symbol
Holding that paid the largest single dividend
Last Dividend Date
Date of most recent dividend
Dividends Last 30 Days / YTD / Last 12 Months / Previous Year
Period-bucketed dividend totals
Dividends Received (Cash)
Actual dividends paid into cash accounts
Dividend Yield Percent (current / TTM)
Yield on portfolio value
Upcoming Dividends Count
Payouts with future ex-dividend dates
Next Dividend (Date / Amount / Symbol)
Soonest upcoming dividend
DRP Reinvestment Count
Dividends reinvested via DRP
Total Gross Dividend Income
Pre-tax dividend total
Total Resident / Non-Resident Withholding Tax
Withholding tax aggregates
Total Tax Credits
Imputation / franking credits
Total Franked / Unfranked Amount
Franked vs unfranked split
Total Foreign Source Income
Income classified as foreign-source
Total Capital Gains Distributions
Capital gains distributed via dividends
Diversity
Sensor
Description
Top Market 1–5 (Name / Percent / Value)
Your five largest market exposures
Diversity Group Count
Number of distinct market groups
Top 3 / Top 5 Markets Percent
Concentration of portfolio in largest markets
Trades
Sensor
Description
Last Trade (Date / Symbol / Type / Value)
Details of your most recent trade
Last Buy (Date / Symbol / Value)
Details of your most recent buy trade
Last Sell (Date / Symbol / Value)
Details of your most recent sell trade
Total Trades / Buy Count / Sell Count
All-time trade counts
Trades Last 7 Days / 30 Days / YTD
Period-bucketed trade counts
Total Buy Value / Sell Value / Net Trade Flow
Aggregate trade values
Average Trade / Buy / Sell Value
Central tendency of trade sizes
Largest Trade (Symbol / Value)
Your biggest single trade
Total Brokerage
Sum of broker fees across all trades
Most Traded Symbol
Symbol with the highest trade count
Average Trades Per Month
Trading frequency since portfolio inception
Contributions
Sensor
Description
Total Contributions
Total cash deposited
Total Withdrawals
Total cash withdrawn
Net Contributions
Deposits minus withdrawals
Contribution / Withdrawal Count
Number of cash movements
Average Contribution Amount
Central tendency of deposit sizes
Last Contribution Date / Amount
Most recent cash movement
Net Investment Gain / Percent
Portfolio value minus net contributions
Diagnostics
Sensor
Description
Last Successful Update
Timestamp of the last successful poll
Update Interval (s)
Current coordinator polling interval
Optional Endpoints On Cooldown
Count of endpoints temporarily skipped due to rate limits
Portfolio Inception Date / Country / Owner / Access Level
Portfolio metadata
Portfolio Age (days)
Days since portfolio inception
Performance Calculation Method
How returns are calculated
Troubleshooting
Sensors showing "Unknown" — Some sensors (Trades, Contributions, Income details) depend on optional API endpoints that may not be available on all Sharesight plans. These will show as unknown if the API returns an error.
"OAuth authentication failed" — Double-check your Redirect URI matches exactly what's configured in your Sharesight API application. The most common issue is a trailing slash mismatch.
Missing markets or cash accounts — New markets and cash accounts are auto-discovered every 10 minutes. If you've just added a new holding on a new exchange, give it a couple of refresh cycles.
Debug logging — To see detailed API response data, enable debug logging for the integration:
A Home Assistant integration that connects with the Sharesight API, allowing you to seamlessly integrate your portfolio data into Home Assistant for real-time tracking and insights.