Skip to content

Add Teslemetry sensors for FSD/regen firmware-2025.44 telemetry fields - #177608

Open
Bre77 wants to merge 1 commit into
home-assistant:devfrom
Bre77:fm/core-signals-wiring-0730
Open

Add Teslemetry sensors for FSD/regen firmware-2025.44 telemetry fields#177608
Bre77 wants to merge 1 commit into
home-assistant:devfrom
Bre77:fm/core-signals-wiring-0730

Conversation

@Bre77

@Bre77 Bre77 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Proposed change

Adds three new streaming-only Teslemetry sensors surfacing telemetry fields introduced with vehicle firmware 2025.44:

  • lifetime_energy_gained_regen: lifetime energy recovered via regenerative braking.
  • miles_since_reset: total miles since the vehicle's self-driving statistics were last reset.
  • self_driving_miles_since_reset: FSD-specific miles since that same reset.

All three are diagnostic, disabled by default, and streaming-only, matching the existing lifetime_energy_used sensor. The two mileage sensors are additionally gated behind streaming_firmware="2025.44.25.5" since Tesla only started sending those fields on that firmware or later, and are diagnostic/disabled-by-default because they're firmware-gated, low general relevance, and only useful for diagnosing FSD-related counters rather than everyday use.

This is one of a 3-PR split; binary_sensor and cover changes for the same firmware fields are in separate PRs.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Ruff (ruff format homeassistant tests)
  • Tests have been added to verify that the new code works.
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies a diff between library versions and ideally a link to the changelog/release notes is added to the PR description.

To help with the load of incoming pull requests:

Add three new sensor entities surfacing streaming fields not yet exposed:
lifetime energy gained from regenerative braking (kWh, total_increasing),
and the two firmware-2025.44+ self-driving statistics mileage counters
(miles since reset, self-driving miles since reset), both distance sensors
gated behind streaming_firmware and disabled-by-default diagnostics since
the pull-side FSD totals don't share documented reset semantics.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds three diagnostic, disabled-by-default Teslemetry streaming sensors for regenerative energy and self-driving mileage counters.

Changes:

  • Adds regenerative energy and mileage sensors.
  • Firmware-gates mileage sensors to 2025.44.25.5.
  • Adds translations, state assertions, and registry snapshots.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
homeassistant/components/teslemetry/sensor.py Defines the three streaming sensors.
homeassistant/components/teslemetry/strings.json Adds sensor names.
tests/components/teslemetry/test_sensor.py Tests states and registry properties.
tests/components/teslemetry/snapshots/test_sensor.ambr Records entity registry metadata.

) -> None:
"""Test the new firmware-2025.44 streaming sensors are disabled-by-default diagnostics."""

await setup_platform(hass, [Platform.SENSOR])
Comment thread homeassistant/components/teslemetry/strings.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants