Skip to content

Commit

Permalink
Merge pull request #168 from vincentwolsink/firmware_sensors
Browse files Browse the repository at this point in the history
Add firmware version sensors for all devices
  • Loading branch information
vincentwolsink authored Oct 28, 2024
2 parents 1dbbf01 + 354661a commit e019ac9
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 116 deletions.
24 changes: 24 additions & 0 deletions custom_components/enphase_envoy/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,30 @@ def get_model_name(model, hardware_id):
suggested_display_precision=0,
entity_category=EntityCategory.DIAGNOSTIC,
),
SensorEntityDescription(
key="envoy_software",
name="Firmware Version",
icon="mdi:memory",
entity_category=EntityCategory.DIAGNOSTIC,
),
SensorEntityDescription(
key="inverters_software",
name="Firmware Version",
icon="mdi:memory",
entity_category=EntityCategory.DIAGNOSTIC,
),
SensorEntityDescription(
key="relays_software",
name="Firmware Version",
icon="mdi:memory",
entity_category=EntityCategory.DIAGNOSTIC,
),
SensorEntityDescription(
key="batteries_software",
name="Firmware Version",
icon="mdi:memory",
entity_category=EntityCategory.DIAGNOSTIC,
),
)
ADDITIONAL_METRICS.extend(
[
Expand Down
2 changes: 1 addition & 1 deletion custom_components/enphase_envoy/envoy_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Generic endpoints
"info": {
"url": "https://{}/info.xml",
"cache": 86400,
"cache": 3600,
"installer_required": False,
"optional": False,
},
Expand Down
Loading

0 comments on commit e019ac9

Please sign in to comment.