mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Remove sensors from Imeon Inverter (#148542)
Co-authored-by: TheBushBoy <theodavid@icloud.com> Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
parent
1c8ae8a21b
commit
d9b25770ad
@ -88,9 +88,6 @@ class InverterCoordinator(DataUpdateCoordinator[dict[str, str | float | int]]):
|
|||||||
|
|
||||||
# Store data
|
# Store data
|
||||||
for key, val in self._api.storage.items():
|
for key, val in self._api.storage.items():
|
||||||
if key == "timeline":
|
|
||||||
data[key] = val
|
|
||||||
else:
|
|
||||||
for sub_key, sub_val in val.items():
|
for sub_key, sub_val in val.items():
|
||||||
data[f"{key}_{sub_key}"] = sub_val
|
data[f"{key}_{sub_key}"] = sub_val
|
||||||
|
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
{
|
{
|
||||||
"entity": {
|
"entity": {
|
||||||
"sensor": {
|
"sensor": {
|
||||||
"battery_autonomy": {
|
|
||||||
"default": "mdi:battery-clock"
|
|
||||||
},
|
|
||||||
"battery_charge_time": {
|
|
||||||
"default": "mdi:battery-charging"
|
|
||||||
},
|
|
||||||
"battery_power": {
|
"battery_power": {
|
||||||
"default": "mdi:battery"
|
"default": "mdi:battery"
|
||||||
},
|
},
|
||||||
@ -58,9 +52,6 @@
|
|||||||
"meter_power": {
|
"meter_power": {
|
||||||
"default": "mdi:power-plug"
|
"default": "mdi:power-plug"
|
||||||
},
|
},
|
||||||
"meter_power_protocol": {
|
|
||||||
"default": "mdi:protocol"
|
|
||||||
},
|
|
||||||
"output_current_l1": {
|
"output_current_l1": {
|
||||||
"default": "mdi:current-ac"
|
"default": "mdi:current-ac"
|
||||||
},
|
},
|
||||||
@ -115,30 +106,12 @@
|
|||||||
"temp_component_temperature": {
|
"temp_component_temperature": {
|
||||||
"default": "mdi:thermometer"
|
"default": "mdi:thermometer"
|
||||||
},
|
},
|
||||||
"monitoring_building_consumption": {
|
|
||||||
"default": "mdi:home-lightning-bolt"
|
|
||||||
},
|
|
||||||
"monitoring_economy_factor": {
|
|
||||||
"default": "mdi:chart-bar"
|
|
||||||
},
|
|
||||||
"monitoring_grid_consumption": {
|
|
||||||
"default": "mdi:transmission-tower"
|
|
||||||
},
|
|
||||||
"monitoring_grid_injection": {
|
|
||||||
"default": "mdi:transmission-tower-export"
|
|
||||||
},
|
|
||||||
"monitoring_grid_power_flow": {
|
|
||||||
"default": "mdi:power-plug"
|
|
||||||
},
|
|
||||||
"monitoring_self_consumption": {
|
"monitoring_self_consumption": {
|
||||||
"default": "mdi:percent"
|
"default": "mdi:percent"
|
||||||
},
|
},
|
||||||
"monitoring_self_sufficiency": {
|
"monitoring_self_sufficiency": {
|
||||||
"default": "mdi:percent"
|
"default": "mdi:percent"
|
||||||
},
|
},
|
||||||
"monitoring_solar_production": {
|
|
||||||
"default": "mdi:solar-power"
|
|
||||||
},
|
|
||||||
"monitoring_minute_building_consumption": {
|
"monitoring_minute_building_consumption": {
|
||||||
"default": "mdi:home-lightning-bolt"
|
"default": "mdi:home-lightning-bolt"
|
||||||
},
|
},
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"integration_type": "device",
|
"integration_type": "device",
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"quality_scale": "bronze",
|
"quality_scale": "bronze",
|
||||||
"requirements": ["imeon_inverter_api==0.3.12"],
|
"requirements": ["imeon_inverter_api==0.3.14"],
|
||||||
"ssdp": [
|
"ssdp": [
|
||||||
{
|
{
|
||||||
"manufacturer": "IMEON",
|
"manufacturer": "IMEON",
|
||||||
|
@ -18,7 +18,6 @@ from homeassistant.const import (
|
|||||||
UnitOfFrequency,
|
UnitOfFrequency,
|
||||||
UnitOfPower,
|
UnitOfPower,
|
||||||
UnitOfTemperature,
|
UnitOfTemperature,
|
||||||
UnitOfTime,
|
|
||||||
)
|
)
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
|
||||||
@ -34,20 +33,6 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
|
|
||||||
SENSOR_DESCRIPTIONS = (
|
SENSOR_DESCRIPTIONS = (
|
||||||
# Battery
|
# Battery
|
||||||
SensorEntityDescription(
|
|
||||||
key="battery_autonomy",
|
|
||||||
translation_key="battery_autonomy",
|
|
||||||
native_unit_of_measurement=UnitOfTime.HOURS,
|
|
||||||
device_class=SensorDeviceClass.DURATION,
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
|
||||||
),
|
|
||||||
SensorEntityDescription(
|
|
||||||
key="battery_charge_time",
|
|
||||||
translation_key="battery_charge_time",
|
|
||||||
native_unit_of_measurement=UnitOfTime.HOURS,
|
|
||||||
device_class=SensorDeviceClass.DURATION,
|
|
||||||
state_class=SensorStateClass.TOTAL,
|
|
||||||
),
|
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="battery_power",
|
key="battery_power",
|
||||||
translation_key="battery_power",
|
translation_key="battery_power",
|
||||||
@ -171,13 +156,6 @@ SENSOR_DESCRIPTIONS = (
|
|||||||
device_class=SensorDeviceClass.POWER,
|
device_class=SensorDeviceClass.POWER,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
|
||||||
key="meter_power_protocol",
|
|
||||||
translation_key="meter_power_protocol",
|
|
||||||
native_unit_of_measurement=UnitOfPower.WATT,
|
|
||||||
device_class=SensorDeviceClass.POWER,
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
|
||||||
),
|
|
||||||
# AC Output
|
# AC Output
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="output_current_l1",
|
key="output_current_l1",
|
||||||
@ -308,45 +286,6 @@ SENSOR_DESCRIPTIONS = (
|
|||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
# Monitoring (data over the last 24 hours)
|
# Monitoring (data over the last 24 hours)
|
||||||
SensorEntityDescription(
|
|
||||||
key="monitoring_building_consumption",
|
|
||||||
translation_key="monitoring_building_consumption",
|
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
|
||||||
state_class=SensorStateClass.TOTAL,
|
|
||||||
suggested_display_precision=2,
|
|
||||||
),
|
|
||||||
SensorEntityDescription(
|
|
||||||
key="monitoring_economy_factor",
|
|
||||||
translation_key="monitoring_economy_factor",
|
|
||||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
|
||||||
state_class=SensorStateClass.TOTAL,
|
|
||||||
suggested_display_precision=2,
|
|
||||||
),
|
|
||||||
SensorEntityDescription(
|
|
||||||
key="monitoring_grid_consumption",
|
|
||||||
translation_key="monitoring_grid_consumption",
|
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
|
||||||
state_class=SensorStateClass.TOTAL,
|
|
||||||
suggested_display_precision=2,
|
|
||||||
),
|
|
||||||
SensorEntityDescription(
|
|
||||||
key="monitoring_grid_injection",
|
|
||||||
translation_key="monitoring_grid_injection",
|
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
|
||||||
state_class=SensorStateClass.TOTAL,
|
|
||||||
suggested_display_precision=2,
|
|
||||||
),
|
|
||||||
SensorEntityDescription(
|
|
||||||
key="monitoring_grid_power_flow",
|
|
||||||
translation_key="monitoring_grid_power_flow",
|
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
|
||||||
state_class=SensorStateClass.TOTAL,
|
|
||||||
suggested_display_precision=2,
|
|
||||||
),
|
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="monitoring_self_consumption",
|
key="monitoring_self_consumption",
|
||||||
translation_key="monitoring_self_consumption",
|
translation_key="monitoring_self_consumption",
|
||||||
@ -361,14 +300,6 @@ SENSOR_DESCRIPTIONS = (
|
|||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
suggested_display_precision=2,
|
suggested_display_precision=2,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
|
||||||
key="monitoring_solar_production",
|
|
||||||
translation_key="monitoring_solar_production",
|
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
|
||||||
state_class=SensorStateClass.TOTAL,
|
|
||||||
suggested_display_precision=2,
|
|
||||||
),
|
|
||||||
# Monitoring (instant minute data)
|
# Monitoring (instant minute data)
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="monitoring_minute_building_consumption",
|
key="monitoring_minute_building_consumption",
|
||||||
|
@ -29,12 +29,6 @@
|
|||||||
},
|
},
|
||||||
"entity": {
|
"entity": {
|
||||||
"sensor": {
|
"sensor": {
|
||||||
"battery_autonomy": {
|
|
||||||
"name": "Battery autonomy"
|
|
||||||
},
|
|
||||||
"battery_charge_time": {
|
|
||||||
"name": "Battery charge time"
|
|
||||||
},
|
|
||||||
"battery_power": {
|
"battery_power": {
|
||||||
"name": "Battery power"
|
"name": "Battery power"
|
||||||
},
|
},
|
||||||
@ -86,9 +80,6 @@
|
|||||||
"meter_power": {
|
"meter_power": {
|
||||||
"name": "Meter power"
|
"name": "Meter power"
|
||||||
},
|
},
|
||||||
"meter_power_protocol": {
|
|
||||||
"name": "Meter power protocol"
|
|
||||||
},
|
|
||||||
"output_current_l1": {
|
"output_current_l1": {
|
||||||
"name": "Output current L1"
|
"name": "Output current L1"
|
||||||
},
|
},
|
||||||
@ -143,30 +134,12 @@
|
|||||||
"temp_component_temperature": {
|
"temp_component_temperature": {
|
||||||
"name": "Component temperature"
|
"name": "Component temperature"
|
||||||
},
|
},
|
||||||
"monitoring_building_consumption": {
|
|
||||||
"name": "Monitoring building consumption"
|
|
||||||
},
|
|
||||||
"monitoring_economy_factor": {
|
|
||||||
"name": "Monitoring economy factor"
|
|
||||||
},
|
|
||||||
"monitoring_grid_consumption": {
|
|
||||||
"name": "Monitoring grid consumption"
|
|
||||||
},
|
|
||||||
"monitoring_grid_injection": {
|
|
||||||
"name": "Monitoring grid injection"
|
|
||||||
},
|
|
||||||
"monitoring_grid_power_flow": {
|
|
||||||
"name": "Monitoring grid power flow"
|
|
||||||
},
|
|
||||||
"monitoring_self_consumption": {
|
"monitoring_self_consumption": {
|
||||||
"name": "Monitoring self-consumption"
|
"name": "Monitoring self-consumption"
|
||||||
},
|
},
|
||||||
"monitoring_self_sufficiency": {
|
"monitoring_self_sufficiency": {
|
||||||
"name": "Monitoring self-sufficiency"
|
"name": "Monitoring self-sufficiency"
|
||||||
},
|
},
|
||||||
"monitoring_solar_production": {
|
|
||||||
"name": "Monitoring solar production"
|
|
||||||
},
|
|
||||||
"monitoring_minute_building_consumption": {
|
"monitoring_minute_building_consumption": {
|
||||||
"name": "Monitoring building consumption (minute)"
|
"name": "Monitoring building consumption (minute)"
|
||||||
},
|
},
|
||||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@ -1234,7 +1234,7 @@ igloohome-api==0.1.1
|
|||||||
ihcsdk==2.8.5
|
ihcsdk==2.8.5
|
||||||
|
|
||||||
# homeassistant.components.imeon_inverter
|
# homeassistant.components.imeon_inverter
|
||||||
imeon_inverter_api==0.3.12
|
imeon_inverter_api==0.3.14
|
||||||
|
|
||||||
# homeassistant.components.imgw_pib
|
# homeassistant.components.imgw_pib
|
||||||
imgw_pib==1.4.2
|
imgw_pib==1.4.2
|
||||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -1068,7 +1068,7 @@ ifaddr==0.2.0
|
|||||||
igloohome-api==0.1.1
|
igloohome-api==0.1.1
|
||||||
|
|
||||||
# homeassistant.components.imeon_inverter
|
# homeassistant.components.imeon_inverter
|
||||||
imeon_inverter_api==0.3.12
|
imeon_inverter_api==0.3.14
|
||||||
|
|
||||||
# homeassistant.components.imgw_pib
|
# homeassistant.components.imgw_pib
|
||||||
imgw_pib==1.4.2
|
imgw_pib==1.4.2
|
||||||
|
@ -55,118 +55,6 @@
|
|||||||
'state': '25.0',
|
'state': '25.0',
|
||||||
})
|
})
|
||||||
# ---
|
# ---
|
||||||
# name: test_sensors[sensor.imeon_inverter_battery_autonomy-entry]
|
|
||||||
EntityRegistryEntrySnapshot({
|
|
||||||
'aliases': set({
|
|
||||||
}),
|
|
||||||
'area_id': None,
|
|
||||||
'capabilities': dict({
|
|
||||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
||||||
}),
|
|
||||||
'config_entry_id': <ANY>,
|
|
||||||
'config_subentry_id': <ANY>,
|
|
||||||
'device_class': None,
|
|
||||||
'device_id': <ANY>,
|
|
||||||
'disabled_by': None,
|
|
||||||
'domain': 'sensor',
|
|
||||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_battery_autonomy',
|
|
||||||
'has_entity_name': True,
|
|
||||||
'hidden_by': None,
|
|
||||||
'icon': None,
|
|
||||||
'id': <ANY>,
|
|
||||||
'labels': set({
|
|
||||||
}),
|
|
||||||
'name': None,
|
|
||||||
'options': dict({
|
|
||||||
'sensor': dict({
|
|
||||||
'suggested_display_precision': 2,
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
'original_device_class': <SensorDeviceClass.DURATION: 'duration'>,
|
|
||||||
'original_icon': None,
|
|
||||||
'original_name': 'Battery autonomy',
|
|
||||||
'platform': 'imeon_inverter',
|
|
||||||
'previous_unique_id': None,
|
|
||||||
'suggested_object_id': None,
|
|
||||||
'supported_features': 0,
|
|
||||||
'translation_key': 'battery_autonomy',
|
|
||||||
'unique_id': '111111111111111_battery_autonomy',
|
|
||||||
'unit_of_measurement': <UnitOfTime.HOURS: 'h'>,
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_battery_autonomy-state]
|
|
||||||
StateSnapshot({
|
|
||||||
'attributes': ReadOnlyDict({
|
|
||||||
'device_class': 'duration',
|
|
||||||
'friendly_name': 'Imeon inverter Battery autonomy',
|
|
||||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
||||||
'unit_of_measurement': <UnitOfTime.HOURS: 'h'>,
|
|
||||||
}),
|
|
||||||
'context': <ANY>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_battery_autonomy',
|
|
||||||
'last_changed': <ANY>,
|
|
||||||
'last_reported': <ANY>,
|
|
||||||
'last_updated': <ANY>,
|
|
||||||
'state': '4.5',
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_battery_charge_time-entry]
|
|
||||||
EntityRegistryEntrySnapshot({
|
|
||||||
'aliases': set({
|
|
||||||
}),
|
|
||||||
'area_id': None,
|
|
||||||
'capabilities': dict({
|
|
||||||
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
||||||
}),
|
|
||||||
'config_entry_id': <ANY>,
|
|
||||||
'config_subentry_id': <ANY>,
|
|
||||||
'device_class': None,
|
|
||||||
'device_id': <ANY>,
|
|
||||||
'disabled_by': None,
|
|
||||||
'domain': 'sensor',
|
|
||||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_battery_charge_time',
|
|
||||||
'has_entity_name': True,
|
|
||||||
'hidden_by': None,
|
|
||||||
'icon': None,
|
|
||||||
'id': <ANY>,
|
|
||||||
'labels': set({
|
|
||||||
}),
|
|
||||||
'name': None,
|
|
||||||
'options': dict({
|
|
||||||
'sensor': dict({
|
|
||||||
'suggested_display_precision': 2,
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
'original_device_class': <SensorDeviceClass.DURATION: 'duration'>,
|
|
||||||
'original_icon': None,
|
|
||||||
'original_name': 'Battery charge time',
|
|
||||||
'platform': 'imeon_inverter',
|
|
||||||
'previous_unique_id': None,
|
|
||||||
'suggested_object_id': None,
|
|
||||||
'supported_features': 0,
|
|
||||||
'translation_key': 'battery_charge_time',
|
|
||||||
'unique_id': '111111111111111_battery_charge_time',
|
|
||||||
'unit_of_measurement': <UnitOfTime.HOURS: 'h'>,
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_battery_charge_time-state]
|
|
||||||
StateSnapshot({
|
|
||||||
'attributes': ReadOnlyDict({
|
|
||||||
'device_class': 'duration',
|
|
||||||
'friendly_name': 'Imeon inverter Battery charge time',
|
|
||||||
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
||||||
'unit_of_measurement': <UnitOfTime.HOURS: 'h'>,
|
|
||||||
}),
|
|
||||||
'context': <ANY>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_battery_charge_time',
|
|
||||||
'last_changed': <ANY>,
|
|
||||||
'last_reported': <ANY>,
|
|
||||||
'last_updated': <ANY>,
|
|
||||||
'state': '120',
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_battery_power-entry]
|
# name: test_sensors[sensor.imeon_inverter_battery_power-entry]
|
||||||
EntityRegistryEntrySnapshot({
|
EntityRegistryEntrySnapshot({
|
||||||
'aliases': set({
|
'aliases': set({
|
||||||
@ -1172,118 +1060,6 @@
|
|||||||
'state': '2000.0',
|
'state': '2000.0',
|
||||||
})
|
})
|
||||||
# ---
|
# ---
|
||||||
# name: test_sensors[sensor.imeon_inverter_meter_power_protocol-entry]
|
|
||||||
EntityRegistryEntrySnapshot({
|
|
||||||
'aliases': set({
|
|
||||||
}),
|
|
||||||
'area_id': None,
|
|
||||||
'capabilities': dict({
|
|
||||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
||||||
}),
|
|
||||||
'config_entry_id': <ANY>,
|
|
||||||
'config_subentry_id': <ANY>,
|
|
||||||
'device_class': None,
|
|
||||||
'device_id': <ANY>,
|
|
||||||
'disabled_by': None,
|
|
||||||
'domain': 'sensor',
|
|
||||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_meter_power_protocol',
|
|
||||||
'has_entity_name': True,
|
|
||||||
'hidden_by': None,
|
|
||||||
'icon': None,
|
|
||||||
'id': <ANY>,
|
|
||||||
'labels': set({
|
|
||||||
}),
|
|
||||||
'name': None,
|
|
||||||
'options': dict({
|
|
||||||
'sensor': dict({
|
|
||||||
'suggested_display_precision': 0,
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
'original_device_class': <SensorDeviceClass.POWER: 'power'>,
|
|
||||||
'original_icon': None,
|
|
||||||
'original_name': 'Meter power protocol',
|
|
||||||
'platform': 'imeon_inverter',
|
|
||||||
'previous_unique_id': None,
|
|
||||||
'suggested_object_id': None,
|
|
||||||
'supported_features': 0,
|
|
||||||
'translation_key': 'meter_power_protocol',
|
|
||||||
'unique_id': '111111111111111_meter_power_protocol',
|
|
||||||
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_meter_power_protocol-state]
|
|
||||||
StateSnapshot({
|
|
||||||
'attributes': ReadOnlyDict({
|
|
||||||
'device_class': 'power',
|
|
||||||
'friendly_name': 'Imeon inverter Meter power protocol',
|
|
||||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
||||||
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
|
||||||
}),
|
|
||||||
'context': <ANY>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_meter_power_protocol',
|
|
||||||
'last_changed': <ANY>,
|
|
||||||
'last_reported': <ANY>,
|
|
||||||
'last_updated': <ANY>,
|
|
||||||
'state': '2018.0',
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_monitoring_building_consumption-entry]
|
|
||||||
EntityRegistryEntrySnapshot({
|
|
||||||
'aliases': set({
|
|
||||||
}),
|
|
||||||
'area_id': None,
|
|
||||||
'capabilities': dict({
|
|
||||||
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
||||||
}),
|
|
||||||
'config_entry_id': <ANY>,
|
|
||||||
'config_subentry_id': <ANY>,
|
|
||||||
'device_class': None,
|
|
||||||
'device_id': <ANY>,
|
|
||||||
'disabled_by': None,
|
|
||||||
'domain': 'sensor',
|
|
||||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_monitoring_building_consumption',
|
|
||||||
'has_entity_name': True,
|
|
||||||
'hidden_by': None,
|
|
||||||
'icon': None,
|
|
||||||
'id': <ANY>,
|
|
||||||
'labels': set({
|
|
||||||
}),
|
|
||||||
'name': None,
|
|
||||||
'options': dict({
|
|
||||||
'sensor': dict({
|
|
||||||
'suggested_display_precision': 2,
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
|
|
||||||
'original_icon': None,
|
|
||||||
'original_name': 'Monitoring building consumption',
|
|
||||||
'platform': 'imeon_inverter',
|
|
||||||
'previous_unique_id': None,
|
|
||||||
'suggested_object_id': None,
|
|
||||||
'supported_features': 0,
|
|
||||||
'translation_key': 'monitoring_building_consumption',
|
|
||||||
'unique_id': '111111111111111_monitoring_building_consumption',
|
|
||||||
'unit_of_measurement': <UnitOfEnergy.WATT_HOUR: 'Wh'>,
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_monitoring_building_consumption-state]
|
|
||||||
StateSnapshot({
|
|
||||||
'attributes': ReadOnlyDict({
|
|
||||||
'device_class': 'energy',
|
|
||||||
'friendly_name': 'Imeon inverter Monitoring building consumption',
|
|
||||||
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
||||||
'unit_of_measurement': <UnitOfEnergy.WATT_HOUR: 'Wh'>,
|
|
||||||
}),
|
|
||||||
'context': <ANY>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_monitoring_building_consumption',
|
|
||||||
'last_changed': <ANY>,
|
|
||||||
'last_reported': <ANY>,
|
|
||||||
'last_updated': <ANY>,
|
|
||||||
'state': '3000.0',
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_monitoring_building_consumption_minute-entry]
|
# name: test_sensors[sensor.imeon_inverter_monitoring_building_consumption_minute-entry]
|
||||||
EntityRegistryEntrySnapshot({
|
EntityRegistryEntrySnapshot({
|
||||||
'aliases': set({
|
'aliases': set({
|
||||||
@ -1340,117 +1116,6 @@
|
|||||||
'state': '50.0',
|
'state': '50.0',
|
||||||
})
|
})
|
||||||
# ---
|
# ---
|
||||||
# name: test_sensors[sensor.imeon_inverter_monitoring_economy_factor-entry]
|
|
||||||
EntityRegistryEntrySnapshot({
|
|
||||||
'aliases': set({
|
|
||||||
}),
|
|
||||||
'area_id': None,
|
|
||||||
'capabilities': dict({
|
|
||||||
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
||||||
}),
|
|
||||||
'config_entry_id': <ANY>,
|
|
||||||
'config_subentry_id': <ANY>,
|
|
||||||
'device_class': None,
|
|
||||||
'device_id': <ANY>,
|
|
||||||
'disabled_by': None,
|
|
||||||
'domain': 'sensor',
|
|
||||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_monitoring_economy_factor',
|
|
||||||
'has_entity_name': True,
|
|
||||||
'hidden_by': None,
|
|
||||||
'icon': None,
|
|
||||||
'id': <ANY>,
|
|
||||||
'labels': set({
|
|
||||||
}),
|
|
||||||
'name': None,
|
|
||||||
'options': dict({
|
|
||||||
'sensor': dict({
|
|
||||||
'suggested_display_precision': 2,
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
'original_device_class': None,
|
|
||||||
'original_icon': None,
|
|
||||||
'original_name': 'Monitoring economy factor',
|
|
||||||
'platform': 'imeon_inverter',
|
|
||||||
'previous_unique_id': None,
|
|
||||||
'suggested_object_id': None,
|
|
||||||
'supported_features': 0,
|
|
||||||
'translation_key': 'monitoring_economy_factor',
|
|
||||||
'unique_id': '111111111111111_monitoring_economy_factor',
|
|
||||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_monitoring_economy_factor-state]
|
|
||||||
StateSnapshot({
|
|
||||||
'attributes': ReadOnlyDict({
|
|
||||||
'friendly_name': 'Imeon inverter Monitoring economy factor',
|
|
||||||
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
||||||
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
||||||
}),
|
|
||||||
'context': <ANY>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_monitoring_economy_factor',
|
|
||||||
'last_changed': <ANY>,
|
|
||||||
'last_reported': <ANY>,
|
|
||||||
'last_updated': <ANY>,
|
|
||||||
'state': '0.8',
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_monitoring_grid_consumption-entry]
|
|
||||||
EntityRegistryEntrySnapshot({
|
|
||||||
'aliases': set({
|
|
||||||
}),
|
|
||||||
'area_id': None,
|
|
||||||
'capabilities': dict({
|
|
||||||
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
||||||
}),
|
|
||||||
'config_entry_id': <ANY>,
|
|
||||||
'config_subentry_id': <ANY>,
|
|
||||||
'device_class': None,
|
|
||||||
'device_id': <ANY>,
|
|
||||||
'disabled_by': None,
|
|
||||||
'domain': 'sensor',
|
|
||||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_monitoring_grid_consumption',
|
|
||||||
'has_entity_name': True,
|
|
||||||
'hidden_by': None,
|
|
||||||
'icon': None,
|
|
||||||
'id': <ANY>,
|
|
||||||
'labels': set({
|
|
||||||
}),
|
|
||||||
'name': None,
|
|
||||||
'options': dict({
|
|
||||||
'sensor': dict({
|
|
||||||
'suggested_display_precision': 2,
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
|
|
||||||
'original_icon': None,
|
|
||||||
'original_name': 'Monitoring grid consumption',
|
|
||||||
'platform': 'imeon_inverter',
|
|
||||||
'previous_unique_id': None,
|
|
||||||
'suggested_object_id': None,
|
|
||||||
'supported_features': 0,
|
|
||||||
'translation_key': 'monitoring_grid_consumption',
|
|
||||||
'unique_id': '111111111111111_monitoring_grid_consumption',
|
|
||||||
'unit_of_measurement': <UnitOfEnergy.WATT_HOUR: 'Wh'>,
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_monitoring_grid_consumption-state]
|
|
||||||
StateSnapshot({
|
|
||||||
'attributes': ReadOnlyDict({
|
|
||||||
'device_class': 'energy',
|
|
||||||
'friendly_name': 'Imeon inverter Monitoring grid consumption',
|
|
||||||
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
||||||
'unit_of_measurement': <UnitOfEnergy.WATT_HOUR: 'Wh'>,
|
|
||||||
}),
|
|
||||||
'context': <ANY>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_monitoring_grid_consumption',
|
|
||||||
'last_changed': <ANY>,
|
|
||||||
'last_reported': <ANY>,
|
|
||||||
'last_updated': <ANY>,
|
|
||||||
'state': '500.0',
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_monitoring_grid_consumption_minute-entry]
|
# name: test_sensors[sensor.imeon_inverter_monitoring_grid_consumption_minute-entry]
|
||||||
EntityRegistryEntrySnapshot({
|
EntityRegistryEntrySnapshot({
|
||||||
'aliases': set({
|
'aliases': set({
|
||||||
@ -1507,62 +1172,6 @@
|
|||||||
'state': '8.3',
|
'state': '8.3',
|
||||||
})
|
})
|
||||||
# ---
|
# ---
|
||||||
# name: test_sensors[sensor.imeon_inverter_monitoring_grid_injection-entry]
|
|
||||||
EntityRegistryEntrySnapshot({
|
|
||||||
'aliases': set({
|
|
||||||
}),
|
|
||||||
'area_id': None,
|
|
||||||
'capabilities': dict({
|
|
||||||
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
||||||
}),
|
|
||||||
'config_entry_id': <ANY>,
|
|
||||||
'config_subentry_id': <ANY>,
|
|
||||||
'device_class': None,
|
|
||||||
'device_id': <ANY>,
|
|
||||||
'disabled_by': None,
|
|
||||||
'domain': 'sensor',
|
|
||||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_monitoring_grid_injection',
|
|
||||||
'has_entity_name': True,
|
|
||||||
'hidden_by': None,
|
|
||||||
'icon': None,
|
|
||||||
'id': <ANY>,
|
|
||||||
'labels': set({
|
|
||||||
}),
|
|
||||||
'name': None,
|
|
||||||
'options': dict({
|
|
||||||
'sensor': dict({
|
|
||||||
'suggested_display_precision': 2,
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
|
|
||||||
'original_icon': None,
|
|
||||||
'original_name': 'Monitoring grid injection',
|
|
||||||
'platform': 'imeon_inverter',
|
|
||||||
'previous_unique_id': None,
|
|
||||||
'suggested_object_id': None,
|
|
||||||
'supported_features': 0,
|
|
||||||
'translation_key': 'monitoring_grid_injection',
|
|
||||||
'unique_id': '111111111111111_monitoring_grid_injection',
|
|
||||||
'unit_of_measurement': <UnitOfEnergy.WATT_HOUR: 'Wh'>,
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_monitoring_grid_injection-state]
|
|
||||||
StateSnapshot({
|
|
||||||
'attributes': ReadOnlyDict({
|
|
||||||
'device_class': 'energy',
|
|
||||||
'friendly_name': 'Imeon inverter Monitoring grid injection',
|
|
||||||
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
||||||
'unit_of_measurement': <UnitOfEnergy.WATT_HOUR: 'Wh'>,
|
|
||||||
}),
|
|
||||||
'context': <ANY>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_monitoring_grid_injection',
|
|
||||||
'last_changed': <ANY>,
|
|
||||||
'last_reported': <ANY>,
|
|
||||||
'last_updated': <ANY>,
|
|
||||||
'state': '700.0',
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_monitoring_grid_injection_minute-entry]
|
# name: test_sensors[sensor.imeon_inverter_monitoring_grid_injection_minute-entry]
|
||||||
EntityRegistryEntrySnapshot({
|
EntityRegistryEntrySnapshot({
|
||||||
'aliases': set({
|
'aliases': set({
|
||||||
@ -1619,62 +1228,6 @@
|
|||||||
'state': '11.7',
|
'state': '11.7',
|
||||||
})
|
})
|
||||||
# ---
|
# ---
|
||||||
# name: test_sensors[sensor.imeon_inverter_monitoring_grid_power_flow-entry]
|
|
||||||
EntityRegistryEntrySnapshot({
|
|
||||||
'aliases': set({
|
|
||||||
}),
|
|
||||||
'area_id': None,
|
|
||||||
'capabilities': dict({
|
|
||||||
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
||||||
}),
|
|
||||||
'config_entry_id': <ANY>,
|
|
||||||
'config_subentry_id': <ANY>,
|
|
||||||
'device_class': None,
|
|
||||||
'device_id': <ANY>,
|
|
||||||
'disabled_by': None,
|
|
||||||
'domain': 'sensor',
|
|
||||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_monitoring_grid_power_flow',
|
|
||||||
'has_entity_name': True,
|
|
||||||
'hidden_by': None,
|
|
||||||
'icon': None,
|
|
||||||
'id': <ANY>,
|
|
||||||
'labels': set({
|
|
||||||
}),
|
|
||||||
'name': None,
|
|
||||||
'options': dict({
|
|
||||||
'sensor': dict({
|
|
||||||
'suggested_display_precision': 2,
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
|
|
||||||
'original_icon': None,
|
|
||||||
'original_name': 'Monitoring grid power flow',
|
|
||||||
'platform': 'imeon_inverter',
|
|
||||||
'previous_unique_id': None,
|
|
||||||
'suggested_object_id': None,
|
|
||||||
'supported_features': 0,
|
|
||||||
'translation_key': 'monitoring_grid_power_flow',
|
|
||||||
'unique_id': '111111111111111_monitoring_grid_power_flow',
|
|
||||||
'unit_of_measurement': <UnitOfEnergy.WATT_HOUR: 'Wh'>,
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_monitoring_grid_power_flow-state]
|
|
||||||
StateSnapshot({
|
|
||||||
'attributes': ReadOnlyDict({
|
|
||||||
'device_class': 'energy',
|
|
||||||
'friendly_name': 'Imeon inverter Monitoring grid power flow',
|
|
||||||
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
||||||
'unit_of_measurement': <UnitOfEnergy.WATT_HOUR: 'Wh'>,
|
|
||||||
}),
|
|
||||||
'context': <ANY>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_monitoring_grid_power_flow',
|
|
||||||
'last_changed': <ANY>,
|
|
||||||
'last_reported': <ANY>,
|
|
||||||
'last_updated': <ANY>,
|
|
||||||
'state': '-200.0',
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_monitoring_grid_power_flow_minute-entry]
|
# name: test_sensors[sensor.imeon_inverter_monitoring_grid_power_flow_minute-entry]
|
||||||
EntityRegistryEntrySnapshot({
|
EntityRegistryEntrySnapshot({
|
||||||
'aliases': set({
|
'aliases': set({
|
||||||
@ -1841,62 +1394,6 @@
|
|||||||
'state': '90.0',
|
'state': '90.0',
|
||||||
})
|
})
|
||||||
# ---
|
# ---
|
||||||
# name: test_sensors[sensor.imeon_inverter_monitoring_solar_production-entry]
|
|
||||||
EntityRegistryEntrySnapshot({
|
|
||||||
'aliases': set({
|
|
||||||
}),
|
|
||||||
'area_id': None,
|
|
||||||
'capabilities': dict({
|
|
||||||
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
||||||
}),
|
|
||||||
'config_entry_id': <ANY>,
|
|
||||||
'config_subentry_id': <ANY>,
|
|
||||||
'device_class': None,
|
|
||||||
'device_id': <ANY>,
|
|
||||||
'disabled_by': None,
|
|
||||||
'domain': 'sensor',
|
|
||||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_monitoring_solar_production',
|
|
||||||
'has_entity_name': True,
|
|
||||||
'hidden_by': None,
|
|
||||||
'icon': None,
|
|
||||||
'id': <ANY>,
|
|
||||||
'labels': set({
|
|
||||||
}),
|
|
||||||
'name': None,
|
|
||||||
'options': dict({
|
|
||||||
'sensor': dict({
|
|
||||||
'suggested_display_precision': 2,
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
|
|
||||||
'original_icon': None,
|
|
||||||
'original_name': 'Monitoring solar production',
|
|
||||||
'platform': 'imeon_inverter',
|
|
||||||
'previous_unique_id': None,
|
|
||||||
'suggested_object_id': None,
|
|
||||||
'supported_features': 0,
|
|
||||||
'translation_key': 'monitoring_solar_production',
|
|
||||||
'unique_id': '111111111111111_monitoring_solar_production',
|
|
||||||
'unit_of_measurement': <UnitOfEnergy.WATT_HOUR: 'Wh'>,
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_monitoring_solar_production-state]
|
|
||||||
StateSnapshot({
|
|
||||||
'attributes': ReadOnlyDict({
|
|
||||||
'device_class': 'energy',
|
|
||||||
'friendly_name': 'Imeon inverter Monitoring solar production',
|
|
||||||
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
|
||||||
'unit_of_measurement': <UnitOfEnergy.WATT_HOUR: 'Wh'>,
|
|
||||||
}),
|
|
||||||
'context': <ANY>,
|
|
||||||
'entity_id': 'sensor.imeon_inverter_monitoring_solar_production',
|
|
||||||
'last_changed': <ANY>,
|
|
||||||
'last_reported': <ANY>,
|
|
||||||
'last_updated': <ANY>,
|
|
||||||
'state': '2600.0',
|
|
||||||
})
|
|
||||||
# ---
|
|
||||||
# name: test_sensors[sensor.imeon_inverter_monitoring_solar_production_minute-entry]
|
# name: test_sensors[sensor.imeon_inverter_monitoring_solar_production_minute-entry]
|
||||||
EntityRegistryEntrySnapshot({
|
EntityRegistryEntrySnapshot({
|
||||||
'aliases': set({
|
'aliases': set({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user