From c42f1cfa029929f8ab6fbb002f3c3ddf3dca6ded Mon Sep 17 00:00:00 2001 From: Chris Straffon Date: Thu, 6 Jul 2023 22:06:27 +0100 Subject: [PATCH] #7 - Corrected icons for meter values --- custom_components/grott/sensors/sensors_mqtt.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/custom_components/grott/sensors/sensors_mqtt.py b/custom_components/grott/sensors/sensors_mqtt.py index f04b88d..be96bf3 100644 --- a/custom_components/grott/sensors/sensors_mqtt.py +++ b/custom_components/grott/sensors/sensors_mqtt.py @@ -964,7 +964,7 @@ def datetime_formatter(mqtt_data): "device_class": SensorDeviceClass.VOLTAGE, "unit_of_measurement": UnitOfElectricPotential.VOLT, "state_class": SensorStateClass.MEASUREMENT, - "icon": "mdi:solar-power", + "icon": "mdi:flash", "func": lambda js: js['values']["voltage_l1"], "divider": 10, "unique_name": "mqtt_087", @@ -974,7 +974,7 @@ def datetime_formatter(mqtt_data): "device_class": SensorDeviceClass.VOLTAGE, "unit_of_measurement": UnitOfElectricPotential.VOLT, "state_class": SensorStateClass.MEASUREMENT, - "icon": "mdi:solar-power", + "icon": "mdi:flash", "func": lambda js: js['values']["voltage_l1"], "divider": 10, "unique_name": "mqtt_088", @@ -984,7 +984,7 @@ def datetime_formatter(mqtt_data): "device_class": SensorDeviceClass.VOLTAGE, "unit_of_measurement": UnitOfElectricPotential.VOLT, "state_class": SensorStateClass.MEASUREMENT, - "icon": "mdi:solar-power", + "icon": "mdi:flash", "func": lambda js: js['values']["voltage_l1"], "divider": 10, "unique_name": "mqtt_089", @@ -995,7 +995,7 @@ def datetime_formatter(mqtt_data): "device_class": SensorDeviceClass.CURRENT, "unit_of_measurement": UnitOfElectricCurrent.AMPERE, "state_class": SensorStateClass.MEASUREMENT, - "icon": "mdi:solar-power", + "icon": "mdi:flash", "func": lambda js: js['values']["Current_l1"], "divider": 10, "unique_name": "mqtt_090", @@ -1005,7 +1005,7 @@ def datetime_formatter(mqtt_data): "device_class": SensorDeviceClass.CURRENT, "unit_of_measurement": UnitOfElectricCurrent.AMPERE, "state_class": SensorStateClass.MEASUREMENT, - "icon": "mdi:solar-power", + "icon": "mdi:flash", "func": lambda js: js['values']["Current_l2"], "divider": 10, "unique_name": "mqtt_091", @@ -1015,7 +1015,7 @@ def datetime_formatter(mqtt_data): "device_class": SensorDeviceClass.CURRENT, "unit_of_measurement": UnitOfElectricCurrent.AMPERE, "state_class": SensorStateClass.MEASUREMENT, - "icon": "mdi:solar-power", + "icon": "mdi:flash", "func": lambda js: js['values']["Current_l3"], "divider": 10, "unique_name": "mqtt_092", @@ -1076,7 +1076,7 @@ def datetime_formatter(mqtt_data): "device_class": SensorDeviceClass.ENERGY, "unit_of_measurement": UnitOfEnergy.KILO_WATT_HOUR, "state_class": SensorStateClass.TOTAL, - "icon": "mdi:home-import-outline", + "icon": "mdi:home-export-outline", "func": lambda js: js['values']["rev_act_energy"], "divider": 10, "unique_name": "mqtt_098",