From ed4c49cb21f3df2d007e97f2152ec0a199732b23 Mon Sep 17 00:00:00 2001 From: abmantis Date: Tue, 10 Dec 2024 19:02:18 +0000 Subject: [PATCH] Add strings and state attrs for ZHA 3 Phase current --- homeassistant/components/zha/sensor.py | 2 ++ homeassistant/components/zha/strings.json | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/homeassistant/components/zha/sensor.py b/homeassistant/components/zha/sensor.py index dde000b24b5..670d6af3c52 100644 --- a/homeassistant/components/zha/sensor.py +++ b/homeassistant/components/zha/sensor.py @@ -43,6 +43,8 @@ _EXTRA_STATE_ATTRIBUTES: set[str] = { "measurement_type", "apparent_power_max", "rms_current_max", + "rms_current_max_ph_b", + "rms_current_max_ph_c", "rms_voltage_max", "ac_frequency_max", "power_factor_max", diff --git a/homeassistant/components/zha/strings.json b/homeassistant/components/zha/strings.json index 4706e204872..6f9fc4024e4 100644 --- a/homeassistant/components/zha/strings.json +++ b/homeassistant/components/zha/strings.json @@ -944,6 +944,12 @@ "instantaneous_demand": { "name": "Instantaneous demand" }, + "rms_current_ph_b": { + "name": "Current Phase B" + }, + "rms_current_ph_c": { + "name": "Current Phase C" + }, "summation_delivered": { "name": "Summation delivered" },