Skip to content

Commit

Permalink
#7 - Added powerfactor for meter systems
Browse files Browse the repository at this point in the history
  • Loading branch information
muppet3000 committed Jul 7, 2023
1 parent f521cbf commit 38f849c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions custom_components/grott/sensors/sensors_mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,36 @@ def datetime_formatter(mqtt_data):
"unique_name": "mqtt_099",
},

{
"name": "Phase1 Power factor",
"device_class": None,
"unit_of_measurement": None,
"state_class": None,
"icon": "mdi:information-outline",
"func": lambda js: js['values']["powerfactor_l1"],
"divider": 10,
"unique_name": "mqtt_100",
},
{
"name": "Phase2 Power factor",
"device_class": None,
"unit_of_measurement": None,
"state_class": None,
"icon": "mdi:information-outline",
"func": lambda js: js['values']["powerfactor_l2"],
"divider": 10,
"unique_name": "mqtt_101",
},
{
"name": "Phase3 Power factor",
"device_class": None,
"unit_of_measurement": None,
"state_class": None,
"icon": "mdi:information-outline",
"func": lambda js: js['values']["powerfactor_l3"],
"divider": 10,
"unique_name": "mqtt_102",
},

#The following entries are out-of-order in the above list, be sure to check for the latest value for unique_name from both lists
#mqtt_066 - PV3 Voltage
Expand Down

0 comments on commit 38f849c

Please sign in to comment.