I built a Home Assistant integration for Trading212 — Alexa tells me my portfolio P&L every morning

I’ve been using Trading212 for a while and also run Home Assistant at home — it’s an open source platform that controls smart home devices, automations, dashboards, that kind of thing. I always wanted my portfolio visible alongside everything else, so I built an integration that pulls Trading212 data directly into Home Assistant.

The integration connects to the Trading212 API and creates sensors for your total portfolio value, daily P&L, positions, pies, dividends — everything. Once those sensors exist in Home Assistant you can do whatever you want with them.

The bit I use most is the morning briefing. Every weekday at 8am Alexa reads me a summary: portfolio value, whether I’m up or down on the day, and by how much. Friday evening I get a weekly version with the week’s P&L and which position moved the most. I like that it just tells me without me having to remember to open the app — and on a bad week when I’d probably avoid checking, Alexa doesn’t give me the option to ignore it.

I also built a Lovelace dashboard card that displays everything visually — portfolio value with a 7-day sparkline, scrollable positions list with per-stock mini charts, pies with goal progress. It auto-discovers your sensors so there’s no manual setup beyond installing it.

Both are free and open source. The card is available through HACS (Home Assistant’s community store):

I wrote up the full setup guide including all the automation examples here:

Curious if anyone else here uses Home Assistant or has found other ways to get ambient portfolio updates without constantly che`cking the app.

This is awesome man, nice!

It’s a very cool project.

Thanks for sharing the source code.

Imagine waking up to news your portfolio is down several percentage, what a start to the day that would be!

Pretty cool though.