Use entity translations placeholders in HomeWizard (#108741)
* Adopt Entity placeholders * Undo some snapshot changes
This commit is contained in:
parent
6e59568ba3
commit
1fa7ceede3
3 changed files with 111 additions and 136 deletions
|
@ -117,7 +117,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="total_power_import_t1_kwh",
|
||||
translation_key="total_energy_import_t1_kwh",
|
||||
translation_key="total_energy_import_tariff_kwh",
|
||||
translation_placeholders={"tariff": "1"},
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
|
@ -130,7 +131,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="total_power_import_t2_kwh",
|
||||
translation_key="total_energy_import_t2_kwh",
|
||||
translation_key="total_energy_import_tariff_kwh",
|
||||
translation_placeholders={"tariff": "2"},
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
|
@ -139,7 +141,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="total_power_import_t3_kwh",
|
||||
translation_key="total_energy_import_t3_kwh",
|
||||
translation_key="total_energy_import_tariff_kwh",
|
||||
translation_placeholders={"tariff": "3"},
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
|
@ -148,7 +151,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="total_power_import_t4_kwh",
|
||||
translation_key="total_energy_import_t4_kwh",
|
||||
translation_key="total_energy_import_tariff_kwh",
|
||||
translation_placeholders={"tariff": "4"},
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
|
@ -167,7 +171,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="total_power_export_t1_kwh",
|
||||
translation_key="total_energy_export_t1_kwh",
|
||||
translation_key="total_energy_export_tariff_kwh",
|
||||
translation_placeholders={"tariff": "1"},
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
|
@ -181,7 +186,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="total_power_export_t2_kwh",
|
||||
translation_key="total_energy_export_t2_kwh",
|
||||
translation_key="total_energy_export_tariff_kwh",
|
||||
translation_placeholders={"tariff": "2"},
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
|
@ -191,7 +197,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="total_power_export_t3_kwh",
|
||||
translation_key="total_energy_export_t3_kwh",
|
||||
translation_key="total_energy_export_tariff_kwh",
|
||||
translation_placeholders={"tariff": "3"},
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
|
@ -201,7 +208,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="total_power_export_t4_kwh",
|
||||
translation_key="total_energy_export_t4_kwh",
|
||||
translation_key="total_energy_export_tariff_kwh",
|
||||
translation_placeholders={"tariff": "4"},
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
|
@ -221,7 +229,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="active_power_l1_w",
|
||||
translation_key="active_power_l1_w",
|
||||
translation_key="active_power_phase_w",
|
||||
translation_placeholders={"phase": "1"},
|
||||
native_unit_of_measurement=UnitOfPower.WATT,
|
||||
device_class=SensorDeviceClass.POWER,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
|
@ -231,7 +240,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="active_power_l2_w",
|
||||
translation_key="active_power_l2_w",
|
||||
translation_key="active_power_phase_w",
|
||||
translation_placeholders={"phase": "2"},
|
||||
native_unit_of_measurement=UnitOfPower.WATT,
|
||||
device_class=SensorDeviceClass.POWER,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
|
@ -241,7 +251,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="active_power_l3_w",
|
||||
translation_key="active_power_l3_w",
|
||||
translation_key="active_power_phase_w",
|
||||
translation_placeholders={"phase": "3"},
|
||||
native_unit_of_measurement=UnitOfPower.WATT,
|
||||
device_class=SensorDeviceClass.POWER,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
|
@ -251,7 +262,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="active_voltage_l1_v",
|
||||
translation_key="active_voltage_l1_v",
|
||||
translation_key="active_voltage_phase_v",
|
||||
translation_placeholders={"phase": "1"},
|
||||
native_unit_of_measurement=UnitOfElectricPotential.VOLT,
|
||||
device_class=SensorDeviceClass.VOLTAGE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
|
@ -261,7 +273,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="active_voltage_l2_v",
|
||||
translation_key="active_voltage_l2_v",
|
||||
translation_key="active_voltage_phase_v",
|
||||
translation_placeholders={"phase": "2"},
|
||||
native_unit_of_measurement=UnitOfElectricPotential.VOLT,
|
||||
device_class=SensorDeviceClass.VOLTAGE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
|
@ -271,7 +284,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="active_voltage_l3_v",
|
||||
translation_key="active_voltage_l3_v",
|
||||
translation_key="active_voltage_phase_v",
|
||||
translation_placeholders={"phase": "3"},
|
||||
native_unit_of_measurement=UnitOfElectricPotential.VOLT,
|
||||
device_class=SensorDeviceClass.VOLTAGE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
|
@ -281,7 +295,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="active_current_l1_a",
|
||||
translation_key="active_current_l1_a",
|
||||
translation_key="active_current_phase_a",
|
||||
translation_placeholders={"phase": "1"},
|
||||
native_unit_of_measurement=UnitOfElectricCurrent.AMPERE,
|
||||
device_class=SensorDeviceClass.CURRENT,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
|
@ -291,7 +306,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="active_current_l2_a",
|
||||
translation_key="active_current_l2_a",
|
||||
translation_key="active_current_phase_a",
|
||||
translation_placeholders={"phase": "2"},
|
||||
native_unit_of_measurement=UnitOfElectricCurrent.AMPERE,
|
||||
device_class=SensorDeviceClass.CURRENT,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
|
@ -301,7 +317,8 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="active_current_l3_a",
|
||||
translation_key="active_current_l3_a",
|
||||
translation_key="active_current_phase_a",
|
||||
translation_placeholders={"phase": "3"},
|
||||
native_unit_of_measurement=UnitOfElectricCurrent.AMPERE,
|
||||
device_class=SensorDeviceClass.CURRENT,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
|
@ -321,42 +338,48 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
|
|||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="voltage_sag_l1_count",
|
||||
translation_key="voltage_sag_l1_count",
|
||||
translation_key="voltage_sag_phase_count",
|
||||
translation_placeholders={"phase": "1"},
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
has_fn=lambda data: data.voltage_sag_l1_count is not None,
|
||||
value_fn=lambda data: data.voltage_sag_l1_count,
|
||||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="voltage_sag_l2_count",
|
||||
translation_key="voltage_sag_l2_count",
|
||||
translation_key="voltage_sag_phase_count",
|
||||
translation_placeholders={"phase": "2"},
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
has_fn=lambda data: data.voltage_sag_l2_count is not None,
|
||||
value_fn=lambda data: data.voltage_sag_l2_count,
|
||||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="voltage_sag_l3_count",
|
||||
translation_key="voltage_sag_l3_count",
|
||||
translation_key="voltage_sag_phase_count",
|
||||
translation_placeholders={"phase": "3"},
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
has_fn=lambda data: data.voltage_sag_l3_count is not None,
|
||||
value_fn=lambda data: data.voltage_sag_l3_count,
|
||||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="voltage_swell_l1_count",
|
||||
translation_key="voltage_swell_l1_count",
|
||||
translation_key="voltage_swell_phase_count",
|
||||
translation_placeholders={"phase": "1"},
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
has_fn=lambda data: data.voltage_swell_l1_count is not None,
|
||||
value_fn=lambda data: data.voltage_swell_l1_count,
|
||||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="voltage_swell_l2_count",
|
||||
translation_key="voltage_swell_l2_count",
|
||||
translation_key="voltage_swell_phase_count",
|
||||
translation_placeholders={"phase": "2"},
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
has_fn=lambda data: data.voltage_swell_l2_count is not None,
|
||||
value_fn=lambda data: data.voltage_swell_l2_count,
|
||||
),
|
||||
HomeWizardSensorEntityDescription(
|
||||
key="voltage_swell_l3_count",
|
||||
translation_key="voltage_swell_l3_count",
|
||||
translation_key="voltage_swell_phase_count",
|
||||
translation_placeholders={"phase": "3"},
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
has_fn=lambda data: data.voltage_swell_l3_count is not None,
|
||||
value_fn=lambda data: data.voltage_swell_l3_count,
|
||||
|
|
|
@ -56,83 +56,35 @@
|
|||
"total_energy_import_kwh": {
|
||||
"name": "Total energy import"
|
||||
},
|
||||
"total_energy_import_t1_kwh": {
|
||||
"name": "Total energy import tariff 1"
|
||||
},
|
||||
"total_energy_import_t2_kwh": {
|
||||
"name": "Total energy import tariff 2"
|
||||
},
|
||||
"total_energy_import_t3_kwh": {
|
||||
"name": "Total energy import tariff 3"
|
||||
},
|
||||
"total_energy_import_t4_kwh": {
|
||||
"name": "Total energy import tariff 4"
|
||||
"total_energy_import_tariff_kwh": {
|
||||
"name": "Total energy import tariff {tariff}"
|
||||
},
|
||||
"total_energy_export_kwh": {
|
||||
"name": "Total energy export"
|
||||
},
|
||||
"total_energy_export_t1_kwh": {
|
||||
"name": "Total energy export tariff 1"
|
||||
},
|
||||
"total_energy_export_t2_kwh": {
|
||||
"name": "Total energy export tariff 2"
|
||||
},
|
||||
"total_energy_export_t3_kwh": {
|
||||
"name": "Total energy export tariff 3"
|
||||
},
|
||||
"total_energy_export_t4_kwh": {
|
||||
"name": "Total energy export tariff 4"
|
||||
"total_energy_export_tariff_kwh": {
|
||||
"name": "Total energy export tariff {tariff}"
|
||||
},
|
||||
"active_power_w": {
|
||||
"name": "Active power"
|
||||
},
|
||||
"active_power_l1_w": {
|
||||
"name": "Active power phase 1"
|
||||
"active_power_phase_w": {
|
||||
"name": "Active power phase {phase}"
|
||||
},
|
||||
"active_power_l2_w": {
|
||||
"name": "Active power phase 2"
|
||||
"active_voltage_phase_v": {
|
||||
"name": "Active voltage phase {phase}"
|
||||
},
|
||||
"active_power_l3_w": {
|
||||
"name": "Active power phase 3"
|
||||
},
|
||||
"active_voltage_l1_v": {
|
||||
"name": "Active voltage phase 1"
|
||||
},
|
||||
"active_voltage_l2_v": {
|
||||
"name": "Active voltage phase 2"
|
||||
},
|
||||
"active_voltage_l3_v": {
|
||||
"name": "Active voltage phase 3"
|
||||
},
|
||||
"active_current_l1_a": {
|
||||
"name": "Active current phase 1"
|
||||
},
|
||||
"active_current_l2_a": {
|
||||
"name": "Active current phase 2"
|
||||
},
|
||||
"active_current_l3_a": {
|
||||
"name": "Active current phase 3"
|
||||
"active_current_phase_a": {
|
||||
"name": "Active current phase {phase}"
|
||||
},
|
||||
"active_frequency_hz": {
|
||||
"name": "Active frequency"
|
||||
},
|
||||
"voltage_sag_l1_count": {
|
||||
"name": "Voltage sags detected phase 1"
|
||||
"voltage_sag_phase_count": {
|
||||
"name": "Voltage sags detected phase {phase}"
|
||||
},
|
||||
"voltage_sag_l2_count": {
|
||||
"name": "Voltage sags detected phase 2"
|
||||
},
|
||||
"voltage_sag_l3_count": {
|
||||
"name": "Voltage sags detected phase 3"
|
||||
},
|
||||
"voltage_swell_l1_count": {
|
||||
"name": "Voltage swells detected phase 1"
|
||||
},
|
||||
"voltage_swell_l2_count": {
|
||||
"name": "Voltage swells detected phase 2"
|
||||
},
|
||||
"voltage_swell_l3_count": {
|
||||
"name": "Voltage swells detected phase 3"
|
||||
"voltage_swell_phase_count": {
|
||||
"name": "Voltage swells detected phase {phase}"
|
||||
},
|
||||
"any_power_fail_count": {
|
||||
"name": "Power failures detected"
|
||||
|
|
|
@ -353,7 +353,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_current_l1_a',
|
||||
'translation_key': 'active_current_phase_a',
|
||||
'unique_id': 'aabbccddeeff_active_current_l1_a',
|
||||
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
||||
})
|
||||
|
@ -433,7 +433,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_current_l2_a',
|
||||
'translation_key': 'active_current_phase_a',
|
||||
'unique_id': 'aabbccddeeff_active_current_l2_a',
|
||||
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
||||
})
|
||||
|
@ -513,7 +513,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_current_l3_a',
|
||||
'translation_key': 'active_current_phase_a',
|
||||
'unique_id': 'aabbccddeeff_active_current_l3_a',
|
||||
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
||||
})
|
||||
|
@ -759,7 +759,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_power_l1_w',
|
||||
'translation_key': 'active_power_phase_w',
|
||||
'unique_id': 'aabbccddeeff_active_power_l1_w',
|
||||
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
||||
})
|
||||
|
@ -842,7 +842,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_power_l2_w',
|
||||
'translation_key': 'active_power_phase_w',
|
||||
'unique_id': 'aabbccddeeff_active_power_l2_w',
|
||||
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
||||
})
|
||||
|
@ -925,7 +925,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_power_l3_w',
|
||||
'translation_key': 'active_power_phase_w',
|
||||
'unique_id': 'aabbccddeeff_active_power_l3_w',
|
||||
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
||||
})
|
||||
|
@ -1094,7 +1094,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_voltage_l1_v',
|
||||
'translation_key': 'active_voltage_phase_v',
|
||||
'unique_id': 'aabbccddeeff_active_voltage_l1_v',
|
||||
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
||||
})
|
||||
|
@ -1174,7 +1174,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_voltage_l2_v',
|
||||
'translation_key': 'active_voltage_phase_v',
|
||||
'unique_id': 'aabbccddeeff_active_voltage_l2_v',
|
||||
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
||||
})
|
||||
|
@ -1254,7 +1254,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_voltage_l3_v',
|
||||
'translation_key': 'active_voltage_phase_v',
|
||||
'unique_id': 'aabbccddeeff_active_voltage_l3_v',
|
||||
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
||||
})
|
||||
|
@ -2020,7 +2020,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'total_energy_export_t1_kwh',
|
||||
'translation_key': 'total_energy_export_tariff_kwh',
|
||||
'unique_id': 'aabbccddeeff_total_power_export_t1_kwh',
|
||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
||||
})
|
||||
|
@ -2100,7 +2100,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'total_energy_export_t2_kwh',
|
||||
'translation_key': 'total_energy_export_tariff_kwh',
|
||||
'unique_id': 'aabbccddeeff_total_power_export_t2_kwh',
|
||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
||||
})
|
||||
|
@ -2180,7 +2180,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'total_energy_export_t3_kwh',
|
||||
'translation_key': 'total_energy_export_tariff_kwh',
|
||||
'unique_id': 'aabbccddeeff_total_power_export_t3_kwh',
|
||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
||||
})
|
||||
|
@ -2260,7 +2260,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'total_energy_export_t4_kwh',
|
||||
'translation_key': 'total_energy_export_tariff_kwh',
|
||||
'unique_id': 'aabbccddeeff_total_power_export_t4_kwh',
|
||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
||||
})
|
||||
|
@ -2420,7 +2420,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'total_energy_import_t1_kwh',
|
||||
'translation_key': 'total_energy_import_tariff_kwh',
|
||||
'unique_id': 'aabbccddeeff_total_power_import_t1_kwh',
|
||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
||||
})
|
||||
|
@ -2500,7 +2500,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'total_energy_import_t2_kwh',
|
||||
'translation_key': 'total_energy_import_tariff_kwh',
|
||||
'unique_id': 'aabbccddeeff_total_power_import_t2_kwh',
|
||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
||||
})
|
||||
|
@ -2580,7 +2580,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'total_energy_import_t3_kwh',
|
||||
'translation_key': 'total_energy_import_tariff_kwh',
|
||||
'unique_id': 'aabbccddeeff_total_power_import_t3_kwh',
|
||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
||||
})
|
||||
|
@ -2660,7 +2660,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'total_energy_import_t4_kwh',
|
||||
'translation_key': 'total_energy_import_tariff_kwh',
|
||||
'unique_id': 'aabbccddeeff_total_power_import_t4_kwh',
|
||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
||||
})
|
||||
|
@ -2898,7 +2898,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'voltage_sag_l1_count',
|
||||
'translation_key': 'voltage_sag_phase_count',
|
||||
'unique_id': 'aabbccddeeff_voltage_sag_l1_count',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
|
@ -2973,7 +2973,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'voltage_sag_l2_count',
|
||||
'translation_key': 'voltage_sag_phase_count',
|
||||
'unique_id': 'aabbccddeeff_voltage_sag_l2_count',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
|
@ -3048,7 +3048,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'voltage_sag_l3_count',
|
||||
'translation_key': 'voltage_sag_phase_count',
|
||||
'unique_id': 'aabbccddeeff_voltage_sag_l3_count',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
|
@ -3123,7 +3123,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'voltage_swell_l1_count',
|
||||
'translation_key': 'voltage_swell_phase_count',
|
||||
'unique_id': 'aabbccddeeff_voltage_swell_l1_count',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
|
@ -3198,7 +3198,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'voltage_swell_l2_count',
|
||||
'translation_key': 'voltage_swell_phase_count',
|
||||
'unique_id': 'aabbccddeeff_voltage_swell_l2_count',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
|
@ -3273,7 +3273,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'voltage_swell_l3_count',
|
||||
'translation_key': 'voltage_swell_phase_count',
|
||||
'unique_id': 'aabbccddeeff_voltage_swell_l3_count',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
|
@ -4320,7 +4320,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_current_l1_a',
|
||||
'translation_key': 'active_current_phase_a',
|
||||
'unique_id': 'aabbccddeeff_active_current_l1_a',
|
||||
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
||||
})
|
||||
|
@ -4400,7 +4400,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_current_l2_a',
|
||||
'translation_key': 'active_current_phase_a',
|
||||
'unique_id': 'aabbccddeeff_active_current_l2_a',
|
||||
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
||||
})
|
||||
|
@ -4480,7 +4480,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_current_l3_a',
|
||||
'translation_key': 'active_current_phase_a',
|
||||
'unique_id': 'aabbccddeeff_active_current_l3_a',
|
||||
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
||||
})
|
||||
|
@ -4726,7 +4726,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_power_l1_w',
|
||||
'translation_key': 'active_power_phase_w',
|
||||
'unique_id': 'aabbccddeeff_active_power_l1_w',
|
||||
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
||||
})
|
||||
|
@ -4809,7 +4809,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_power_l2_w',
|
||||
'translation_key': 'active_power_phase_w',
|
||||
'unique_id': 'aabbccddeeff_active_power_l2_w',
|
||||
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
||||
})
|
||||
|
@ -4892,7 +4892,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_power_l3_w',
|
||||
'translation_key': 'active_power_phase_w',
|
||||
'unique_id': 'aabbccddeeff_active_power_l3_w',
|
||||
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
||||
})
|
||||
|
@ -4972,7 +4972,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_voltage_l1_v',
|
||||
'translation_key': 'active_voltage_phase_v',
|
||||
'unique_id': 'aabbccddeeff_active_voltage_l1_v',
|
||||
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
||||
})
|
||||
|
@ -5052,7 +5052,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_voltage_l2_v',
|
||||
'translation_key': 'active_voltage_phase_v',
|
||||
'unique_id': 'aabbccddeeff_active_voltage_l2_v',
|
||||
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
||||
})
|
||||
|
@ -5132,7 +5132,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_voltage_l3_v',
|
||||
'translation_key': 'active_voltage_phase_v',
|
||||
'unique_id': 'aabbccddeeff_active_voltage_l3_v',
|
||||
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
||||
})
|
||||
|
@ -5598,7 +5598,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'total_energy_export_t1_kwh',
|
||||
'translation_key': 'total_energy_export_tariff_kwh',
|
||||
'unique_id': 'aabbccddeeff_total_power_export_t1_kwh',
|
||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
||||
})
|
||||
|
@ -5678,7 +5678,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'total_energy_export_t2_kwh',
|
||||
'translation_key': 'total_energy_export_tariff_kwh',
|
||||
'unique_id': 'aabbccddeeff_total_power_export_t2_kwh',
|
||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
||||
})
|
||||
|
@ -5758,7 +5758,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'total_energy_export_t3_kwh',
|
||||
'translation_key': 'total_energy_export_tariff_kwh',
|
||||
'unique_id': 'aabbccddeeff_total_power_export_t3_kwh',
|
||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
||||
})
|
||||
|
@ -5838,7 +5838,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'total_energy_export_t4_kwh',
|
||||
'translation_key': 'total_energy_export_tariff_kwh',
|
||||
'unique_id': 'aabbccddeeff_total_power_export_t4_kwh',
|
||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
||||
})
|
||||
|
@ -5998,7 +5998,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'total_energy_import_t1_kwh',
|
||||
'translation_key': 'total_energy_import_tariff_kwh',
|
||||
'unique_id': 'aabbccddeeff_total_power_import_t1_kwh',
|
||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
||||
})
|
||||
|
@ -6078,7 +6078,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'total_energy_import_t2_kwh',
|
||||
'translation_key': 'total_energy_import_tariff_kwh',
|
||||
'unique_id': 'aabbccddeeff_total_power_import_t2_kwh',
|
||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
||||
})
|
||||
|
@ -6158,7 +6158,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'total_energy_import_t3_kwh',
|
||||
'translation_key': 'total_energy_import_tariff_kwh',
|
||||
'unique_id': 'aabbccddeeff_total_power_import_t3_kwh',
|
||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
||||
})
|
||||
|
@ -6238,7 +6238,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'total_energy_import_t4_kwh',
|
||||
'translation_key': 'total_energy_import_tariff_kwh',
|
||||
'unique_id': 'aabbccddeeff_total_power_import_t4_kwh',
|
||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
||||
})
|
||||
|
@ -6476,7 +6476,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'voltage_sag_l1_count',
|
||||
'translation_key': 'voltage_sag_phase_count',
|
||||
'unique_id': 'aabbccddeeff_voltage_sag_l1_count',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
|
@ -6551,7 +6551,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'voltage_sag_l2_count',
|
||||
'translation_key': 'voltage_sag_phase_count',
|
||||
'unique_id': 'aabbccddeeff_voltage_sag_l2_count',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
|
@ -6626,7 +6626,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'voltage_sag_l3_count',
|
||||
'translation_key': 'voltage_sag_phase_count',
|
||||
'unique_id': 'aabbccddeeff_voltage_sag_l3_count',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
|
@ -6701,7 +6701,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'voltage_swell_l1_count',
|
||||
'translation_key': 'voltage_swell_phase_count',
|
||||
'unique_id': 'aabbccddeeff_voltage_swell_l1_count',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
|
@ -6776,7 +6776,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'voltage_swell_l2_count',
|
||||
'translation_key': 'voltage_swell_phase_count',
|
||||
'unique_id': 'aabbccddeeff_voltage_swell_l2_count',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
|
@ -6851,7 +6851,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'voltage_swell_l3_count',
|
||||
'translation_key': 'voltage_swell_phase_count',
|
||||
'unique_id': 'aabbccddeeff_voltage_swell_l3_count',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
|
@ -7014,7 +7014,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_power_l1_w',
|
||||
'translation_key': 'active_power_phase_w',
|
||||
'unique_id': 'aabbccddeeff_active_power_l1_w',
|
||||
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
||||
})
|
||||
|
@ -7807,7 +7807,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_power_l1_w',
|
||||
'translation_key': 'active_power_phase_w',
|
||||
'unique_id': 'aabbccddeeff_active_power_l1_w',
|
||||
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
||||
})
|
||||
|
@ -8287,7 +8287,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_power_l1_w',
|
||||
'translation_key': 'active_power_phase_w',
|
||||
'unique_id': 'aabbccddeeff_active_power_l1_w',
|
||||
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
||||
})
|
||||
|
@ -8370,7 +8370,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_power_l2_w',
|
||||
'translation_key': 'active_power_phase_w',
|
||||
'unique_id': 'aabbccddeeff_active_power_l2_w',
|
||||
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
||||
})
|
||||
|
@ -8453,7 +8453,7 @@
|
|||
'platform': 'homewizard',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'active_power_l3_w',
|
||||
'translation_key': 'active_power_phase_w',
|
||||
'unique_id': 'aabbccddeeff_active_power_l3_w',
|
||||
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue