From a5ee019951dc293b96727627697a0e229d620971 Mon Sep 17 00:00:00 2001 From: Brett Adams Date: Thu, 4 Jan 2024 19:47:32 +0000 Subject: [PATCH 1/3] Add doors --- .../components/tessie/binary_sensor.py | 20 +++++++++++++++++++ homeassistant/components/tessie/strings.json | 12 +++++++++++ 2 files changed, 32 insertions(+) diff --git a/homeassistant/components/tessie/binary_sensor.py b/homeassistant/components/tessie/binary_sensor.py index 5edbb1085688d4..162628cce5eb75 100644 --- a/homeassistant/components/tessie/binary_sensor.py +++ b/homeassistant/components/tessie/binary_sensor.py @@ -130,6 +130,26 @@ class TessieBinarySensorEntityDescription(BinarySensorEntityDescription): device_class=BinarySensorDeviceClass.WINDOW, entity_category=EntityCategory.DIAGNOSTIC, ), + TessieBinarySensorEntityDescription( + key="vehicle_state_df", + device_class=BinarySensorDeviceClass.DOOR, + entity_category=EntityCategory.DIAGNOSTIC, + ), + TessieBinarySensorEntityDescription( + key="vehicle_state_dr", + device_class=BinarySensorDeviceClass.DOOR, + entity_category=EntityCategory.DIAGNOSTIC, + ), + TessieBinarySensorEntityDescription( + key="vehicle_state_pf", + device_class=BinarySensorDeviceClass.DOOR, + entity_category=EntityCategory.DIAGNOSTIC, + ), + TessieBinarySensorEntityDescription( + key="vehicle_state_pr", + device_class=BinarySensorDeviceClass.DOOR, + entity_category=EntityCategory.DIAGNOSTIC, + ), ) diff --git a/homeassistant/components/tessie/strings.json b/homeassistant/components/tessie/strings.json index 7cf511c125c810..3fa0648d8afbc1 100644 --- a/homeassistant/components/tessie/strings.json +++ b/homeassistant/components/tessie/strings.json @@ -272,6 +272,18 @@ }, "vehicle_state_rp_window": { "name": "Rear passenger window" + }, + "vehicle_state_df": { + "name": "Front Driver door" + }, + "vehicle_state_pf": { + "name": "Front Passenger door" + }, + "vehicle_state_dr": { + "name": "Rear driver door" + }, + "vehicle_state_pr": { + "name": "Rear passenger door" } }, "button": { From 7cb078f84dfdf33353cf212d7f24c3c4cadc6a28 Mon Sep 17 00:00:00 2001 From: Brett Adams Date: Fri, 5 Jan 2024 05:53:03 +1000 Subject: [PATCH 2/3] Update homeassistant/components/tessie/strings.json Co-authored-by: Joost Lekkerkerker --- homeassistant/components/tessie/strings.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/tessie/strings.json b/homeassistant/components/tessie/strings.json index 3fa0648d8afbc1..9117588c898342 100644 --- a/homeassistant/components/tessie/strings.json +++ b/homeassistant/components/tessie/strings.json @@ -274,10 +274,10 @@ "name": "Rear passenger window" }, "vehicle_state_df": { - "name": "Front Driver door" + "name": "Front driver door" }, "vehicle_state_pf": { - "name": "Front Passenger door" + "name": "Front passenger door" }, "vehicle_state_dr": { "name": "Rear driver door" From 7a6d6fdf640f5c52de8e3a96929aad385c4d2802 Mon Sep 17 00:00:00 2001 From: Brett Adams Date: Thu, 4 Jan 2024 20:04:01 +0000 Subject: [PATCH 3/3] Add charge cable --- homeassistant/components/tessie/binary_sensor.py | 6 ++++++ homeassistant/components/tessie/strings.json | 3 +++ 2 files changed, 9 insertions(+) diff --git a/homeassistant/components/tessie/binary_sensor.py b/homeassistant/components/tessie/binary_sensor.py index 162628cce5eb75..7ffc69878cef02 100644 --- a/homeassistant/components/tessie/binary_sensor.py +++ b/homeassistant/components/tessie/binary_sensor.py @@ -54,6 +54,12 @@ class TessieBinarySensorEntityDescription(BinarySensorEntityDescription): key="charge_state_trip_charging", entity_category=EntityCategory.DIAGNOSTIC, ), + TessieBinarySensorEntityDescription( + key="charge_state_conn_charge_cable", + is_on=lambda x: x != "", + entity_category=EntityCategory.DIAGNOSTIC, + device_class=BinarySensorDeviceClass.CONNECTIVITY, + ), TessieBinarySensorEntityDescription( key="climate_state_auto_seat_climate_left", device_class=BinarySensorDeviceClass.HEAT, diff --git a/homeassistant/components/tessie/strings.json b/homeassistant/components/tessie/strings.json index 9117588c898342..336e553afcd071 100644 --- a/homeassistant/components/tessie/strings.json +++ b/homeassistant/components/tessie/strings.json @@ -228,6 +228,9 @@ "charge_state_trip_charging": { "name": "Trip charging" }, + "charge_state_conn_charge_cable": { + "name": "Charge cable" + }, "climate_state_auto_seat_climate_left": { "name": "Auto seat climate left" },