Skip to content

Commit

Permalink
Revert "doc: Fixing typo for sensor psi calculation (teslamate-org#4470
Browse files Browse the repository at this point in the history
…)" (teslamate-org#4479)

This reverts commit 33ca94a.
  • Loading branch information
JakobLichterfeld authored and senmizu committed Jan 14, 2025
1 parent 5d40265 commit 7f0dda6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions website/docs/integrations/home_assistant.md
Original file line number Diff line number Diff line change
Expand Up @@ -684,40 +684,40 @@ Don't forget to replace `<teslamate url>`, `<your tesla model>` and `<your tesla
friendly_name: Front Left Tire Pressure (psi)
unit_of_measurement: psi
icon_template: mdi:car-tire-alert
availability_template: "{{ has_value('sensor.tesla_tpms_pressure_fl') }}"
availability_template: "{{ has_value('sensor.tesla_tpms_fl') }}"
value_template: >
{% if has_value('sensor.tesla_tpms_pressure_fl') %}
{{ (states('sensor.tesla_tpms_pressure_fl') | float * 14.50377) | round(2) }}
{% if has_value('sensor.tesla_tpms_fl') %}
{{ (states('sensor.tesla_tpms_fl') | float * 14.50377) | round(2) }}
{% endif %}
tesla_tpms_pressure_fr_psi:
friendly_name: Front Right Tire Pressure (psi)
unit_of_measurement: psi
icon_template: mdi:car-tire-alert
availability_template: "{{ has_value('sensor.tesla_tpms_pressure_fr') }}"
availability_template: "{{ has_value('sensor.tesla_tpms_fr') }}"
value_template: >
{% if has_value('sensor.tesla_tpms_pressure_fr') %}
{{ (states('sensor.tesla_tpms_pressure_fr') | float * 14.50377) | round(2) }}
{% if has_value('sensor.tesla_tpms_fr') %}
{{ (states('sensor.tesla_tpms_fr') | float * 14.50377) | round(2) }}
{% endif %}
tesla_tpms_pressure_rl_psi:
friendly_name: Rear Left Tire Pressure (psi)
unit_of_measurement: psi
icon_template: mdi:car-tire-alert
availability_template: "{{ has_value('sensor.tesla_tpms_pressure_rl') }}"
availability_template: "{{ has_value('sensor.tesla_tpms_rl') }}"
value_template: >
{% if has_value('sensor.tesla_tpms_pressure_rl') %}
{{ (states('sensor.tesla_tpms_pressure_rl') | float * 14.50377) | round(2) }}
{% if has_value('sensor.tesla_tpms_rl') %}
{{ (states('sensor.tesla_tpms_rl') | float * 14.50377) | round(2) }}
{% endif %}
tesla_tpms_pressure_rr_psi:
friendly_name: Rear Right Tire Pressure (psi)
unit_of_measurement: psi
icon_template: mdi:car-tire-alert
availability_template: "{{ has_value('sensor.tesla_tpms_pressure_rr') }}"
availability_template: "{{ has_value('sensor.tesla_tpms_rr') }}"
value_template: >
{% if has_value('sensor.tesla_tpms_pressure_rr') %}
{{ (states('sensor.tesla_tpms_pressure_rr') | float * 14.50377) | round(2) }}
{% if has_value('sensor.tesla_tpms_rr') %}
{{ (states('sensor.tesla_tpms_rr') | float * 14.50377) | round(2) }}
{% endif %}
tesla_active_route_distance_to_arrival_km:
Expand Down

0 comments on commit 7f0dda6

Please sign in to comment.