Skip to content

Commit

Permalink
Add BackupMode to Fronius integration.
Browse files Browse the repository at this point in the history
This binary sensor shows if the Fronius Gen24 inverter is running
in "Backup Mode", which means the grid power is not available, and
the device is running from battery (or using the PVPoint).
  • Loading branch information
schinckel committed Sep 28, 2024
1 parent b996bd3 commit 6da2d56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions homeassistant/components/fronius/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,10 @@ class FroniusSensorEntityDescription(SensorEntityDescription):
native_unit_of_measurement=PERCENTAGE,
state_class=SensorStateClass.MEASUREMENT,
),
FroniusSensorEntityDescription(
key='backup_mode',
entity_category=EntityCategory.DIAGNOSTIC,
),
]

STORAGE_ENTITY_DESCRIPTIONS: list[FroniusSensorEntityDescription] = [
Expand Down
3 changes: 3 additions & 0 deletions homeassistant/components/fronius/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@
},
"temperature_cell": {
"name": "[%key:component::sensor::entity_component::temperature::name%]"
},
"backup_mode": {
"name": "Backup Mode"
}
}
}
Expand Down

0 comments on commit 6da2d56

Please sign in to comment.