This adapter connects your Volvo car to ioBroker using the Volvo Connected Vehicle API and Energy API v2.
- 🔋 Battery charge level, electric range, charging status (PHEV / BEV)
- ⛽ Fuel level, odometer, trip statistics
- 🚪 Door, window, and lock status
- 📍 GPS location
- 🔧 Diagnostics (service warnings, brake fluid, oil, tyres, lights)
- 🔑 Remote commands (lock/unlock, honk, flash, climatization)
- 🔄 Automatic data refresh at configurable intervals
- 🔐 Token persistence — survives adapter restarts without re-login
- Go to developer.volvocars.com and sign in (Google or GitHub account).
- Create a new Application.
- Copy the VCC API Key (Primary).
- Open the adapter settings in ioBroker.
- Enter your Volvo ID email and password (the same credentials you use in the Volvo Cars app).
- Paste the VCC API Key.
- Set the update interval (default: 5 minutes).
The Volvo API uses a two-factor authentication flow with a one-time password (OTP):
- Click "Start Login (Send OTP)" in the adapter settings.
- Check your email for the OTP code from Volvo.
- Enter the code and click "Submit OTP".
- The adapter will store the refresh token so you won't need to repeat this unless the token expires (typically weeks/months).
Note: If the refresh token expires, the adapter will show a warning in the log. Simply repeat the OTP login from the adapter settings.
The adapter creates the following data point structure under volvo.0.<VIN>:
| Path | Description |
|---|---|
energy.batteryChargeLevel.* |
Battery charge level (%), updated timestamp |
energy.electricRange.* |
Electric driving range (km) |
energy.chargingStatus.* |
Charging status (IDLE, CHARGING, etc.) |
energy.chargerConnectionStatus.* |
Charger connection (CONNECTED, DISCONNECTED) |
status.doors.* |
Door states (OPEN/CLOSED), central lock |
status.windows.* |
Window states including sunroof |
status.fuel.* |
Fuel amount (liters) |
status.odometer.* |
Odometer reading (km) |
status.diagnostics.* |
Service warnings, distance/time to service |
status.statistics.* |
Fuel/energy consumption, trip meters |
status.engine-status.* |
Engine running state |
status.warnings.* |
Light warnings (brake lights, fog, indicators, etc.) |
location.* |
GPS coordinates, heading, timestamp |
remote.* |
Remote commands (buttons) |
Use the buttons under volvo.0.<VIN>.remote to control your vehicle:
lock/unlock— Lock or unlock the carclimatization-start/climatization-stop— Start or stop pre-conditioninghonk/flash/honk-flash— Sound horn, flash lights, or bothlock-reduced-guard— Lock with reduced guardrefresh— Manually refresh all data
- Update dependencies
- BREAKING CHANGE: API key now stored encrypted, reenter of API key required
- Fix: restart-resilient OTP login flow — auth state persists across adapter restarts
- Fix: 404 errors for location/energy/vehicle endpoints handled gracefully (GPS off, non-EV vehicles)
- Fix: adapter no longer terminates on first start without stored token
- Fix: removed manual password decrypt (now handled by
encryptedNative) - Fix: full try-catch in
onReady()prevents crashes on startup errors
- Fix: adapter stays alive waiting for OTP login when no token stored
- Fix: better startup log messages explaining next steps
- Fix: CI deploy job upgraded to Node 24 (resolves
promise-retryerror)
- Fix: multi-language support (ru, pt, nl, fr, it, es, pl, uk, zh-cn)
- Fix: jsonConfig admin UI size attributes for all breakpoints
- Fix:
protectedNative/encryptedNativefor sensitive fields - Fix: OTP/sendTo message handlers null-safe
- Chore: added dependabot,
@iobroker/adapter-dev,@iobroker/eslint-config - Chore: CI
adapter-testsnow runs after linting - Chore: migrated
.npmignoretopackage.jsonfiles
First stable release — complete rewrite of the Volvo ioBroker adapter.
New Features:
- Vehicle Details: Model, year, color and images fetched from API
- Retry Logic: Automatic retry with exponential backoff on API errors (429/5xx)
- Command Status Tracking: Polls async command results (up to 5x) and stores status in
lastCommandStatus - Auto-Refresh after Commands: Doors auto-refresh after lock/unlock, engine-status after climatization
- Last Update Timestamp:
lastUpdatestate per vehicle shows last successful data fetch - Admin UI: jsonConfig Migration: Modern React-based settings UI (Admin5) with i18n support
- Admin UI: Connection Test: Test API connection directly from adapter settings
- Admin UI: Vehicle Info: Display vehicle details from settings page
Versioning Policy (SemVer):
- MAJOR: Breaking changes (config changes, removed states, new minimum Node.js)
- MINOR: New features (new data points, commands, UI features)
- PATCH: Bug fixes, dependency updates, cleanup
- Extracted inline JavaScript from
admin/index_m.htmlinto separateadmin/index_m.js - Added ESLint config for admin browser JS (jQuery/browser globals)
- Removed obsolete files:
.create-adapter.json(wrong adapter name),lib/tools.js(unused),.prettierrc.js/.prettierignore(Prettier not installed) - Updated
.npmignore(removed references to deleted.eslintrc.json) - Updated CI workflow: dropped Node 18 (EOL), testing on Node 20 + 22
- Updated all dependencies to latest major versions
- @alcalzone/release-script 3.7 → 5.1, eslint 9 → 10, @iobroker/testing 5.0 → 5.2
- Migrated from ESLint 8 to ESLint 9 (flat config) — fixes CVE-2025-50537
- Removed deprecated
.eslintrc.jsonand.eslintignore
- Fixed all npm audit vulnerabilities (0 remaining)
- Added npm overrides for serialize-javascript, diff, esbuild
- Fixed ESLint lint error (single quotes)
- Removed credentials and IPs from AGENTS.md, added discovery instructions
- Updated devDependencies: @iobroker/testing 5.2, @types/node 25.5, eslint 8.57
- Fixed refresh token not being preserved across token refreshes (caused 401 errors after ~25 minutes)
- Removed dead legacy code: old VOC API (
vocapi.wirelesscar.net),requestmodule,uuid,json-bigint - Updated dependencies: axios 1.14, qs 6.15, json2iob 2.6.22, @iobroker/adapter-core 3.3
- Added update migration notice for users upgrading from pre-0.2.0 versions
- Removed unused
newApiconfig option from io-package.json
- Complete rewrite of authentication: Replaced dead
grant_type: passwordOAuth flow with new multi-step OTP (one-time password) login via PingFederate - All API endpoints updated to v2: Vehicle list (
connected-vehicle/v2), Energy (energy/v2), Commands (connected-vehicle/v2/commands) - Fixed remote commands: Changed
Content-Typefrom deprecated vendor-specific format toapplication/json(was causing HTTP 415 errors) - Fixed refresh button: Now triggers a data re-fetch instead of sending an invalid API command (was causing HTTP 404)
- Buttons are now proper buttons: Remote controls use
role: buttonwith auto-reset instead of toggle booleans - Fixed Energy API parsing:
batteryChargeLevel,electricRange,chargingStatusetc. now update correctly (v2 response format differs from v1) - Added OTP login UI in adapter settings with step-by-step flow
- Added token persistence: Refresh token stored in ioBroker state, survives adapter restarts
- Removed dead code: Old VOC API (
vocapi.wirelesscar.net),extended-vehicle/v1,energy/v1,newApicheckbox — all removed - Admin UI localized: English + German via
words.js - Updated README with new setup guide
- Added support for v2 API
- Added location API information
- (TA2k) Add new API for electric cars
- (TA2k) Fix trip object naming
- (TA2k) Fix receiving data
- (TA2k) Fix jscontroller
- (TA2k) Fix preclimate
- (TA2k) Initial release
MIT License
Copyright © 2020-2026 TA2k tombox2020@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

