Replies: 1 comment
-
|
Hello, glad to hear you are enjoying using SplitPro! Thanks for sharing your work and contributing to the community, I know several people requested Home Assisstant integration in the past. The reason I closed these feature requests, however, was the simple fact that I do not use Home Assisstant, so there is now way for me to maintain such an integration. If others report that the integration works well for them, I could add a link to it in the official Readme, but I know you first need to have the endpoints exposed. I actually planned to start rolling out a REST api, starting in v2.2 and there is an issue about it #615. Feel free to request the needed endpoints there, although I find it increasingly hard to find time to work on Split Pro so I can't promise any ETA. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone! Ex-Splitwise user here, been running SplitPro for a while and love it ❤️
I built a full Home Assistant integration for SplitPro and wanted to share it with the community.
What it does:
Sensors — total balance, you owe, you are owed, per-friend balances, per-group balances, last expense, recent expense count
Services — add and delete expenses directly from HA (voice assistant, dashboard buttons, automations)
Events — fires splitpro_expense_added automatically when a new expense is detected, triggering native HA notifications on your phone
Multi-user — each household member adds their own integration entry scoped to their email
Per-currency breakdown — each balance includes a currencies array for multi-currency setups
How it works:
Two parts:
5 TypeScript files added to src/pages/api/ha/ and src/lib/ — REST endpoints secured with a HA_API_KEY env variable. Reads directly from SplitPro's internal BalanceView Prisma model (the same data source the UI uses) so numbers match exactly what the app shows. Amounts are converted from BigInt minor units using ÷100 for 2-decimal currencies (EUR/USD), mirroring SplitPro's own toUIString() function.
9 Python files — a standard HA custom component (HACS-ready structure) with config flow UI, DataUpdateCoordinator, and full service definitions.
Tested on: v2.1.0, Home Assistant 2025+
Repo: https://github.com/ZenoBell/splitpro-ha the home-assistant/ folder has the HA component, src/pages/api/ha/ has the API endpoints.
Questions for the maintainers:
Would you be open to merging the API endpoints into main?
Should the HA component live as a separate repo (e.g. oss-apps/splitpro-ha) for HACS submission?
Any feedback on the API design or the HA_API_KEY auth approach?
If anyone wants to review the code, clean it up, or improve it, please go ahead, contributions very welcome! 🙏
Beta Was this translation helpful? Give feedback.
All reactions