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

**URL:** <https://community.trading212.com/t/i-built-a-home-assistant-integration-for-trading212-alexa-tells-me-my-portfolio-p-l-every-morning/92464>\
**Category:** 💬 Trading 212 chat\
**Created:** [June 27, 2026, 1:30pm UTC](https://community.trading212.com/t/i-built-a-home-assistant-integration-for-trading212-alexa-tells-me-my-portfolio-p-l-every-morning/92464 "2026-06-27T13:30:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sepehr](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@sepehr](https://community.trading212.com/u/sepehr)\
**Post date:** [June 27, 2026, 1:30pm UTC](https://community.trading212.com/t/i-built-a-home-assistant-integration-for-trading212-alexa-tells-me-my-portfolio-p-l-every-morning/92464/1 "2026-06-27T13:30:48Z")

</div>

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):

> **[GitHub - Smart-Home-Assistant-UK/lovelace-trading212-card: A Lovelace card for Home Assistant that displays...](https://github.com/Smart-Home-Assistant-UK/lovelace-trading212-card)**
>
> A Lovelace card for Home Assistant that displays your Trading212 investment portfolio — portfolio value, P&L, positions with sparklines, and pies.

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

> **[Trading212 Home Assistant Dashboard: Setup Guide and Automation Ideas](https://smarthomeassistant.co.uk/articles/home-automation/trading212-home-assistant-dashboard)**
>
> Set up a Trading212 Home Assistant dashboard to track your portfolio in real time. Step-by-step Lovelace card guide plus five automation ideas.

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

---

<div class="post-metadata">

**Author:** ![WernerFromRode](https://avatars.discourse-cdn.com/v4/letter/w/7c8e57/32.png) [@WernerFromRode](https://community.trading212.com/u/WernerFromRode)\
**Post date:** [June 27, 2026, 3:25pm UTC](https://community.trading212.com/t/i-built-a-home-assistant-integration-for-trading212-alexa-tells-me-my-portfolio-p-l-every-morning/92464/2 "2026-06-27T15:25:20Z")

</div>

This is awesome man, nice!

---

<div class="post-metadata">

**Author:** ![genzo1977](https://avatars.discourse-cdn.com/v4/letter/g/9e8a1a/32.png) [@genzo1977](https://community.trading212.com/u/genzo1977)\
**Post date:** [June 27, 2026, 3:39pm UTC](https://community.trading212.com/t/i-built-a-home-assistant-integration-for-trading212-alexa-tells-me-my-portfolio-p-l-every-morning/92464/3 "2026-06-27T15:39:26Z")

</div>

It’s a very cool project.

Thanks for sharing the source code.

---

<div class="post-metadata">

**Author:** ![Dougal1984](https://dub1.discourse-cdn.com/flex013/user_avatar/community.trading212.com/dougal1984/32/14304_2.png) [@Dougal1984](https://community.trading212.com/u/Dougal1984)\
**Post date:** [June 27, 2026, 5:26pm UTC](https://community.trading212.com/t/i-built-a-home-assistant-integration-for-trading212-alexa-tells-me-my-portfolio-p-l-every-morning/92464/4 "2026-06-27T17:26:45Z")

</div>

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

Pretty cool though.

---

<div class="post-metadata">

**Author:** ![onetimeengineer](https://avatars.discourse-cdn.com/v4/letter/o/e36b37/32.png) [@onetimeengineer](https://community.trading212.com/u/onetimeengineer)\
**Post date:** [July 20, 2026, 12:57pm UTC](https://community.trading212.com/t/i-built-a-home-assistant-integration-for-trading212-alexa-tells-me-my-portfolio-p-l-every-morning/92464/5 "2026-07-20T12:57:44Z")

</div>

@sepehr Cool tool! How did you get this post approved by the moderators? The other day, I posted about an opensource tool I created for portfolio analysis; and it went from pending approval to disappeared with no feedback from the moderators.

---

<div class="post-metadata">

**Author:** ![eandwal](https://avatars.discourse-cdn.com/v4/letter/e/f08c70/32.png) [@eandwal](https://community.trading212.com/u/eandwal)\
**Post date:** [July 22, 2026, 12:14pm UTC](https://community.trading212.com/t/i-built-a-home-assistant-integration-for-trading212-alexa-tells-me-my-portfolio-p-l-every-morning/92464/6 "2026-07-22T12:14:31Z")

</div>

How would I add a table of the top 20 stock movers by daily change or daily percent change?
