🚗 OVMS Integration for Home Assistant - Monitor & Control Your EV!

Hi everyone! :wave:

I’m excited to share a new integration I’ve developed for OVMS (Open Vehicles Monitoring System) that brings complete vehicle monitoring and control to Home Assistant!

What is OVMS?

OVMS is an open-source vehicle monitoring system that connects to many electric vehicles (Nissan Leaf, Renault Twizy, Tesla, and many more). It’s a hardware module that plugs into your vehicle’s OBD port and provides real-time telemetry via a global server network.

What This Integration Does

This integration communicates with OVMS servers using their v2 API (both REST API for data retrieval and Binary Protocol v2 for commands), giving you comprehensive control of your EV right from Home Assistant!

:bar_chart: Monitoring (50+ Sensors!)

Battery & Range:

  • State of Charge (SOC), State of Health (SOH)
  • Estimated range, battery capacity
  • Battery voltage, 12V system monitoring

Real-time Status:

  • Charging state, power, and time remaining
  • Speed, odometer, trip meter
  • GPS location with device tracker
  • Tire pressure (TPMS) for all wheels
  • Door status, bonnet, trunk, charge port
  • Cabin & battery temperatures

Connectivity:

  • Module connection status
  • GSM & WiFi signal strength
  • Last seen timestamp

:video_game: Control Features

Climate Control:

  • Climate entity for turning AC/HVAC on and off
  • Cooldown mode switch for battery/cabin cooling

Charging:

  • Start/stop charging
  • Set charge limits (50-100%)
  • Adjust charge current
  • Configure charge timers

Security:

  • Lock entity for door lock/unlock
  • Valet mode switch
  • Alarm status monitoring

Convenience:

  • Wake vehicle from sleep
  • HomeLink buttons
  • Module reset button
  • TPMS auto-learn

:hammer_and_wrench: Advanced Features

Nine services for power users:

  • Send custom OVMS commands
  • Send SMS via vehicle modem
  • Configure charge timers
  • Wake specific subsystems
  • Map TPMS sensors
  • Get/set module features and parameters

Installation

Via HACS (Recommended)

  1. Add custom repository: https://github.com/majorfrog/ovms-hass
  2. Search for “OVMS” and install
  3. Restart Home Assistant
  4. Add the integration via Settings → Devices & Services

Example Automation

# Start charging when electricity prices are low
automation:
  - alias: "Charge Car During Off-Peak Hours"
    trigger:
      - platform: time
        at: "23:00:00"
    condition:
      - condition: numeric_state
        entity_id: sensor.ovms_car_soc
        below: 80
    action:
      - service: switch.turn_on
        target:
          entity_id: switch.ovms_car_charging

Requirements

  • An OVMS-equipped vehicle
  • OVMS server account (free at openvehicles.com)
  • Home Assistant 2024.1.0 or newer

Links

Feedback Welcome!

This is the 1.0.0 release, and I’d love to hear your feedback! If you:

  • Have an OVMS-equipped vehicle, please give it a try
  • Encounter any issues, please open a GitHub issue
  • Have feature requests, I’m all ears
  • Want to contribute, PRs are welcome!

Happy automating! :house::zap::red_car: