Skip to content

Commit

Permalink
#7 - Corrected icons for meter values
Browse files Browse the repository at this point in the history
  • Loading branch information
muppet3000 committed Jul 6, 2023
1 parent 759caf0 commit c42f1cf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions custom_components/grott/sensors/sensors_mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit c42f1cf

Please sign in to comment.