diff --git a/homeassistant/components/vicare/sensor.py b/homeassistant/components/vicare/sensor.py index 01e03bab5be129..0d1c2812ba1d30 100644 --- a/homeassistant/components/vicare/sensor.py +++ b/homeassistant/components/vicare/sensor.py @@ -168,6 +168,16 @@ class ViCareSensorEntityDescription(SensorEntityDescription, ViCareRequiredKeysM device_class=SensorDeviceClass.TEMPERATURE, state_class=SensorStateClass.MEASUREMENT, ), + ViCareSensorEntityDescription( + key="primary_circuit_pump_rotation", + translation_key="primary_circuit_pump_rotation", + native_unit_of_measurement=PERCENTAGE, + value_getter=lambda api: api.getPrimaryCircuitPumpRotation(), + unit_getter=lambda api: api.getPrimaryCircuitPumpRotationUnit(), + state_class=SensorStateClass.MEASUREMENT, + entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, + ), ViCareSensorEntityDescription( key="secondary_circuit_supply_temperature", translation_key="secondary_circuit_supply_temperature", @@ -184,6 +194,36 @@ class ViCareSensorEntityDescription(SensorEntityDescription, ViCareRequiredKeysM device_class=SensorDeviceClass.TEMPERATURE, state_class=SensorStateClass.MEASUREMENT, ), + ViCareSensorEntityDescription( + key="hot_gas_temperature", + translation_key="hot_gas_temperature", + native_unit_of_measurement=UnitOfTemperature.CELSIUS, + value_getter=lambda api: api.getHotGasTemperature(), + device_class=SensorDeviceClass.TEMPERATURE, + state_class=SensorStateClass.MEASUREMENT, + entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, + ), + ViCareSensorEntityDescription( + key="liquid_gas_temperature", + translation_key="liquid_gas_temperature", + native_unit_of_measurement=UnitOfTemperature.CELSIUS, + value_getter=lambda api: api.getLiquidGasTemperature(), + device_class=SensorDeviceClass.TEMPERATURE, + state_class=SensorStateClass.MEASUREMENT, + entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, + ), + ViCareSensorEntityDescription( + key="suction_gas_temperature", + translation_key="suction_gas_temperature", + native_unit_of_measurement=UnitOfTemperature.CELSIUS, + value_getter=lambda api: api.getSuctionGasTemperature(), + device_class=SensorDeviceClass.TEMPERATURE, + state_class=SensorStateClass.MEASUREMENT, + entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, + ), ViCareSensorEntityDescription( key="hotwater_out_temperature", translation_key="hotwater_out_temperature", @@ -971,6 +1011,28 @@ class ViCareSensorEntityDescription(SensorEntityDescription, ViCareRequiredKeysM value_getter=lambda api: api.getSupplyPressure(), unit_getter=lambda api: api.getSupplyPressureUnit(), ), + ViCareSensorEntityDescription( + key="hot_gas_pressure", + translation_key="hot_gas_pressure", + device_class=SensorDeviceClass.PRESSURE, + native_unit_of_measurement=UnitOfPressure.BAR, + state_class=SensorStateClass.MEASUREMENT, + entity_category=EntityCategory.DIAGNOSTIC, + value_getter=lambda api: api.getHotGasPressure(), + unit_getter=lambda api: api.getHotGasPressureUnit(), + entity_registry_enabled_default=False, + ), + ViCareSensorEntityDescription( + key="suction_gas_pressure", + translation_key="suction_gas_pressure", + device_class=SensorDeviceClass.PRESSURE, + native_unit_of_measurement=UnitOfPressure.BAR, + state_class=SensorStateClass.MEASUREMENT, + entity_category=EntityCategory.DIAGNOSTIC, + value_getter=lambda api: api.getSuctionGasPressure(), + unit_getter=lambda api: api.getSuctionGasPressureUnit(), + entity_registry_enabled_default=False, + ), ViCareSensorEntityDescription( key="heating_rod_starts", translation_key="heating_rod_starts", @@ -1007,6 +1069,35 @@ class ViCareSensorEntityDescription(SensorEntityDescription, ViCareRequiredKeysM entity_category=EntityCategory.DIAGNOSTIC, value_getter=lambda api: api.getSeasonalPerformanceFactorHeating(), ), + ViCareSensorEntityDescription( + key="cop_heating", + translation_key="cop_heating", + state_class=SensorStateClass.MEASUREMENT, + entity_category=EntityCategory.DIAGNOSTIC, + value_getter=lambda api: api.getCoefficientOfPerformanceHeating(), + ), + ViCareSensorEntityDescription( + key="cop_dhw", + translation_key="cop_dhw", + state_class=SensorStateClass.MEASUREMENT, + entity_category=EntityCategory.DIAGNOSTIC, + value_getter=lambda api: api.getCoefficientOfPerformanceDHW(), + ), + ViCareSensorEntityDescription( + key="cop_total", + translation_key="cop_total", + state_class=SensorStateClass.MEASUREMENT, + entity_category=EntityCategory.DIAGNOSTIC, + value_getter=lambda api: api.getCoefficientOfPerformanceTotal(), + ), + ViCareSensorEntityDescription( + key="cop_cooling", + translation_key="cop_cooling", + state_class=SensorStateClass.MEASUREMENT, + entity_category=EntityCategory.DIAGNOSTIC, + value_getter=lambda api: api.getCoefficientOfPerformanceCooling(), + entity_registry_enabled_default=False, + ), ViCareSensorEntityDescription( key="battery_level", native_unit_of_measurement=PERCENTAGE, @@ -1187,6 +1278,23 @@ class ViCareSensorEntityDescription(SensorEntityDescription, ViCareRequiredKeysM ) COMPRESSOR_SENSORS: tuple[ViCareSensorEntityDescription, ...] = ( + ViCareSensorEntityDescription( + key="compressor_power", + translation_key="compressor_power", + native_unit_of_measurement=UnitOfPower.KILO_WATT, + value_getter=lambda api: api.getPower(), + unit_getter=lambda api: api.getPowerUnit(), + device_class=SensorDeviceClass.POWER, + entity_category=EntityCategory.DIAGNOSTIC, + ), + ViCareSensorEntityDescription( + key="compressor_modulation", + translation_key="compressor_modulation", + native_unit_of_measurement=PERCENTAGE, + value_getter=lambda api: api.getModulation(), + unit_getter=lambda api: api.getModulationUnit(), + state_class=SensorStateClass.MEASUREMENT, + ), ViCareSensorEntityDescription( key="compressor_starts", translation_key="compressor_starts", diff --git a/homeassistant/components/vicare/strings.json b/homeassistant/components/vicare/strings.json index 6b313eb1872e9e..5f7ece385b41d6 100644 --- a/homeassistant/components/vicare/strings.json +++ b/homeassistant/components/vicare/strings.json @@ -221,6 +221,9 @@ "compressor_inlet_temperature": { "name": "Compressor inlet temperature" }, + "compressor_modulation": { + "name": "Compressor modulation" + }, "compressor_outlet_pressure": { "name": "Compressor outlet pressure" }, @@ -241,6 +244,9 @@ "ready": "[%key:common::state::idle%]" } }, + "compressor_power": { + "name": "Compressor power" + }, "compressor_starts": { "name": "Compressor starts" }, @@ -250,6 +256,18 @@ "condenser_subcooling_temperature": { "name": "Condenser subcooling temperature" }, + "cop_cooling": { + "name": "Coefficient of performance - cooling" + }, + "cop_dhw": { + "name": "Coefficient of performance - domestic hot water" + }, + "cop_heating": { + "name": "Coefficient of performance - heating" + }, + "cop_total": { + "name": "Coefficient of performance" + }, "dhw_storage_bottom_temperature": { "name": "DHW storage bottom temperature" }, @@ -396,6 +414,12 @@ "heating_rod_starts": { "name": "Heating rod starts" }, + "hot_gas_pressure": { + "name": "Hot gas pressure" + }, + "hot_gas_temperature": { + "name": "Hot gas temperature" + }, "hotwater_gas_consumption_heating_this_month": { "name": "DHW gas consumption this month" }, @@ -441,6 +465,9 @@ "inverter_temperature": { "name": "Inverter temperature" }, + "liquid_gas_temperature": { + "name": "Liquid gas temperature" + }, "outside_humidity": { "name": "Outside humidity" }, @@ -508,6 +535,9 @@ "power_production_today": { "name": "Energy production today" }, + "primary_circuit_pump_rotation": { + "name": "Primary circuit pump rotation" + }, "primary_circuit_return_temperature": { "name": "Primary circuit return temperature" }, @@ -547,6 +577,12 @@ "spf_total": { "name": "Seasonal performance factor" }, + "suction_gas_pressure": { + "name": "Suction gas pressure" + }, + "suction_gas_temperature": { + "name": "Suction gas temperature" + }, "supply_fan_hours": { "name": "Supply fan hours" }, diff --git a/tests/components/vicare/snapshots/test_sensor.ambr b/tests/components/vicare/snapshots/test_sensor.ambr index b45b371f8cef9f..998c4a3cfa2ca6 100644 --- a/tests/components/vicare/snapshots/test_sensor.ambr +++ b/tests/components/vicare/snapshots/test_sensor.ambr @@ -3682,6 +3682,214 @@ 'state': '41.2', }) # --- +# name: test_all_entities[sensor.model2_coefficient_of_performance-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.model2_coefficient_of_performance', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Coefficient of performance', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Coefficient of performance', + 'platform': 'vicare', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'cop_total', + 'unique_id': 'gateway2_################-cop_total', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[sensor.model2_coefficient_of_performance-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'model2 Coefficient of performance', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.model2_coefficient_of_performance', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '5.3', + }) +# --- +# name: test_all_entities[sensor.model2_coefficient_of_performance_cooling-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.model2_coefficient_of_performance_cooling', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Coefficient of performance - cooling', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Coefficient of performance - cooling', + 'platform': 'vicare', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'cop_cooling', + 'unique_id': 'gateway2_################-cop_cooling', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[sensor.model2_coefficient_of_performance_cooling-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'model2 Coefficient of performance - cooling', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.model2_coefficient_of_performance_cooling', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.0', + }) +# --- +# name: test_all_entities[sensor.model2_coefficient_of_performance_domestic_hot_water-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.model2_coefficient_of_performance_domestic_hot_water', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Coefficient of performance - domestic hot water', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Coefficient of performance - domestic hot water', + 'platform': 'vicare', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'cop_dhw', + 'unique_id': 'gateway2_################-cop_dhw', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[sensor.model2_coefficient_of_performance_domestic_hot_water-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'model2 Coefficient of performance - domestic hot water', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.model2_coefficient_of_performance_domestic_hot_water', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '4.8', + }) +# --- +# name: test_all_entities[sensor.model2_coefficient_of_performance_heating-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.model2_coefficient_of_performance_heating', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Coefficient of performance - heating', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Coefficient of performance - heating', + 'platform': 'vicare', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'cop_heating', + 'unique_id': 'gateway2_################-cop_heating', + 'unit_of_measurement': None, + }) +# --- +# name: test_all_entities[sensor.model2_coefficient_of_performance_heating-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'model2 Coefficient of performance - heating', + 'state_class': , + }), + 'context': , + 'entity_id': 'sensor.model2_coefficient_of_performance_heating', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '5.4', + }) +# --- # name: test_all_entities[sensor.model2_compressor_hours-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -4211,6 +4419,60 @@ 'state': 'off', }) # --- +# name: test_all_entities[sensor.model2_compressor_power-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.model2_compressor_power', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Compressor power', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Compressor power', + 'platform': 'vicare', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'compressor_power', + 'unique_id': 'gateway2_################-compressor_power-0', + 'unit_of_measurement': , + }) +# --- +# name: test_all_entities[sensor.model2_compressor_power-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'model2 Compressor power', + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.model2_compressor_power', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '8.0', + }) +# --- # name: test_all_entities[sensor.model2_compressor_starts-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -4653,6 +4915,177 @@ 'state': '0.0', }) # --- +# name: test_all_entities[sensor.model2_hot_gas_pressure-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.model2_hot_gas_pressure', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Hot gas pressure', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Hot gas pressure', + 'platform': 'vicare', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'hot_gas_pressure', + 'unique_id': 'gateway2_################-hot_gas_pressure', + 'unit_of_measurement': , + }) +# --- +# name: test_all_entities[sensor.model2_hot_gas_pressure-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'pressure', + 'friendly_name': 'model2 Hot gas pressure', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.model2_hot_gas_pressure', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '12.7', + }) +# --- +# name: test_all_entities[sensor.model2_hot_gas_temperature-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.model2_hot_gas_temperature', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Hot gas temperature', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Hot gas temperature', + 'platform': 'vicare', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'hot_gas_temperature', + 'unique_id': 'gateway2_################-hot_gas_temperature', + 'unit_of_measurement': , + }) +# --- +# name: test_all_entities[sensor.model2_hot_gas_temperature-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'model2 Hot gas temperature', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.model2_hot_gas_temperature', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '31.8', + }) +# --- +# name: test_all_entities[sensor.model2_liquid_gas_temperature-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.model2_liquid_gas_temperature', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Liquid gas temperature', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Liquid gas temperature', + 'platform': 'vicare', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'liquid_gas_temperature', + 'unique_id': 'gateway2_################-liquid_gas_temperature', + 'unit_of_measurement': , + }) +# --- +# name: test_all_entities[sensor.model2_liquid_gas_temperature-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'model2 Liquid gas temperature', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.model2_liquid_gas_temperature', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '18.2', + }) +# --- # name: test_all_entities[sensor.model2_outside_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -4710,6 +5143,59 @@ 'state': '6.1', }) # --- +# name: test_all_entities[sensor.model2_primary_circuit_pump_rotation-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.model2_primary_circuit_pump_rotation', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Primary circuit pump rotation', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Primary circuit pump rotation', + 'platform': 'vicare', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'primary_circuit_pump_rotation', + 'unique_id': 'gateway2_################-primary_circuit_pump_rotation', + 'unit_of_measurement': '%', + }) +# --- +# name: test_all_entities[sensor.model2_primary_circuit_pump_rotation-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'model2 Primary circuit pump rotation', + 'state_class': , + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'sensor.model2_primary_circuit_pump_rotation', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.0', + }) +# --- # name: test_all_entities[sensor.model2_primary_circuit_return_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -4938,6 +5424,120 @@ 'state': '35.2', }) # --- +# name: test_all_entities[sensor.model2_suction_gas_pressure-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.model2_suction_gas_pressure', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Suction gas pressure', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Suction gas pressure', + 'platform': 'vicare', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'suction_gas_pressure', + 'unique_id': 'gateway2_################-suction_gas_pressure', + 'unit_of_measurement': , + }) +# --- +# name: test_all_entities[sensor.model2_suction_gas_pressure-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'pressure', + 'friendly_name': 'model2 Suction gas pressure', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.model2_suction_gas_pressure', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '12.9', + }) +# --- +# name: test_all_entities[sensor.model2_suction_gas_temperature-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.model2_suction_gas_temperature', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Suction gas temperature', + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Suction gas temperature', + 'platform': 'vicare', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'suction_gas_temperature', + 'unique_id': 'gateway2_################-suction_gas_temperature', + 'unit_of_measurement': , + }) +# --- +# name: test_all_entities[sensor.model2_suction_gas_temperature-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'model2 Suction gas temperature', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.model2_suction_gas_temperature', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '23.3', + }) +# --- # name: test_all_entities[sensor.model2_supply_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({