vincentwolsink / home_assistant_enphase_envoy_installer

This is a HACS custom integration for Enphase Envoys with firmware version 7 and up.
Apache License 2.0
54 stars 10 forks source link

Remove the static icon, as the device_class already defines a icon in HA #65

Closed mnederlof closed 11 months ago

mnederlof commented 11 months ago

Looks way better with different icons based on the device class.

image

mnederlof commented 11 months ago

If we want to be accurate for the DC current, we'd use mdi:current-dc, but there is nothing for DC voltage.. image

Just specify DC current like this in const.py (note the icon parameter):

    SensorEntityDescription(
        key="inverters_dc_current",
        name="DC Current",
        icon="mdi:current-dc",
        native_unit_of_measurement=UnitOfElectricCurrent.AMPERE,
        state_class=SensorStateClass.MEASUREMENT,
        device_class=SensorDeviceClass.CURRENT,
    ),