- Home Assistant Statistics API now fully supported for all YNAB sensors
- Programmatic data access - use YNAB data in automations, scripts, and custom dashboards
- Rich statistical data - access state, change, and sum values for account and category balances
- "Configure" button now available in integration settings - no more re-installing to change settings!
- Instance name changes - update your budget's display name anytime
- Currency format updates - change currency display without reinstalling
- Update interval changes - adjust refresh frequency without reinstalling
- Dynamic account/category selection - add/remove accounts and categories after setup
- Filter toggles - include/exclude closed accounts and hidden categories anytime
- Comprehensive API status sensor with detailed rate limit tracking
- Persistent data storage - sensors retain data during rate limits and HA restarts
- Intelligent status detection - accurately shows "Rate Limited" vs "Connected" status
- Request tracking - monitor API usage across all YNAB integrations
- Rolling window rate limit - proper calculation of when rate limits reset
- Multiple Budgets: Configure multiple YNAB budgets.
- Configurable Update Intervals: Choose how frequently each budgetβs data is refreshed.
- Account Balances: Pull real-time balances for any on-budget account and associated attributes.
- Category Sensors: Track each categoryβs balances and associated attributes.
- Custom Budget βInstance Nameβ: Each budget can have a unique prefix (e.g., βMel,β βJamieβ) to avoid entity ID collisions. (Defaults to the YNAB budget name)
- Currency Selection: Choose your preferred currency (USD, EUR, etc.).
- Monthly Summary Sensors: Retrieve current month's summary data with associated attributes (e.g.,
Budgeted,Activity,To Be Budgeted,Age of Money).
Below are screenshots showcasing an example card on a dashboard, the integration setup and how YNAB data appears in Home Assistant.
You can see the dashboard card example, setup flow, account details, category insights, and the new monthly summary sensor in action.
![]() |
![]() |
![]() |
![]() |
![]() |
- Ensure HACS is installed. If you havenβt yet installed HACS, follow the HACS installation guide.
- In Home Assistant, open HACS from the sidebar.
- Click on the search bar at the top.
- Type βYNAB Integration for Home Assistantβ and select it.
- Click Install.
- Restart Home Assistant to finalize the installation.
- Download the latest release from the GitHub repository.
- Unzip the downloaded file and place the
ynab_customfolder inside yourcustom_componentsdirectory (e.g.,/config/custom_components/ynab_custom). - Restart Home Assistant.
- Go to Settings β Devices & Services β Integrations in Home Assistant.
- Click "+ Add Integration" and search for "YNAB Integration for Home Assistant".
- Enter your YNAB API Key (see below for instructions).
- Accept terms and conditions
- Select your budget from the dropdown/list.
- Choose an instance_name or leave default.
- Pick your preferred currency (USD, EUR, etc.).
- Choose your desired update_interval or leave default (Longer intervals are better to not make too many API calls and not be rate limited).
- Optional filters: Check boxes to include closed accounts or hidden categories (both excluded by default).
- Select Accounts & Categories to include or leave as Select All.
- Go to YNAB Developer Settings.
- Click "New Token" to generate a personal access token.
- Copy the API Key and use it during integration setup.
YNAB data is represented using compact, attribute-rich sensors β each account, category, and summary uses a single sensor packed with all relevant details.
The API Status sensor, located under the Extras device, provides comprehensive monitoring of your YNAB integration's health and API usage.
- Status (Default state value) β Current API connection status (
Connected,Rate Limited,API Error, etc.) - Last Error β Details of the most recent API error, if any
- Last Error Time β Timestamp of the last API error
- Consecutive Failures β Number of consecutive API failures
- Requests Made Total β Total API requests made across all YNAB integrations using the same token
- Requests This Hour β API requests made in the current rolling hour window
- Rate Limit Resets At β Time when the next request slot becomes available (rolling window)
- Is At Limit β Whether currently rate limited (
true/false) - Last Successful Request β Timestamp of the last successful API call
Each YNAB account is represented by a single sensor containing key financial attributes like balance, cleared total, and account type.
- Balance β The total balance of the account, including both cleared and uncleared transactions.
- Cleared Balance (Default state value) β The balance of transactions that have been processed and cleared.
- Uncleared Balance β The balance of pending transactions that have not yet cleared.
- On Budget β Indicates whether the account is included in the budget (
truefor budgeted accounts,falsefor tracking accounts). - Type β The type of account (e.g.,
Checking,Credit Card,Savings).
Each category in your YNAB budget is exposed as a single, attribute-rich sensor that includes budgeted amount, spending, remaining balance, and goal tracking.
- Budgeted β The amount of money assigned to this category for the current month.
- Activity β The total amount spent in this category during the current month (negative means an expense).
- Balance (Default state value) β The remaining funds available in this category after subtracting activity from budgeted.
- Category Group β The parent group this category belongs to (e.g., "Bills," "Groceries").
- Goal Type β The type of goal set for this category (e.g.,
Target Balance,Monthly Funding). - Goal Target β The total amount you aim to allocate or save for this category.
- Goal Percentage Complete β The percentage of progress toward the goal, based on the balance and target.
- Goal Overall Left β Remaining amount needed to meet the goal target.
- Percentage Spent β How much of the current monthβs budget has been spent (0β―ββ―100β―%+).
- Needs Attention β
trueif the category is overspent or underβfunded. - Attention Reason β
"Overspent","Underfunded", or"Ok".
The Monthly Summary sensor, located under the Extras device, provides an overview of your current budgetβs performance β including total activity, money to be budgeted, and average age of money.
- Budgeted β The total amount of money assigned for the current month.
- Activity β (Default state value) The total amount spent for the current month.
- To Be Budgeted β The remaining funds available to be assigned for the current month.
- Age Of Money β The average age of your money, indicating financial stability.
- Unapproved Transactions β Transactions that havenβt been manually approved
- Uncleared Transactions β Still-pending transactions from active accounts
- Overspent Categories β Categories that went negative this month
- Needs Attention Count β A quick 0β3 score based on how many of the above are true
- Found a bug? Report it via GitHub Issues.
- Have a feature request? Feel free to suggest improvements.
- Pull requests are welcome!
Critical Migration & Stability Fixes:
- Fixed "Migration Error" when upgrading from v1.4.0
- Robust config entry migration with proper fallback handling
- Fixed TypeError crashes when YNAB returns
nullvalues for goal fields - Improved update reliability - no more "Task exception was never retrieved" errors
- Enhanced logging for better troubleshooting
Filter Options (New Setups Only):
- Closed accounts and hidden categories are now excluded by default for cleaner dashboards
- Available during initial setup - delete and re-add integration to access these options
I'm actively improving the YNAB integration and plan to introduce the following features in future updates:
-
Scheduled Transactions: Support for upcoming transactions that haven't been processed yet.
-
Category Group Summaries & Budget-Wide Summaries: Previously available but currently not included; I plan to explore reintroducing them in a similar method to the Accounts, Categories & Monthly Summary
-
Manual Refresh Service (
ynab_custom.refresh): Not present in this release but may return in a future update. -
Optional Exclusion of Hidden Categoriesβ β Implemented in v1.4.1 - Toggle checkboxes now available in config flow to exclude hidden categories and closed accounts. -
Post-setup "Configure" Flowβ β Implemented in v1.5.0 - "Configure" button now available to change settings after initial setup without re-installing.
If you enjoy this integration, consider supporting development:
π Happy budgeting with Home Assistant! π―
This YNAB for Home Assistant integration is not officially supported by You Need A Budget (YNAB) in any way. Use of this integration is at your own risk. Any issues or errors caused by this integration are not supported through YNAB's official support channels, and YNAB will not be able to troubleshoot or fix any problems related to it. Please use at your own risk!






