From afc0a1f3769ccd84998ef8a8f26c668eef0a1fb3 Mon Sep 17 00:00:00 2001 From: JasperPlant <78851352+JasperPlant@users.noreply.github.com> Date: Tue, 31 Aug 2021 11:55:23 +0200 Subject: [PATCH] Add TLX daily power meter. for Growatt (#55445) --- .../components/growatt_server/sensor.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/homeassistant/components/growatt_server/sensor.py b/homeassistant/components/growatt_server/sensor.py index 03da4fe4b57..894d096fcd0 100644 --- a/homeassistant/components/growatt_server/sensor.py +++ b/homeassistant/components/growatt_server/sensor.py @@ -285,6 +285,15 @@ TLX_SENSOR_TYPES: tuple[GrowattSensorEntityDescription, ...] = ( state_class=STATE_CLASS_TOTAL_INCREASING, precision=1, ), + GrowattSensorEntityDescription( + key="tlx_energy_today_input_1", + name="Energy Today Input 1", + api_key="epv1Today", + native_unit_of_measurement=ENERGY_KILO_WATT_HOUR, + device_class=DEVICE_CLASS_ENERGY, + state_class=STATE_CLASS_TOTAL_INCREASING, + precision=1, + ), GrowattSensorEntityDescription( key="tlx_voltage_input_1", name="Input 1 voltage", @@ -318,6 +327,15 @@ TLX_SENSOR_TYPES: tuple[GrowattSensorEntityDescription, ...] = ( state_class=STATE_CLASS_TOTAL_INCREASING, precision=1, ), + GrowattSensorEntityDescription( + key="tlx_energy_today_input_2", + name="Energy Today Input 2", + api_key="epv2Today", + native_unit_of_measurement=ENERGY_KILO_WATT_HOUR, + device_class=DEVICE_CLASS_ENERGY, + state_class=STATE_CLASS_TOTAL_INCREASING, + precision=1, + ), GrowattSensorEntityDescription( key="tlx_voltage_input_2", name="Input 2 voltage",