Add volt/power/power_factor strings and state attrs for ZHA 3 phase meters (#133969)

This commit is contained in:
Abílio Costa 2025-01-28 21:39:33 +00:00 committed by GitHub
parent 51ce6f0933
commit c46258fbf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 24 additions and 0 deletions

View File

@ -46,9 +46,15 @@ _EXTRA_STATE_ATTRIBUTES: set[str] = {
"rms_current_max_ph_b",
"rms_current_max_ph_c",
"rms_voltage_max",
"rms_voltage_max_ph_b",
"rms_voltage_max_ph_c",
"ac_frequency_max",
"power_factor_max",
"power_factor_max_ph_b",
"power_factor_max_ph_c",
"active_power_max",
"active_power_max_ph_b",
"active_power_max_ph_c",
# Smart Energy metering
"device_type",
"status",

View File

@ -1031,6 +1031,12 @@
}
},
"sensor": {
"active_power_ph_b": {
"name": "Power phase B"
},
"active_power_ph_c": {
"name": "Power phase C"
},
"analog_input": {
"name": "Analog input"
},
@ -1046,12 +1052,24 @@
"instantaneous_demand": {
"name": "Instantaneous demand"
},
"power_factor_ph_b": {
"name": "Power factor phase B"
},
"power_factor_ph_c": {
"name": "Power factor phase C"
},
"rms_current_ph_b": {
"name": "Current phase B"
},
"rms_current_ph_c": {
"name": "Current phase C"
},
"rms_voltage_ph_b": {
"name": "Voltage phase B"
},
"rms_voltage_ph_c": {
"name": "Voltage phase C"
},
"summation_delivered": {
"name": "Summation delivered"
},