Skip to content

Commit

Permalink
adding new sensors found in mobile version 2.5 for vehicle-control / …
Browse files Browse the repository at this point in the history
…1.x release (#136)
  • Loading branch information
tmack8001 authored Dec 5, 2023
1 parent 91d9e55 commit d1936a5
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions custom_components/rivian/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,17 @@
state_class=SensorStateClass.MEASUREMENT,
suggested_display_precision=0,
),
RivianSensorEntityDescription(
key="altitude",
field="gnssAltitude",
name="Altitude",
icon="mdi:altimeter",
device_class=SensorDeviceClass.DISTANCE,
native_unit_of_measurement=UnitOfLength.METERS,
state_class=SensorStateClass.MEASUREMENT,
suggested_display_precision=0,
suggested_unit_of_measurement=UnitOfLength.FEET,
),
RivianSensorEntityDescription(
key="time_to_end_of_charge",
field="timeToEndOfCharge",
Expand Down Expand Up @@ -575,6 +586,55 @@
icon="mdi:car-battery",
entity_category=EntityCategory.DIAGNOSTIC,
),
RivianSensorEntityDescription(
key="limited_acceleration_cold",
field="limitedAccelCold",
name="Limited Acceleration (Cold)",
icon="mdi:snowflake-thermometer",
entity_category=EntityCategory.DIAGNOSTIC,
),
RivianSensorEntityDescription(
key="limited_regen_braking_cold",
field="limitedRegenCold",
name="Limited Regenerative Braking (Cold)",
icon="mdi:snowflake-thermometer",
entity_category=EntityCategory.DIAGNOSTIC,
),
RivianSensorEntityDescription(
key="bluetooth_front_fascia_hardware_failure_status",
field="btmFfHardwareFailureStatus",
name="Bluetooth Module Failure Status Fascia Front",
icon="mdi:bluetooth",
entity_category=EntityCategory.DIAGNOSTIC,
),
RivianSensorEntityDescription(
key="bluetooth_rear_fascia_hardware_failure_status",
field="btmRfHardwareFailureStatus",
name="Bluetooth Module Failure Status Fascia Rear",
icon="mdi:bluetooth",
entity_category=EntityCategory.DIAGNOSTIC,
),
RivianSensorEntityDescription(
key="bluetooth_instrument_controls_hardware_failure_status",
field="btmIcHardwareFailureStatus",
name="Bluetooth Module Failure Status Instrument Controls",
icon="mdi:bluetooth",
entity_category=EntityCategory.DIAGNOSTIC,
),
RivianSensorEntityDescription(
key="bluetooth_right_front_door_hardware_failure_status",
field="btmRfdHardwareFailureStatus",
name="Bluetooth Module Failure Status Door Front Right",
icon="mdi:bluetooth",
entity_category=EntityCategory.DIAGNOSTIC,
),
RivianSensorEntityDescription(
key="bluetooth_left_front_door_hardware_failure_status",
field="btmLfdHardwareFailureStatus",
name="Bluetooth Module Failure Status Door Front Left",
icon="mdi:bluetooth",
entity_category=EntityCategory.DIAGNOSTIC,
),
),
"R1S": (
RivianSensorEntityDescription(
Expand Down

0 comments on commit d1936a5

Please sign in to comment.