Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tesla Fleet grid status #126438

Merged
merged 20 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions homeassistant/components/tesla_fleet/icons.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,19 @@
},
"wall_connector_state": {
"default": "mdi:ev-station"
},
"storm_mode_active": {
"default": "mdi:weather-lightning"
},
"island_status": {
"default": "mdi:help-circle",
"state": {
"on_grid": "mdi:transmission-tower",
"off_grid": "mdi:transmission-tower-off",
"off_grid_unintentional": "mdi:transmission-tower-off",
"island_status_unknown": "mdi:help-circle",
"off_grid_intentional": "mdi:account-cancel"
JEMcats marked this conversation as resolved.
Show resolved Hide resolved
}
}
},
"switch": {
Expand Down
6 changes: 6 additions & 0 deletions homeassistant/components/tesla_fleet/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,12 @@ class TeslaFleetTimeEntityDescription(SensorEntityDescription):
device_class=SensorDeviceClass.POWER,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="island_status",
),
SensorEntityDescription(
key="storm_mode_active",
JEMcats marked this conversation as resolved.
Show resolved Hide resolved
),
JEMcats marked this conversation as resolved.
Show resolved Hide resolved
)

WALL_CONNECTOR_DESCRIPTIONS: tuple[SensorEntityDescription, ...] = (
Expand Down
13 changes: 13 additions & 0 deletions homeassistant/components/tesla_fleet/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,19 @@
"vehicle_state_odometer": {
"name": "Odometer"
},
"island_status": {
"name": "Grid Status",
"state": {
"island_status_unknown": "Unknown",
"on_grid": "Connected",
"off_grid": "Disconnected",
"off_grid_unintentional": "Disconnected",
JEMcats marked this conversation as resolved.
Show resolved Hide resolved
"off_grid_intentional": "Disconnected intentionally"
}
},
"storm_mode_active": {
"name": "Storm Watch active"
},
JEMcats marked this conversation as resolved.
Show resolved Hide resolved
"vehicle_state_tpms_pressure_fl": {
"name": "Tire pressure front left"
},
Expand Down