From 60c9d8c270c7cdba8aed97f9dfd98924928b14c0 Mon Sep 17 00:00:00 2001 From: Chris Straffon Date: Thu, 6 Jul 2023 22:16:51 +0100 Subject: [PATCH] #7 - Corrected lookups for voltages for Phase 2 & 3 for metered systems --- custom_components/grott/sensors/sensors_mqtt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/grott/sensors/sensors_mqtt.py b/custom_components/grott/sensors/sensors_mqtt.py index be96bf3..44093b5 100644 --- a/custom_components/grott/sensors/sensors_mqtt.py +++ b/custom_components/grott/sensors/sensors_mqtt.py @@ -975,7 +975,7 @@ def datetime_formatter(mqtt_data): "unit_of_measurement": UnitOfElectricPotential.VOLT, "state_class": SensorStateClass.MEASUREMENT, "icon": "mdi:flash", - "func": lambda js: js['values']["voltage_l1"], + "func": lambda js: js['values']["voltage_l2"], "divider": 10, "unique_name": "mqtt_088", }, @@ -985,7 +985,7 @@ def datetime_formatter(mqtt_data): "unit_of_measurement": UnitOfElectricPotential.VOLT, "state_class": SensorStateClass.MEASUREMENT, "icon": "mdi:flash", - "func": lambda js: js['values']["voltage_l1"], + "func": lambda js: js['values']["voltage_l3"], "divider": 10, "unique_name": "mqtt_089", },