This custom integration allows you to monitor your comma.ai devices (EON, comma three, etc.) in Home Assistant.
- Device Tracking: Track the GPS location of your comma.ai device on the map
- Sensor Entities: Monitor various device statistics and usage data (see below for full list)
- Live Cameras: View the road (outside) and driver (inside) cameras live, the same stream as comma connect's camera button
- In Home Assistant, go to Settings → Marketplace (built into Home Assistant 2026.11+)
- Open the menu, choose "Custom repositories", and add
https://github.com/bscholer/home-assistant-comma-aias an Integration - Search for
comma.ai, open it, and click "Download" - Restart Home Assistant
- Go to Settings → Devices & Services → Add Integration
- Search for "comma.ai"
- Enter your JWT token (get it from jwt.comma.ai)
On Home Assistant older than 2026.11, install HACS and add the repository as a custom repository there instead.
The integration is configured through the UI. You only need to provide your JWT token from comma.ai.
- Get your JWT token from jwt.comma.ai
- Add the integration in Settings → Devices & Services
- Enter your JWT token
- If you only want devices owned by you to show up, enable "Ignore devices you don't own".
- This is primarily helpful for people who have had users share their devices with them for debugging purposes. These shared devices will be filtered out.
JWT tokens expire after 90 days. To update your token:
- Go to Settings → Devices & Services
- Find the comma.ai integration
- Click the ⋮ menu → "Reconfigure"
- Enter your new JWT token from jwt.comma.ai
- Click Submit
The integration will reload with the new token while preserving all your data and configuration.
Once configured, the integration will:
- Create a device for each comma.ai device in your account
- Add sensor entities for various device statistics
- Add a device tracker entity for GPS location tracking
- Update data every 60 seconds
The software branch, commit, remote and platform sensors are derived from the most recent route uploaded by the device. They refresh after the device uploads its next drive.
For each comma.ai device, the following entities will be created:
sensor.<device_name>_dongle_id- The Dongle ID of the devicesensor.<device_name>_device_type- The type of device (e.g., "neo", "three")sensor.<device_name>_openpilot_version- The installed openpilot versionsensor.<device_name>_git_branch- Git branch of the openpilot build (e.g. "dev")sensor.<device_name>_git_commit- Abbreviated git commit SHA. The full SHA, commit date and dirty flag are available as attributessensor.<device_name>_git_remote- Git remote the openpilot build came from (e.g. "github.com/commaai/openpilot")sensor.<device_name>_platform- Vehicle platform reported by openpilot (e.g. "RIVIAN_R1")sensor.<device_name>_is_owner- Whether you are the owner of the device ("Yes" or "No")sensor.<device_name>_is_paired- Whether the device is paired ("Yes" or "No")sensor.<device_name>_prime_status- Whether the device has comma prime ("Yes" or "No")
sensor.<device_name>_last_ping- Last time the device communicated with comma servers (timestamp)sensor.<device_name>_last_location_time- Last location update timestampsensor.<device_name>_driving_model- The active driving model, when the device runs sunnypilot or a fork that publishes it (stock openpilot reports no model)
sensor.<device_name>_total_distance- Total distance driven with openpilot (shown in km or miles, following your Home Assistant unit system)sensor.<device_name>_total_minutes- Total time driven with openpilot (shown in days by default; the native unit is minutes, so you can change the display unit in the entity settings)sensor.<device_name>_total_routes- Total number of routes driven with openpilot
sensor.<device_name>_week_distance- Distance driven this week (shown in km or miles, following your Home Assistant unit system)sensor.<device_name>_week_minutes- Time driven this week (shown in hours by default; the native unit is minutes, so you can change the display unit in the entity settings)sensor.<device_name>_week_routes- Number of routes driven this week
device_tracker.<device_name>_location- GPS location for map tracking
camera.<device_name>_road_camera- Live view from the wide road camera (outside the car)camera.<device_name>_driver_camera- Live view from the driver camera (inside the car)
The cameras use the same WebRTC live stream as the camera button in comma connect: Home Assistant sends a startStream request to the device through comma's athena relay, then receives the video peer-to-peer (or through comma's TURN relay). Frames are served to Home Assistant as snapshots and as an MJPEG stream, so they work in picture cards, the more-info dialog and camera.snapshot.
Things to know:
- The car must be off. openpilot only live streams while offroad, and the device must be online (awake and connected to Wi-Fi or cellular).
- Streams start on demand. A stream starts when an image is requested (e.g. a dashboard card is visible) and stops 30 seconds after the last request. A card that stays open keeps the stream, and the device's cameras, running. The first image can take 10-20 seconds while the device starts its cameras.
- One viewer at a time. The device accepts a single stream client. Home Assistant will take over an open comma connect live view; if you then open the live view in comma connect, Home Assistant backs off for 2 minutes.
- One camera at a time. The device sends a single video track. Viewing both cameras at once alternates between them every 10 seconds; the other camera shows its last frame meanwhile.
- The camera's
last_errorattribute shows why the last stream attempt failed (e.g. device offline, or "turn car ignition off to use livestreaming"). - Streaming needs aiortc, which Home Assistant installs automatically. Its latest release does not support the PyAV version that Home Assistant ships, so the integration installs it from a pinned aiortc commit; this requires Home Assistant 2025.12 or newer.
This integration uses the comma.ai public API documented at api.comma.ai. Live streaming uses the (undocumented) athena startStream method that comma connect uses, so a comma or openpilot update could break it.
If you encounter issues:
- Check that your JWT token is valid at jwt.comma.ai
- Check the Home Assistant logs for error messages
- Ensure your device is online and connected to comma servers
- For cameras: make sure the car is off and the live view works in comma connect
For issues with this integration, please check the Home Assistant logs for detailed error messages.
Feel free to open an Issue or Pull Request!