From 964d59e0c390715a03a567f74a7c0a4cb4274a5f Mon Sep 17 00:00:00 2001 From: sbweiwei Date: Tue, 17 Feb 2026 04:02:31 +0800 Subject: [PATCH 01/17] =?UTF-8?q?=E8=BD=A6=E5=9E=8B=E5=90=8E=E9=9D=A2?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20level=20=E4=BB=A5=E5=8F=8A=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 车型后面增加 level 以及颜色显示 --- custom_components/wuling/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/custom_components/wuling/__init__.py b/custom_components/wuling/__init__.py index 2641f5b..761757b 100644 --- a/custom_components/wuling/__init__.py +++ b/custom_components/wuling/__init__.py @@ -388,7 +388,9 @@ def vin_sort(self): def model(self): name = self.car_info.get('carTypeName', '') model = self.car_info.get('model', '') - return f'{name} {model}'.strip() + level = self.car_info.get('level', '') + colorName = self.car_info.get('colorName', '') + return f'{name} {model} {level} {colorName}'.strip() async def update_from_service(self, call: ServiceCall): data = call.data @@ -612,4 +614,4 @@ def update(self): @callback def _handle_coordinator_update(self) -> None: - self.update() \ No newline at end of file + self.update() From 12dca88ba12bc57a2d5f0e92ee2441ac1a8793ba Mon Sep 17 00:00:00 2001 From: sbweiwei Date: Tue, 17 Feb 2026 11:42:10 +0800 Subject: [PATCH 02/17] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B9=B3=E5=9D=87?= =?UTF-8?q?=E9=80=9F=E5=BA=A6=E4=BC=A0=E6=84=9F=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加平均速度传感器 --- custom_components/wuling/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/custom_components/wuling/__init__.py b/custom_components/wuling/__init__.py index 761757b..a4e93aa 100644 --- a/custom_components/wuling/__init__.py +++ b/custom_components/wuling/__init__.py @@ -23,6 +23,7 @@ UnitOfElectricCurrent, UnitOfTime, UnitOfPower, + UnitOfSpeed, ) from homeassistant.config_entries import ConfigEntry from homeassistant.helpers.entity import DeviceInfo @@ -171,6 +172,12 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry): 'device_class': SensorDeviceClass.DISTANCE, 'unit_of_measurement': UnitOfLength.KILOMETERS, }), + NumberSensorConv('veh_Spd_AvgDrvn', prop='carStatus.vehSpdAvgDrvn').with_option({ + 'icon': 'mdi:speedometer', + 'state_class': SensorStateClass.MEASUREMENT, + 'device_class':SensorDeviceClass.SPEED, + 'unit_of_measurement': UnitOfSpeed.KILOMETERS_PER_HOUR, + }), NumberSensorConv('oil_level', prop='carStatus.leftFuel').with_option({ 'icon': 'mdi:water-percent', 'state_class': SensorStateClass.MEASUREMENT, From 7f0e7839aedbda47a227e5101e2b8cd06d907786 Mon Sep 17 00:00:00 2001 From: sbweiwei Date: Tue, 17 Feb 2026 11:46:09 +0800 Subject: [PATCH 03/17] =?UTF-8?q?Add=20=E5=B9=B3=E5=9D=87=E8=BD=A6?= =?UTF-8?q?=E9=80=9F=20translation=20to=20en.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/wuling/translations/en.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/wuling/translations/en.json b/custom_components/wuling/translations/en.json index 7380c2d..bcd53cf 100644 --- a/custom_components/wuling/translations/en.json +++ b/custom_components/wuling/translations/en.json @@ -42,6 +42,10 @@ "total_mileage": { "name": "总里程" }, + "veh_Spd_AvgDrvn": { + "name": "平均车速", + "unit": "km/h" + }, "left_mileage": { "name": "纯电续航" }, From a39d6ef0d78033b04002fa8365efa5738aea782c Mon Sep 17 00:00:00 2001 From: sbweiwei Date: Tue, 17 Feb 2026 11:51:03 +0800 Subject: [PATCH 04/17] =?UTF-8?q?Add=20=E7=94=B5=E6=B1=A0=E5=8D=95?= =?UTF-8?q?=E4=BD=93=E6=9C=80=E9=AB=98=E6=9C=80=E4=BD=8E=E6=B8=A9=E5=BA=A6?= =?UTF-8?q?=20translations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/wuling/translations/en.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/custom_components/wuling/translations/en.json b/custom_components/wuling/translations/en.json index bcd53cf..5ab356e 100644 --- a/custom_components/wuling/translations/en.json +++ b/custom_components/wuling/translations/en.json @@ -65,6 +65,12 @@ "battery_temp": { "name": "电池温度" }, + "battery_temp_min": { + "name": "电池单体最低温度" + }, + "battery_temp_max": { + "name": "电池单体最高温度" + }, "battery_voltage": { "name": "电池电压" }, From fb07e7cac471c845558b5f2bbd06cfd0ce88a955 Mon Sep 17 00:00:00 2001 From: sbweiwei Date: Tue, 17 Feb 2026 11:54:37 +0800 Subject: [PATCH 05/17] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=94=B5=E6=B1=A0?= =?UTF-8?q?=E5=8D=95=E4=BD=93=E6=9C=80=E9=AB=98=E6=9C=80=E4=BD=8E=E6=B8=A9?= =?UTF-8?q?=E5=BA=A6=E4=BC=A0=E6=84=9F=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/wuling/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/custom_components/wuling/__init__.py b/custom_components/wuling/__init__.py index a4e93aa..748a706 100644 --- a/custom_components/wuling/__init__.py +++ b/custom_components/wuling/__init__.py @@ -189,6 +189,18 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry): 'entity_category': EntityCategory.DIAGNOSTIC, 'unit_of_measurement': UnitOfTemperature.CELSIUS, }), + NumberSensorConv('battery_temp_min', prop='carStatus.batMinTemp').with_option({ + 'state_class': SensorStateClass.MEASUREMENT, + 'device_class': SensorDeviceClass.TEMPERATURE, + 'entity_category': EntityCategory.DIAGNOSTIC, + 'unit_of_measurement': UnitOfTemperature.CELSIUS, + }), + NumberSensorConv('battery_temp_max', prop='carStatus.batMaxTemp').with_option({ + 'state_class': SensorStateClass.MEASUREMENT, + 'device_class': SensorDeviceClass.TEMPERATURE, + 'entity_category': EntityCategory.DIAGNOSTIC, + 'unit_of_measurement': UnitOfTemperature.CELSIUS, + }), NumberSensorConv('battery_voltage', prop='carStatus.voltage').with_option({ 'state_class': SensorStateClass.MEASUREMENT, 'device_class': SensorDeviceClass.VOLTAGE, From 1ddc20c3c283f2fa740f67d1e5928d1ef6c61644 Mon Sep 17 00:00:00 2001 From: sbweiwei Date: Fri, 20 Feb 2026 02:17:24 +0800 Subject: [PATCH 06/17] =?UTF-8?q?Add=20=E9=80=86=E5=8F=98=E5=99=A8?= =?UTF-8?q?=E6=B8=A9=E5=BA=A6=20options?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原来invActTemp写成空调温度没有修改,不知道是不是其他车型是空调温度。 --- custom_components/wuling/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/custom_components/wuling/__init__.py b/custom_components/wuling/__init__.py index 748a706..8751529 100644 --- a/custom_components/wuling/__init__.py +++ b/custom_components/wuling/__init__.py @@ -201,6 +201,12 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry): 'entity_category': EntityCategory.DIAGNOSTIC, 'unit_of_measurement': UnitOfTemperature.CELSIUS, }), + NumberSensorConv('invActTemp', prop='carStatus.invActTemp').with_option({ + 'state_class': SensorStateClass.MEASUREMENT, + 'device_class': SensorDeviceClass.TEMPERATURE, + 'entity_category': EntityCategory.DIAGNOSTIC, + 'unit_of_measurement': UnitOfTemperature.CELSIUS, + }), NumberSensorConv('battery_voltage', prop='carStatus.voltage').with_option({ 'state_class': SensorStateClass.MEASUREMENT, 'device_class': SensorDeviceClass.VOLTAGE, From 7bedf25bc361213951de6c678a0c0c98f2b4f710 Mon Sep 17 00:00:00 2001 From: sbweiwei Date: Fri, 20 Feb 2026 02:19:46 +0800 Subject: [PATCH 07/17] =?UTF-8?q?Add=20=E5=85=85=E7=94=B5=E6=9C=BA?= =?UTF-8?q?=E6=B8=A9=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/wuling/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/custom_components/wuling/__init__.py b/custom_components/wuling/__init__.py index 8751529..829d93f 100644 --- a/custom_components/wuling/__init__.py +++ b/custom_components/wuling/__init__.py @@ -207,6 +207,18 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry): 'entity_category': EntityCategory.DIAGNOSTIC, 'unit_of_measurement': UnitOfTemperature.CELSIUS, }), + NumberSensorConv('cdj_temp', prop='carStatus.cdjTemp').with_option({ + 'state_class': SensorStateClass.MEASUREMENT, + 'device_class': SensorDeviceClass.TEMPERATURE, + 'entity_category': EntityCategory.DIAGNOSTIC, + 'unit_of_measurement': UnitOfTemperature.CELSIUS, + }), + NumberSensorConv('obc_temp', prop='carStatus.obcTemp').with_option({ + 'state_class': SensorStateClass.MEASUREMENT, + 'device_class': SensorDeviceClass.TEMPERATURE, + 'entity_category': EntityCategory.DIAGNOSTIC, + 'unit_of_measurement': UnitOfTemperature.CELSIUS, + }), NumberSensorConv('battery_voltage', prop='carStatus.voltage').with_option({ 'state_class': SensorStateClass.MEASUREMENT, 'device_class': SensorDeviceClass.VOLTAGE, From 9aba97dc84ca4a10f78fd6ecf0209a5848b11105 Mon Sep 17 00:00:00 2001 From: sbweiwei Date: Fri, 20 Feb 2026 02:26:01 +0800 Subject: [PATCH 08/17] Add translations for inverter and charger temperatures --- custom_components/wuling/translations/en.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/custom_components/wuling/translations/en.json b/custom_components/wuling/translations/en.json index 5ab356e..0054eaf 100644 --- a/custom_components/wuling/translations/en.json +++ b/custom_components/wuling/translations/en.json @@ -71,6 +71,15 @@ "battery_temp_max": { "name": "电池单体最高温度" }, + "invActTemp": { + "name": "逆变器温度" + }, + "obc_temp": { + "name": "交流充电机温度" + }, + "cdj_temp": { + "name": "充电机插口温度" + }, "battery_voltage": { "name": "电池电压" }, From 5c551e79a30b8e42181ce1a7d074e4162cff2d89 Mon Sep 17 00:00:00 2001 From: sbweiwei Date: Mon, 23 Feb 2026 02:18:26 +0800 Subject: [PATCH 09/17] Add battery state of health sensor configuration --- custom_components/wuling/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/custom_components/wuling/__init__.py b/custom_components/wuling/__init__.py index 829d93f..97bba89 100644 --- a/custom_components/wuling/__init__.py +++ b/custom_components/wuling/__init__.py @@ -231,6 +231,12 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry): 'entity_category': EntityCategory.DIAGNOSTIC, 'unit_of_measurement': PERCENTAGE, }), + NumberSensorConv('battery_SOH', prop='carStatus.batSOH').with_option({ + 'icon': 'mdi:battery-heart', + 'state_class': SensorStateClass.MEASUREMENT, + 'entity_category': EntityCategory.DIAGNOSTIC, + 'unit_of_measurement': PERCENTAGE, + }), SensorConv('battery_status', prop='carStatus.batteryStatus').with_option({ 'icon': 'mdi:battery-unknown', }), From cb5cce849a71de56591893f8023e01a23c7afed9 Mon Sep 17 00:00:00 2001 From: sbweiwei Date: Mon, 23 Feb 2026 02:20:41 +0800 Subject: [PATCH 10/17] Add battery SOH translation to English JSON --- custom_components/wuling/translations/en.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom_components/wuling/translations/en.json b/custom_components/wuling/translations/en.json index 0054eaf..754e0c2 100644 --- a/custom_components/wuling/translations/en.json +++ b/custom_components/wuling/translations/en.json @@ -86,6 +86,9 @@ "battery_health": { "name": "电池健康" }, + "battery_SOH": { + "name": "电池SOH" + }, "battery_status": { "name": "电池状态" }, From 2a5fb4e5571d86bd42288ab63518e262eda04fcd Mon Sep 17 00:00:00 2001 From: sbweiwei Date: Tue, 19 May 2026 02:17:37 +0800 Subject: [PATCH 11/17] Update __init__.py --- custom_components/wuling/__init__.py | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/custom_components/wuling/__init__.py b/custom_components/wuling/__init__.py index 97bba89..1b228fe 100644 --- a/custom_components/wuling/__init__.py +++ b/custom_components/wuling/__init__.py @@ -277,6 +277,38 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry): BinarySensorConv('window3_status', prop='carStatus.window3OpenStatus', parent='window_status'), BinarySensorConv('window4_status', prop='carStatus.window4OpenStatus', parent='window_status'), + BinarySensorConv('leftTurnLight', prop='carStatus.leftTurnLight').with_option({ + 'icon': 'mdi:car-parking-lights', + 'device_class': BinarySensorDeviceClass.LIGHT, + 'state_class': SensorStateClass.MEASUREMENT, + }), + BinarySensorConv('rightTurnLight', prop='carStatus.rightTurnLight').with_option({ + 'icon': 'mdi:car-parking-lights', + 'device_class': BinarySensorDeviceClass.LIGHT, + }), + BinarySensorConv('rearFogLight', prop='carStatus.rearFogLight').with_option({ + 'icon': 'mdi:car-parking-lights', + 'device_class': BinarySensorDeviceClass.LIGHT, + 'parent': 'frontFogLight', + }), + BinarySensorConv('frontFogLight', prop='carStatus.frontFogLight').with_option({ + 'icon': 'mdi:car-parking-lights', + 'device_class': BinarySensorDeviceClass.LIGHT, + }), + BinarySensorConv('dipHeadLight', prop='carStatus.dipHeadLight').with_option({ + 'icon': 'mdi:car-parking-lights', + 'device_class': BinarySensorDeviceClass.LIGHT, + 'parent': 'lowBeamLight', + }), + BinarySensorConv('lowBeamLight', prop='carStatus.lowBeamLight').with_option({ + 'icon': 'mdi:car-parking-lights', + 'device_class': BinarySensorDeviceClass.LIGHT, + }), + BinarySensorConv('positionLight', prop='carStatus.positionLight').with_option({ + 'icon': 'mdi:car-parking-lights', + 'device_class': BinarySensorDeviceClass.LIGHT, + }), + BinarySensorConv('charging', prop='carStatus.charging').with_option({ 'device_class': BinarySensorDeviceClass.BATTERY_CHARGING, }), From 602d1a6f4513b9345bc903178d09328ebc6e8d1b Mon Sep 17 00:00:00 2001 From: sbweiwei Date: Tue, 19 May 2026 02:29:25 +0800 Subject: [PATCH 12/17] Update en.json --- custom_components/wuling/translations/en.json | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/custom_components/wuling/translations/en.json b/custom_components/wuling/translations/en.json index 754e0c2..58813d8 100644 --- a/custom_components/wuling/translations/en.json +++ b/custom_components/wuling/translations/en.json @@ -142,6 +142,27 @@ "window_status": { "name": "车窗状态" }, + "leftTurnLight": { + "name": "左转灯" + }, + "rightTurnLight": { + "name": "右转灯" + }, + "rearFogLight": { + "name": "rearFogLight" + }, + "frontFogLight": { + "name": "frontFogLight" + }, + "dipHeadLight": { + "name": "dipHeadLight" + }, + "lowBeamLight": { + "name": "lowBeamLight" + }, + "positionLight": { + "name": "positionLight" + }, "charging": { "name": "充电状态" }, From 82c8f6345b32c47391ee24a5f8c31a69fed16d16 Mon Sep 17 00:00:00 2001 From: sbweiwei Date: Wed, 20 May 2026 01:41:12 +0800 Subject: [PATCH 13/17] Update en.json --- custom_components/wuling/translations/en.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/wuling/translations/en.json b/custom_components/wuling/translations/en.json index 58813d8..8a838f7 100644 --- a/custom_components/wuling/translations/en.json +++ b/custom_components/wuling/translations/en.json @@ -149,19 +149,19 @@ "name": "右转灯" }, "rearFogLight": { - "name": "rearFogLight" + "name": "后雾灯" }, "frontFogLight": { - "name": "frontFogLight" + "name": "前雾灯" }, "dipHeadLight": { "name": "dipHeadLight" }, "lowBeamLight": { - "name": "lowBeamLight" + "name": "车头灯" }, "positionLight": { - "name": "positionLight" + "name": "示廓灯" }, "charging": { "name": "充电状态" From 32c199aab2618e0bdfbc0b89b54c75f8537e2718 Mon Sep 17 00:00:00 2001 From: sbweiwei Date: Thu, 21 May 2026 04:12:02 +0800 Subject: [PATCH 14/17] Update __init__.py --- custom_components/wuling/__init__.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/custom_components/wuling/__init__.py b/custom_components/wuling/__init__.py index 1b228fe..0fc988b 100644 --- a/custom_components/wuling/__init__.py +++ b/custom_components/wuling/__init__.py @@ -100,6 +100,19 @@ def decode(self, client, payload, value): payload[self.attr] = 0.0 +class SteeringAngleSensorConv(NumberSensorConv): + def decode(self, client, payload, value): + try: + raw_value = float(value) + if 0 <= raw_value <= 2048: + payload[self.attr] = round(raw_value, 3) + elif 2048 < raw_value < 4096: + payload[self.attr] = round(raw_value - 4096, 3) + else: + payload[self.attr] = 0.0 + except (ValueError, TypeError): + payload[self.attr] = 0.0 + async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry): hass.data.setdefault(entry.entry_id, {}) @@ -422,6 +435,11 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry): 'entity_category': EntityCategory.DIAGNOSTIC, 'unit_of_measurement': UnitOfPressure.KPA, }), + SteeringAngleSensorConv('strWhAng', prop='carStatus.strWhAng').with_option({ + 'icon': 'mdi:steering', + 'state_class': SensorStateClass.MEASUREMENT, + 'device_class': None, + }), ] @property From 9d62a4d55e7754d60ae8e1a128fb261329ef9130 Mon Sep 17 00:00:00 2001 From: sbweiwei Date: Thu, 21 May 2026 04:18:37 +0800 Subject: [PATCH 15/17] Update en.json --- custom_components/wuling/translations/en.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom_components/wuling/translations/en.json b/custom_components/wuling/translations/en.json index 8a838f7..b425ebc 100644 --- a/custom_components/wuling/translations/en.json +++ b/custom_components/wuling/translations/en.json @@ -95,6 +95,9 @@ "small_battery_voltage": { "name": "电瓶电压" }, + "strWhAng": { + "name": "转向角度" + }, "door_status": { "name": "车门状态" }, From 0e642b8d8a036f9a967870044b16c90c2977380f Mon Sep 17 00:00:00 2001 From: sbweiwei Date: Thu, 21 May 2026 04:24:19 +0800 Subject: [PATCH 16/17] Update en.json --- custom_components/wuling/translations/en.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/wuling/translations/en.json b/custom_components/wuling/translations/en.json index b425ebc..af8aba1 100644 --- a/custom_components/wuling/translations/en.json +++ b/custom_components/wuling/translations/en.json @@ -96,7 +96,7 @@ "name": "电瓶电压" }, "strWhAng": { - "name": "转向角度" + "name": "方向盘角度" }, "door_status": { "name": "车门状态" From 1df917ece3ccc4ad96a3fabfbb7060229cd52cfa Mon Sep 17 00:00:00 2001 From: sbweiwei Date: Fri, 22 May 2026 03:15:16 +0800 Subject: [PATCH 17/17] =?UTF-8?q?Update=20=5F=5Finit=5F=5F.py=EF=BC=8C?= =?UTF-8?q?=E9=83=A8=E5=88=86=E6=95=B0=E6=8D=AE=E4=BF=AE=E6=94=B9=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=B0=8F=E6=95=B0=E7=82=B9precision=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/wuling/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/wuling/__init__.py b/custom_components/wuling/__init__.py index 0fc988b..962e57b 100644 --- a/custom_components/wuling/__init__.py +++ b/custom_components/wuling/__init__.py @@ -185,7 +185,7 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry): 'device_class': SensorDeviceClass.DISTANCE, 'unit_of_measurement': UnitOfLength.KILOMETERS, }), - NumberSensorConv('veh_Spd_AvgDrvn', prop='carStatus.vehSpdAvgDrvn').with_option({ + NumberSensorConv('veh_Spd_AvgDrvn', prop='carStatus.vehSpdAvgDrvn', precision=1).with_option({ 'icon': 'mdi:speedometer', 'state_class': SensorStateClass.MEASUREMENT, 'device_class':SensorDeviceClass.SPEED, @@ -232,7 +232,7 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry): 'entity_category': EntityCategory.DIAGNOSTIC, 'unit_of_measurement': UnitOfTemperature.CELSIUS, }), - NumberSensorConv('battery_voltage', prop='carStatus.voltage').with_option({ + NumberSensorConv('battery_voltage', prop='carStatus.voltage', precision=1).with_option({ 'state_class': SensorStateClass.MEASUREMENT, 'device_class': SensorDeviceClass.VOLTAGE, 'entity_category': EntityCategory.DIAGNOSTIC, @@ -253,7 +253,7 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry): SensorConv('battery_status', prop='carStatus.batteryStatus').with_option({ 'icon': 'mdi:battery-unknown', }), - NumberSensorConv('small_battery_voltage', prop='carStatus.lowBatVol').with_option({ + NumberSensorConv('small_battery_voltage', prop='carStatus.lowBatVol', precision=2).with_option({ 'state_class': SensorStateClass.MEASUREMENT, 'device_class': SensorDeviceClass.VOLTAGE, 'entity_category': EntityCategory.DIAGNOSTIC, @@ -435,7 +435,7 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry): 'entity_category': EntityCategory.DIAGNOSTIC, 'unit_of_measurement': UnitOfPressure.KPA, }), - SteeringAngleSensorConv('strWhAng', prop='carStatus.strWhAng').with_option({ + SteeringAngleSensorConv('strWhAng', prop='carStatus.strWhAng', precision=3).with_option({ 'icon': 'mdi:steering', 'state_class': SensorStateClass.MEASUREMENT, 'device_class': None,