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
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
Unconfirmed Transactions
Trades awaiting confirmation
Cash Accounts
Sensor
Description
Cash Balance
Balance per cash account (including Xero)
Income
Sensor
Description
Total Dividend Income
Total dividends received
Number of Dividends
Count of dividend payments
Last Dividend Date
Date of most recent dividend
Diversity
Sensor
Description
Top Market 1/2/3 (Name / Percent / Value)
Your three largest market exposures
Trades
Sensor
Description
Last Trade Date / Symbol / Type / Value
Details of your most recent trade
Trades Last 30 Days
Number of trades in the last month
Total Trades
All-time trade count
Contributions
Sensor
Description
Total Contributions
Total cash deposited
Total Withdrawals
Total cash withdrawn
Net Contributions
Deposits minus withdrawals
Last Contribution Date / Amount
Most recent cash movement
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.