Hi,
Over the course of the last couple of weeks I have created a simple integration to help me track my children’s Pocket Money, and I thought I’d put it out there for the rest of the community in case it can help someone else.
This integration allows you to create separate pocket money accounts for each child. It provides:
- A
sensor
entity for each child displaying their current balance. - A
transactions
attribute on the sensor storing recent transaction history. - A service call (
pocket_money.sally_add_transaction
) to easily add or subtract funds. - An optional feature to log all transactions to a CSV file per child.
You can find it on Github:
GitHub - sam-ward/ha-pocket-money: Simple pocket money tracking integration for Home Assistant
and is available to install through HACS as a custom repository.
While you could probably replicate the functionality natively within Home Assistant (using scripts and helpers), it was also learning exercise for me in writing custom integrations (and I apologize in advance if anyone reads the code ).
If you have any questions feel free to reach out here or on GitHub, and please let me know what you think.
Cheers.