Skip to content

Commit

Permalink
#7 - Corrected lookups for voltages for Phase 2 & 3 for metered systems
Browse files Browse the repository at this point in the history
  • Loading branch information
muppet3000 committed Jul 6, 2023
1 parent c42f1cf commit 60c9d8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/grott/sensors/sensors_mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand All @@ -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",
},
Expand Down

0 comments on commit 60c9d8c

Please sign in to comment.