a529987659852 / openwbmqtt

Custom component for home assistant supporting openWB wallbox
35 stars 16 forks source link

change the icon for 'sensor.openwb_heutiger_strom_export_kwh' #49

Closed CodingRainer closed 1 year ago

CodingRainer commented 1 year ago

the icon for the sensor 'sensor.openwb_heutiger_strom_export_kwh' should be 'mdi:transmission-tower-import'

ChristophCaina commented 1 year ago

You probably mean "heutiger_strom_bezug_kwh"

openwbSensorEntityDescription(
        key="evu/DailyYieldImportKwh",
        name="Heutiger Strom-Bezug (kWh)",
        device_class=SensorDeviceClass.ENERGY,
        state_class=SensorStateClass.TOTAL_INCREASING,
        native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
        entity_registry_enabled_default=False,
        value_fn=lambda x: round(float(x), 2),
old:        icon="mdi:transmission-tower-export",
new:        icon="mdi:transmission-tower-import",

fixed and created PR #50

ChristophCaina commented 1 year ago

hm... just noticed, that the icon description is a bit misleading... ^^ grafik

this would be valid for all sensors: grafik

Sorry - I'll change that again

ChristophCaina commented 1 year ago

should now be changed for all sensors in PR #51 grafik

grafik