Add TLX daily power meter. for Growatt (#55445)

pull/55502/head
JasperPlant 2021-08-31 11:55:23 +02:00 committed by GitHub
parent 1849eae0ff
commit afc0a1f376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -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",