Bring Monobank accounts, jars, exchange rates, and API status into Home Assistant.
- Open this repository in HACS using the button below and download the integration.
- Restart Home Assistant.
- Use Add Integration to start the setup flow.
Note
The HACS button requires HACS to be installed. The Add Integration button works after the custom integration has been downloaded and Home Assistant restarted.
Custom Monobank integration for Home Assistant that lets you track account balances, jars (goals), and currency exchange rates.
- 💳 Accounts: Track balances of all your Monobank cards
- 🏦 Jars (Goals): Monitor savings progress in jars
- 💱 Currency Rates: Current rates for USD, EUR, GBP and other currencies
- 🔄 Auto-update: Configurable update intervals (default 60s for accounts, 5min for rates)
- 🔔 Webhook support: Automatic instant updates on transactions
- 🔘 Manual refresh: Button to force data update
- 📊 API Status: Sensor to monitor API availability
- ⚙️ UI Configuration: Full configuration through Home Assistant interface
- 🎛️ Feature toggles: Ability to disable currency or jar sensors
- 🌐 Localization: Ukrainian and English language support
- 🔁 Retry logic: Automatic retries on API errors
- 🛡️ Reliability: Graceful error handling and rate limit management
- Open HACS in Home Assistant
- Go to "Integrations"
- Click the three dots in the top right corner
- Select "Custom repositories"
- Add this repository URL
- Category: Integration
- Find "Monobank" in the list and install
- Copy the
custom_components/monobankfolder to your Home Assistantcustom_componentsfolder - Restart Home Assistant
- Get your API token from https://api.monobank.ua/
- In Home Assistant go to Settings → Devices & Services
- Click + Add Integration
- Search for Monobank
- Enter your API token
- Click Submit
After installation, you can configure the integration:
- Go to Settings → Devices & Services
- Find Monobank and click Configure
- Available options:
- Account update interval (30-3600 sec, default 60)
- Currency update interval (60-3600 sec, default 300)
- Enable currency rate sensors (yes/no)
- Enable jar sensors (yes/no)
After configuration, the integration will create the following sensors:
sensor.monobank_black_xxxx- Black card balancesensor.monobank_white_xxxx- White card balancesensor.monobank_diia_xxxx- Diia card balancesensor.monobank_eaid_xxxx- єПідтримка card balancesensor.monobank_madeinukraine_xxxx- Made in Ukraine card balance- and others...
Attributes:
currency- Account currencycard_type- Card typemasked_pan- Masked card numberiban- Account IBANcredit_limit- Credit limitcashback_type- Cashback type
sensor.monobank_jar_name- Jar balance
Attributes:
title- Jar namedescription- Descriptiongoal- Savings goalprogress- Progress percentagecurrency- Currency
sensor.monobank_usd_uah- USD ratesensor.monobank_eur_uah- EUR ratesensor.monobank_gbp_uah- GBP rate
Attributes:
rate_buy- Buy raterate_sell- Sell ratelast_update- Last update time
binary_sensor.monobank_api_status- API availability status
Attributes:
last_update_success- Whether last update was successfullast_error- Last error text (if any)last_success_time- Time of last successful update
button.monobank_refresh- Button to manually refresh data
type: entities
title: My Monobank Accounts
entities:
- entity: sensor.monobank_black_1199
name: Black Card
- entity: sensor.monobank_white_8944
name: White Card
- entity: binary_sensor.monobank_api_status
name: API Status
- entity: button.monobank_refresh
name: Refresh Datatype: entities
title: Currency Rates
entities:
- entity: sensor.monobank_usd_uah
name: USD
secondary_info: last-updated
- entity: sensor.monobank_eur_uah
name: EUR
secondary_info: last-updatedautomation:
- alias: "Low Balance Notification"
trigger:
- platform: numeric_state
entity_id: sensor.monobank_black_1199
below: 100
action:
- service: notify.mobile_app
data:
message: "Black card balance is below 100 UAH!"automation:
- alias: "Goal Reached"
trigger:
- platform: template
value_template: "{{ state_attr('sensor.monobank_jar_3d_printer', 'progress') >= 100 }}"
action:
- service: notify.mobile_app
data:
message: "Congratulations! You've reached your savings goal!"automation:
- alias: "Monobank API Unavailable"
trigger:
- platform: state
entity_id: binary_sensor.monobank_api_status
to: "off"
for:
minutes: 5
action:
- service: notify.mobile_app
data:
message: "Monobank API has been unavailable for more than 5 minutes!"The integration automatically registers a webhook to receive instant updates from Monobank API. Home Assistant must have an internet-accessible HTTPS URL for it to work.
Webhook benefits:
- Instant updates on transactions
- Reduced API load
- More up-to-date data
Note: Webhook works in parallel with polling, so data will be updated both on transactions and on schedule.
Monobank API has the following limitations:
- Maximum 60 requests per minute
- The integration automatically respects these limits
- On rate limit exceeded, the integration automatically retries with delay
- The API token is stored locally in the Home Assistant config entry; protect access to the system and its backups
- Webhook uses unique ID for each installation
- All connections use HTTPS
- Token is never logged in plain text
custom_components/monobank/
├── __init__.py # Integration initialization
├── manifest.json # Metadata
├── config_flow.py # UI configuration
├── options_flow.py # UI options
├── const.py # Constants
├── coordinator.py # Data update coordinator
├── sensor.py # Sensors
├── binary_sensor.py # Binary sensors
├── button.py # Buttons
├── api.py # API client
├── webhook.py # Webhook handling
├── strings.json # Translations
└── translations/
├── en.json # English localization
└── uk.json # Ukrainian localization
If this project is useful to you, you can support its development via monobank.
If you encounter any issues or have suggestions, please create an issue in this repository.
MIT License