Add doors and charge cable binary sensors to Tessie (#107172)
* Add doors * Update homeassistant/components/tessie/strings.json Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Add charge cable --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
parent
02ac985120
commit
b711c491d5
2 changed files with 41 additions and 0 deletions
|
@ -54,6 +54,12 @@ DESCRIPTIONS: tuple[TessieBinarySensorEntityDescription, ...] = (
|
|||
key="charge_state_trip_charging",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
TessieBinarySensorEntityDescription(
|
||||
key="charge_state_conn_charge_cable",
|
||||
is_on=lambda x: x != "<invalid>",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
device_class=BinarySensorDeviceClass.CONNECTIVITY,
|
||||
),
|
||||
TessieBinarySensorEntityDescription(
|
||||
key="climate_state_auto_seat_climate_left",
|
||||
device_class=BinarySensorDeviceClass.HEAT,
|
||||
|
@ -130,6 +136,26 @@ DESCRIPTIONS: tuple[TessieBinarySensorEntityDescription, ...] = (
|
|||
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,
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -249,6 +249,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"
|
||||
},
|
||||
|
@ -293,6 +296,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": {
|
||||
|
|
Loading…
Add table
Reference in a new issue