From e0a0f868c05fd02cf21c802256c25a33ff8e89a0 Mon Sep 17 00:00:00 2001 From: Bacchus777 <32041087+Bacchus777@users.noreply.github.com> Date: Tue, 29 Oct 2024 22:07:07 +0300 Subject: [PATCH] fix: Improve `power_phase_b` and `power_phase_c` Home Assistant discovery (#24538) Added power_phase_b and power_phase_c --- lib/extension/homeassistant.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/extension/homeassistant.ts b/lib/extension/homeassistant.ts index 4dc46dbd3..d92fe6b23 100644 --- a/lib/extension/homeassistant.ts +++ b/lib/extension/homeassistant.ts @@ -253,6 +253,8 @@ const NUMERIC_DISCOVERY_LOOKUP: {[s: string]: KeyValue} = { people: {state_class: 'measurement', icon: 'mdi:account-multiple'}, position: {icon: 'mdi:valve', state_class: 'measurement'}, power: {device_class: 'power', entity_category: 'diagnostic', state_class: 'measurement'}, + power_phase_b: {device_class: 'power', entity_category: 'diagnostic', state_class: 'measurement'}, + power_phase_c: {device_class: 'power', entity_category: 'diagnostic', state_class: 'measurement'}, power_factor: {device_class: 'power_factor', enabled_by_default: false, entity_category: 'diagnostic', state_class: 'measurement'}, power_outage_count: {icon: 'mdi:counter', enabled_by_default: false}, precision: {entity_category: 'config', icon: 'mdi:decimal-comma-increase'},