Manager for YNAB is a Home Assistant custom integration for running manager-for-ynab and sqlite-export-for-ynab from Home Assistant automations.
- Config flow for a YNAB personal access token
- Optional SQLite DB path configuration
auto_approveaction withfor_real,sync, andquietpending_incomeaction withfor_real,sync, andquietsqlite_exportaction withfull_refreshandquietsqlite_queryaction with arbitrary SQL and optional syncadd_transactionaction with values resolved from the SQLite export- Sensors for the latest
pending_incomeupdated count andauto_approveapproved and cleared counts
If the configured DB path is empty, the integration uses sqlite-export-for-ynab's default database path.
- Open HACS in Home Assistant.
- Add this repository as a custom repository.
- Category:
Integration. - Install
Manager for YNAB. - Restart Home Assistant.
Add the integration from Settings -> Devices & Services -> Add Integration -> Manager for YNAB.
You need:
- A YNAB personal access token
- An optional SQLite DB path
Leave the DB path empty to use the default path from sqlite-export-for-ynab.
for_real: defaultfalsesync: defaulttruequiet: defaultfalse
This runs manager-for-ynab.auto_approve.auto_approve(...) and updates the sensors to the returned updated_count and cleared counts.
for_real: defaultfalsesync: defaulttruequiet: defaultfalse
This runs manager-for-ynab.pending_income.pending_income(...) and updates the sensor to the returned updated_count.
full_refresh: defaultfalsequiet: defaultfalse
This runs sqlite-export-for-ynab against the configured token and DB path.
sql: required SQL statementsync: defaulttrue
This executes the SQL against the configured SQLite DB path and returns rows as service response data.
plan_name: optional when the SQLite export has exactly one planaccount_name: requiredpayee_name: requiredcategory_name: shown by default, formatted asCategory Group - Category Name; ignored when the payee is another account, which makes the transaction a transferuse_current_date: defaulttrue; when enabled, the transaction uses the current date in Home Assistant's local timezone and ignoresdatedate: required, default today; picker value used only whenuse_current_dateisfalsecleared: defaultunclearedamount: required, positive values are expensessync: defaulttruequiet: defaultfalse
This creates a transaction with manager-for-ynab's add-transaction fund-moving helper. Dropdown values still come from the configured SQLite export and refresh automatically after sync-capable actions.