A Home Assistant custom integration that polls the UniRate API for live exchange rates and exposes them as sensor entities.
- Live exchange-rate sensors (e.g.
sensor.usd_eur_rate) - Configurable base currency and target currency list
- Configurable polling interval (default: 1 hour)
- Your UniRate API key stays server-side — never exposed to the frontend
- In HACS → Integrations → menu → Custom repositories
- Add
https://github.com/UniRate-API/unirate-home-assistantas an Integration - Install UniRate Currency Exchange
- Restart Home Assistant
Copy custom_components/unirate_currency/ into your HA config/custom_components/ directory and restart.
- Go to Settings → Devices & Services → Add Integration
- Search for UniRate Currency Exchange
- Enter your UniRate API key (free tier covers all sensor data)
- Set base currency (default: USD) and polling interval
After setup, sensors are created for each configured target currency:
| Entity | State | Unit |
|---|---|---|
sensor.usd_eur |
0.9234 |
EUR |
sensor.usd_gbp |
0.7891 |
GBP |
sensor.usd_jpy |
149.52 |
JPY |
automation:
- alias: "Alert when EUR rate drops"
trigger:
- platform: numeric_state
entity_id: sensor.usd_eur
below: 0.90
action:
- service: notify.mobile_app
data:
message: "EUR/USD dropped below 0.90!"All sensor data (current rates) is available on the free tier. Historical data requires a Pro subscription.
UniRate API client libraries: Python · Node.js · Go · Rust · Ruby · PHP · Java · Swift · .NET
Framework integrations: Next.js · Nuxt · SvelteKit · Astro · NestJS · Strapi · Eleventy · React · Vue
CMS & e-commerce: WordPress · Directus · Medusa · Home Assistant (this package)
Data & AI: LangChain Python · FastAPI · Flask · Django REST · dbt · Airflow
Other: MCP server · CLI · Obsidian · money gem · laravel-money
UniRate ships official integrations for 40+ ecosystems, all maintained under the UniRate-API org.
Core clients (9 languages) Python · Node.js / TypeScript · Go · Rust · Java · Ruby · PHP · .NET · Swift
JavaScript / TypeScript React · Next.js · Remix · SvelteKit · Vue · Angular · Nuxt · NestJS · tRPC
Static-site generators Astro · Eleventy · Hugo · Jekyll
CMS & e-commerce Wagtail · WordPress · WooCommerce · Drupal · Strapi · Medusa · Symfony · Laravel · Directus
Data, AI & backend LangChain (Python) · LangChain.js · FastAPI · Flask · Django REST Framework · Apache Airflow · dbt
Platform & tools MCP server · CLI · Cloudflare Workers · Home Assistant · n8n · Google Sheets · VS Code · Obsidian
Money library bridges money gem (Ruby) · NodaMoney (.NET)
Get a free API key at unirateapi.com.
MIT © Unirate Team