Skip to content

Add more sensors to Teslemetry #38651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 30, 2025
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 44 additions & 2 deletions source/_integrations/teslemetry.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -138,36 +138,77 @@ These are the entities available in the Teslemetry integration. Not all entities
|Select|Steering wheel heater|Yes|
|Sensor|Battery level|Yes|
|Sensor|Battery range|Yes|
|Sensor|BMS state|No|
|Sensor|Brake pedal position|No|
|Sensor|Brick voltage max|No|
|Sensor|Brick voltage min|No|
|Sensor|Charge cable|No|
|Sensor|Charge energy added|Yes|
|Sensor|Charge rate|Yes|
|Sensor|Charger current|Yes|
|Sensor|Charger power|Yes|
|Sensor|Charger voltage|Yes|
|Sensor|Charging|Yes|
|Sensor|Cruise follow distance|No|
|Sensor|Cruise set speed|No|
|Sensor|Current speed limit|No|
|Sensor|DC charging energy in|No|
|Sensor|DC charging power|No|
|Sensor|Distance to arrival|Yes|
|Sensor|Driver temperature setting|No|
|Sensor|Estimate battery range|No|
|Sensor|Exterior color|No|
|Sensor|Fast charger type|No|
|Sensor|Front drive inverter axle speed|No|
|Sensor|Front drive inverter battery voltage|No|
|Sensor|Front drive inverter heatsink temperature|No|
|Sensor|Front drive inverter motor current|No|
|Sensor|Front drive inverter state|No|
|Sensor|Front drive inverter temperature|No|
|Sensor|Front drive unit actual torque|No|
|Sensor|Front drive unit stator temperature|No|
|Sensor|HVAC power state|No|
|Sensor|Ideal battery range|No|
|Sensor|Inside temperature|Yes|
|Sensor|Odometer|No|
|Sensor|Outside temperature|Yes|
|Sensor|Passenger temperature setting|No|
|Sensor|Power|No|
|Sensor|Rear drive inverter axle speed|No|
|Sensor|Rear drive inverter battery voltage|No|
|Sensor|Rear drive inverter heatsink temperature|No|
|Sensor|Rear drive inverter motor current|No|
|Sensor|Rear drive inverter state|No|
|Sensor|Rear drive inverter temperature|No|
|Sensor|Rear drive unit actual torque|No|
|Sensor|Rear drive unit stator temperature|No|
|Sensor|Rear left drive inverter axle speed|No|
|Sensor|Rear left drive inverter battery voltage|No|
|Sensor|Rear left drive inverter heatsink temperature|No|
|Sensor|Rear left drive inverter motor current|No|
|Sensor|Rear left drive inverter state|No|
|Sensor|Rear left drive inverter temperature|No|
|Sensor|Rear left drive unit actual torque|No|
|Sensor|Rear left drive unit stator temperature|No|
|Sensor|Rear right drive inverter axle speed|No|
|Sensor|Rear right drive inverter battery voltage|No|
|Sensor|Rear right drive inverter heatsink temperature|No|
|Sensor|Rear right drive inverter motor current|No|
|Sensor|Rear right drive inverter state|No|
|Sensor|Rear right drive inverter temperature|No|
|Sensor|Rear right drive unit actual torque|No|
|Sensor|Rear right drive unit stator temperature|No|
|Sensor|Roof color|No|
|Sensor|Scheduled charging mode|No|
|Sensor|Scheduled charging start time|No|
|Sensor|Scheduled departure time|No|
|Sensor|Secondary drive unit torque command|No|
|Sensor|Shift state|No|
|Sensor|Speed|No|
|Sensor|State of charge at arrival|No|
|Sensor|Time at arrival|Yes|
|Sensor|Time at full charge|Yes|
|Sensor|Time to arrival|Yes|
|Sensor|Time to arrival|Yes|
|Sensor|Time to full charge|Yes|
|Sensor|Time to full charge|Yes|
|Sensor|Tire pressure front left|No|
|Sensor|Tire pressure front right|No|
Expand All @@ -179,6 +220,7 @@ These are the entities available in the Teslemetry integration. Not all entities
|Sensor|Tire pressure rear right|No|
|Sensor|Traffic delay|No|
|Sensor|Usable Battery level|No|
|Sensor|Drive unit torque command|No|
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Reorder 'Drive unit torque command' to maintain alphabetical order
The entry “Drive unit torque command” is currently placed after “Usable Battery level”, breaking the table’s alphabetical sequence. It should be moved under the “D” section—ideally right after “Distance to arrival” (line 157).

Apply this diff to remove and reinsert in the correct position:

@@ -223 +223
- |Sensor|Drive unit torque command|No|
@@ Vehicles table after line 157
+ |Sensor|Drive unit torque command|No|
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
|Sensor|Drive unit torque command|No|
--- a/source/_integrations/teslemetry.markdown
+++ b/source/_integrations/teslemetry.markdown
@@ -157 +157
|Sensor|Distance to arrival|No|
+|Sensor|Drive unit torque command|No|
@@ -223 +223
-|Sensor|Drive unit torque command|No|

|Switch|Auto seat climate left|Yes|
|Switch|Auto seat climate right|Yes|
|Switch|Auto steering wheel heater|Yes|
Expand Down