|
|
|
@@ -1251,6 +1251,65 @@
|
|
|
|
|
'state': '189.0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[battery_storage][sensor.mock_battery_storage_active_current-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.mock_battery_storage_active_current',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'options': dict({
|
|
|
|
|
'sensor': dict({
|
|
|
|
|
'suggested_display_precision': 2,
|
|
|
|
|
}),
|
|
|
|
|
'sensor.private': dict({
|
|
|
|
|
'suggested_unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
}),
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.CURRENT: 'current'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Active current',
|
|
|
|
|
'platform': 'matter',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': 'active_current',
|
|
|
|
|
'unique_id': '00000000000004D2-0000000000000019-MatterNodeDevice-1-ElectricalPowerMeasurementActiveCurrent-144-5',
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[battery_storage][sensor.mock_battery_storage_active_current-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
'device_class': 'current',
|
|
|
|
|
'friendly_name': 'Mock Battery Storage Active current',
|
|
|
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.mock_battery_storage_active_current',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '0.0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[battery_storage][sensor.mock_battery_storage_appliance_energy_state-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': set({
|
|
|
|
@@ -1427,65 +1486,6 @@
|
|
|
|
|
'state': '48.0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[battery_storage][sensor.mock_battery_storage_current-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.mock_battery_storage_current',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'options': dict({
|
|
|
|
|
'sensor': dict({
|
|
|
|
|
'suggested_display_precision': 2,
|
|
|
|
|
}),
|
|
|
|
|
'sensor.private': dict({
|
|
|
|
|
'suggested_unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
}),
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.CURRENT: 'current'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Current',
|
|
|
|
|
'platform': 'matter',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': None,
|
|
|
|
|
'unique_id': '00000000000004D2-0000000000000019-MatterNodeDevice-1-ElectricalPowerMeasurementActiveCurrent-144-5',
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[battery_storage][sensor.mock_battery_storage_current-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
'device_class': 'current',
|
|
|
|
|
'friendly_name': 'Mock Battery Storage Current',
|
|
|
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.mock_battery_storage_current',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '0.0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[battery_storage][sensor.mock_battery_storage_energy_optimization_opt_out-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': set({
|
|
|
|
@@ -1763,7 +1763,7 @@
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': None,
|
|
|
|
|
'translation_key': 'voltage',
|
|
|
|
|
'unique_id': '00000000000004D2-0000000000000019-MatterNodeDevice-1-ElectricalPowerMeasurementVoltage-144-4',
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
|
|
|
|
})
|
|
|
|
@@ -2176,7 +2176,7 @@
|
|
|
|
|
'state': '238.800003051758',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[eve_energy_plug_patched][sensor.eve_energy_plug_patched_current-entry]
|
|
|
|
|
# name: test_sensors[eve_energy_plug_patched][sensor.eve_energy_plug_patched_active_current-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': set({
|
|
|
|
|
}),
|
|
|
|
@@ -2191,7 +2191,7 @@
|
|
|
|
|
'disabled_by': None,
|
|
|
|
|
'domain': 'sensor',
|
|
|
|
|
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
|
|
|
'entity_id': 'sensor.eve_energy_plug_patched_current',
|
|
|
|
|
'entity_id': 'sensor.eve_energy_plug_patched_active_current',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
@@ -2209,26 +2209,26 @@
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.CURRENT: 'current'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Current',
|
|
|
|
|
'original_name': 'Active current',
|
|
|
|
|
'platform': 'matter',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': None,
|
|
|
|
|
'translation_key': 'active_current',
|
|
|
|
|
'unique_id': '00000000000004D2-00000000000000B7-MatterNodeDevice-2-ElectricalPowerMeasurementActiveCurrent-144-5',
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[eve_energy_plug_patched][sensor.eve_energy_plug_patched_current-state]
|
|
|
|
|
# name: test_sensors[eve_energy_plug_patched][sensor.eve_energy_plug_patched_active_current-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
'device_class': 'current',
|
|
|
|
|
'friendly_name': 'Eve Energy Plug Patched Current',
|
|
|
|
|
'friendly_name': 'Eve Energy Plug Patched Active current',
|
|
|
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.eve_energy_plug_patched_current',
|
|
|
|
|
'entity_id': 'sensor.eve_energy_plug_patched_active_current',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
@@ -2391,7 +2391,7 @@
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': None,
|
|
|
|
|
'translation_key': 'voltage',
|
|
|
|
|
'unique_id': '00000000000004D2-00000000000000B7-MatterNodeDevice-2-ElectricalPowerMeasurementVoltage-144-4',
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
|
|
|
|
})
|
|
|
|
@@ -4333,7 +4333,7 @@
|
|
|
|
|
'state': '0.0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_dishwasher][sensor.dishwasher_current-entry]
|
|
|
|
|
# name: test_sensors[silabs_dishwasher][sensor.dishwasher_effective_current-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': set({
|
|
|
|
|
}),
|
|
|
|
@@ -4348,7 +4348,7 @@
|
|
|
|
|
'disabled_by': None,
|
|
|
|
|
'domain': 'sensor',
|
|
|
|
|
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
|
|
|
'entity_id': 'sensor.dishwasher_current',
|
|
|
|
|
'entity_id': 'sensor.dishwasher_effective_current',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
@@ -4366,32 +4366,91 @@
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.CURRENT: 'current'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Current',
|
|
|
|
|
'original_name': 'Effective current',
|
|
|
|
|
'platform': 'matter',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': None,
|
|
|
|
|
'unique_id': '00000000000004D2-0000000000000036-MatterNodeDevice-2-ElectricalPowerMeasurementActiveCurrent-144-5',
|
|
|
|
|
'translation_key': 'rms_current',
|
|
|
|
|
'unique_id': '00000000000004D2-0000000000000036-MatterNodeDevice-2-ElectricalPowerMeasurementRMSCurrent-144-12',
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_dishwasher][sensor.dishwasher_current-state]
|
|
|
|
|
# name: test_sensors[silabs_dishwasher][sensor.dishwasher_effective_current-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
'device_class': 'current',
|
|
|
|
|
'friendly_name': 'Dishwasher Current',
|
|
|
|
|
'friendly_name': 'Dishwasher Effective current',
|
|
|
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.dishwasher_current',
|
|
|
|
|
'entity_id': 'sensor.dishwasher_effective_current',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '0.0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_dishwasher][sensor.dishwasher_effective_voltage-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.dishwasher_effective_voltage',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'options': dict({
|
|
|
|
|
'sensor': dict({
|
|
|
|
|
'suggested_display_precision': 0,
|
|
|
|
|
}),
|
|
|
|
|
'sensor.private': dict({
|
|
|
|
|
'suggested_unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
|
|
|
|
}),
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.VOLTAGE: 'voltage'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Effective voltage',
|
|
|
|
|
'platform': 'matter',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': 'rms_voltage',
|
|
|
|
|
'unique_id': '00000000000004D2-0000000000000036-MatterNodeDevice-2-ElectricalPowerMeasurementRMSVoltage-144-11',
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_dishwasher][sensor.dishwasher_effective_voltage-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
'device_class': 'voltage',
|
|
|
|
|
'friendly_name': 'Dishwasher Effective voltage',
|
|
|
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.dishwasher_effective_voltage',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '120.0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_dishwasher][sensor.dishwasher_energy-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': set({
|
|
|
|
@@ -4574,65 +4633,6 @@
|
|
|
|
|
'state': '0.0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_dishwasher][sensor.dishwasher_voltage-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.dishwasher_voltage',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'options': dict({
|
|
|
|
|
'sensor': dict({
|
|
|
|
|
'suggested_display_precision': 0,
|
|
|
|
|
}),
|
|
|
|
|
'sensor.private': dict({
|
|
|
|
|
'suggested_unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
|
|
|
|
}),
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.VOLTAGE: 'voltage'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Voltage',
|
|
|
|
|
'platform': 'matter',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': None,
|
|
|
|
|
'unique_id': '00000000000004D2-0000000000000036-MatterNodeDevice-2-ElectricalPowerMeasurementVoltage-144-4',
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_dishwasher][sensor.dishwasher_voltage-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
'device_class': 'voltage',
|
|
|
|
|
'friendly_name': 'Dishwasher Voltage',
|
|
|
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.dishwasher_voltage',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '120.0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_evse_charging][sensor.evse_appliance_energy_state-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': set({
|
|
|
|
@@ -5134,65 +5134,6 @@
|
|
|
|
|
'state': '32.0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_laundrywasher][sensor.laundrywasher_current-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.laundrywasher_current',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'options': dict({
|
|
|
|
|
'sensor': dict({
|
|
|
|
|
'suggested_display_precision': 2,
|
|
|
|
|
}),
|
|
|
|
|
'sensor.private': dict({
|
|
|
|
|
'suggested_unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
}),
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.CURRENT: 'current'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Current',
|
|
|
|
|
'platform': 'matter',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': None,
|
|
|
|
|
'unique_id': '00000000000004D2-000000000000001D-MatterNodeDevice-2-ElectricalPowerMeasurementActiveCurrent-144-5',
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_laundrywasher][sensor.laundrywasher_current-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
'device_class': 'current',
|
|
|
|
|
'friendly_name': 'LaundryWasher Current',
|
|
|
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.laundrywasher_current',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '0.0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_laundrywasher][sensor.laundrywasher_current_phase-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': set({
|
|
|
|
@@ -5253,6 +5194,124 @@
|
|
|
|
|
'state': 'pre-soak',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_laundrywasher][sensor.laundrywasher_effective_current-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.laundrywasher_effective_current',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'options': dict({
|
|
|
|
|
'sensor': dict({
|
|
|
|
|
'suggested_display_precision': 2,
|
|
|
|
|
}),
|
|
|
|
|
'sensor.private': dict({
|
|
|
|
|
'suggested_unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
}),
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.CURRENT: 'current'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Effective current',
|
|
|
|
|
'platform': 'matter',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': 'rms_current',
|
|
|
|
|
'unique_id': '00000000000004D2-000000000000001D-MatterNodeDevice-2-ElectricalPowerMeasurementRMSCurrent-144-12',
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_laundrywasher][sensor.laundrywasher_effective_current-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
'device_class': 'current',
|
|
|
|
|
'friendly_name': 'LaundryWasher Effective current',
|
|
|
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.laundrywasher_effective_current',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '0.0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_laundrywasher][sensor.laundrywasher_effective_voltage-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.laundrywasher_effective_voltage',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'options': dict({
|
|
|
|
|
'sensor': dict({
|
|
|
|
|
'suggested_display_precision': 0,
|
|
|
|
|
}),
|
|
|
|
|
'sensor.private': dict({
|
|
|
|
|
'suggested_unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
|
|
|
|
}),
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.VOLTAGE: 'voltage'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Effective voltage',
|
|
|
|
|
'platform': 'matter',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': 'rms_voltage',
|
|
|
|
|
'unique_id': '00000000000004D2-000000000000001D-MatterNodeDevice-2-ElectricalPowerMeasurementRMSVoltage-144-11',
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_laundrywasher][sensor.laundrywasher_effective_voltage-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
'device_class': 'voltage',
|
|
|
|
|
'friendly_name': 'LaundryWasher Effective voltage',
|
|
|
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.laundrywasher_effective_voltage',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '120.0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_laundrywasher][sensor.laundrywasher_energy-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': set({
|
|
|
|
@@ -5433,7 +5492,7 @@
|
|
|
|
|
'state': '0.0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_laundrywasher][sensor.laundrywasher_voltage-entry]
|
|
|
|
|
# name: test_sensors[silabs_water_heater][sensor.water_heater_active_current-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': set({
|
|
|
|
|
}),
|
|
|
|
@@ -5448,7 +5507,7 @@
|
|
|
|
|
'disabled_by': None,
|
|
|
|
|
'domain': 'sensor',
|
|
|
|
|
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
|
|
|
'entity_id': 'sensor.laundrywasher_voltage',
|
|
|
|
|
'entity_id': 'sensor.water_heater_active_current',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
@@ -5458,38 +5517,38 @@
|
|
|
|
|
'name': None,
|
|
|
|
|
'options': dict({
|
|
|
|
|
'sensor': dict({
|
|
|
|
|
'suggested_display_precision': 0,
|
|
|
|
|
'suggested_display_precision': 2,
|
|
|
|
|
}),
|
|
|
|
|
'sensor.private': dict({
|
|
|
|
|
'suggested_unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
|
|
|
|
'suggested_unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
}),
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.VOLTAGE: 'voltage'>,
|
|
|
|
|
'original_device_class': <SensorDeviceClass.CURRENT: 'current'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Voltage',
|
|
|
|
|
'original_name': 'Active current',
|
|
|
|
|
'platform': 'matter',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': None,
|
|
|
|
|
'unique_id': '00000000000004D2-000000000000001D-MatterNodeDevice-2-ElectricalPowerMeasurementVoltage-144-4',
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
|
|
|
|
'translation_key': 'active_current',
|
|
|
|
|
'unique_id': '00000000000004D2-0000000000000019-MatterNodeDevice-2-ElectricalPowerMeasurementActiveCurrent-144-5',
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_laundrywasher][sensor.laundrywasher_voltage-state]
|
|
|
|
|
# name: test_sensors[silabs_water_heater][sensor.water_heater_active_current-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
'device_class': 'voltage',
|
|
|
|
|
'friendly_name': 'LaundryWasher Voltage',
|
|
|
|
|
'device_class': 'current',
|
|
|
|
|
'friendly_name': 'Water Heater Active current',
|
|
|
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.laundrywasher_voltage',
|
|
|
|
|
'entity_id': 'sensor.water_heater_active_current',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '120.0',
|
|
|
|
|
'state': '0.1',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_water_heater][sensor.water_heater_appliance_energy_state-entry]
|
|
|
|
@@ -5556,65 +5615,6 @@
|
|
|
|
|
'state': 'online',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_water_heater][sensor.water_heater_current-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.water_heater_current',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'options': dict({
|
|
|
|
|
'sensor': dict({
|
|
|
|
|
'suggested_display_precision': 2,
|
|
|
|
|
}),
|
|
|
|
|
'sensor.private': dict({
|
|
|
|
|
'suggested_unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
}),
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.CURRENT: 'current'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Current',
|
|
|
|
|
'platform': 'matter',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': None,
|
|
|
|
|
'unique_id': '00000000000004D2-0000000000000019-MatterNodeDevice-2-ElectricalPowerMeasurementActiveCurrent-144-5',
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_water_heater][sensor.water_heater_current-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
'device_class': 'current',
|
|
|
|
|
'friendly_name': 'Water Heater Current',
|
|
|
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.water_heater_current',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '0.1',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[silabs_water_heater][sensor.water_heater_energy_optimization_opt_out-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': set({
|
|
|
|
@@ -5941,7 +5941,7 @@
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': None,
|
|
|
|
|
'translation_key': 'voltage',
|
|
|
|
|
'unique_id': '00000000000004D2-0000000000000019-MatterNodeDevice-2-ElectricalPowerMeasurementVoltage-144-4',
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
|
|
|
|
})
|
|
|
|
@@ -6122,7 +6122,7 @@
|
|
|
|
|
'state': '0.0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[solar_power][sensor.solarpower_current-entry]
|
|
|
|
|
# name: test_sensors[solar_power][sensor.solarpower_active_current-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': set({
|
|
|
|
|
}),
|
|
|
|
@@ -6137,7 +6137,7 @@
|
|
|
|
|
'disabled_by': None,
|
|
|
|
|
'domain': 'sensor',
|
|
|
|
|
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
|
|
|
'entity_id': 'sensor.solarpower_current',
|
|
|
|
|
'entity_id': 'sensor.solarpower_active_current',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
@@ -6155,26 +6155,26 @@
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.CURRENT: 'current'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Current',
|
|
|
|
|
'original_name': 'Active current',
|
|
|
|
|
'platform': 'matter',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': None,
|
|
|
|
|
'translation_key': 'active_current',
|
|
|
|
|
'unique_id': '00000000000004D2-0000000000000001-MatterNodeDevice-1-ElectricalPowerMeasurementActiveCurrent-144-5',
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_sensors[solar_power][sensor.solarpower_current-state]
|
|
|
|
|
# name: test_sensors[solar_power][sensor.solarpower_active_current-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
'device_class': 'current',
|
|
|
|
|
'friendly_name': 'SolarPower Current',
|
|
|
|
|
'friendly_name': 'SolarPower Active current',
|
|
|
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.solarpower_current',
|
|
|
|
|
'entity_id': 'sensor.solarpower_active_current',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
@@ -6337,7 +6337,7 @@
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': None,
|
|
|
|
|
'translation_key': 'voltage',
|
|
|
|
|
'unique_id': '00000000000004D2-0000000000000001-MatterNodeDevice-1-ElectricalPowerMeasurementVoltage-144-4',
|
|
|
|
|
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
|
|
|
|
|
})
|
|
|
|
|