Add EHS test fixture to SmartThings (#140199)

This commit is contained in:
Joost Lekkerkerker 2025-03-15 20:28:04 +01:00 committed by GitHub
parent 02a75edf1d
commit bff73ee5f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 1341 additions and 0 deletions

View File

@ -106,6 +106,7 @@ def mock_smartthings() -> Generator[AsyncMock]:
"da_ref_normal_000001",
"vd_network_audio_002s",
"iphone",
"da_sac_ehs_000001_sub",
"da_wm_dw_000001",
"da_wm_wd_000001",
"da_wm_wd_000001_1",

View File

@ -0,0 +1,680 @@
{
"components": {
"main": {
"demandResponseLoadControl": {
"drlcStatus": {
"value": {
"drlcType": 1,
"drlcLevel": -1,
"start": "1970-01-01T00:00:00Z",
"duration": 0,
"override": false
},
"timestamp": "2025-03-09T08:18:06.394Z"
}
},
"powerConsumptionReport": {
"powerConsumption": {
"value": {
"energy": 8193810.0,
"deltaEnergy": 0,
"power": 2.539,
"powerEnergy": 0.009404173966911105,
"persistedEnergy": 8193810.0,
"energySaved": 0,
"start": "2025-03-09T11:14:44Z",
"end": "2025-03-09T11:14:57Z"
},
"timestamp": "2025-03-09T11:14:57.338Z"
}
},
"samsungce.ehsCycleData": {
"outdoor": {
"value": [
{
"timestamp": "2025-03-09T02:00:29Z",
"data": "0038003870FF3C3B46020218019A00050000"
},
{
"timestamp": "2025-03-09T02:05:29Z",
"data": "0034003471FF3C3C46020218019A00050000"
},
{
"timestamp": "2025-03-09T02:10:29Z",
"data": "002D002D71FF3D3D460201C9019A00050000"
}
],
"unit": "C",
"timestamp": "2025-03-09T11:11:30.786Z"
},
"indoor": {
"value": [
{
"timestamp": "2025-03-09T02:00:29Z",
"data": "5F055C050505002564000000000000000001FFFF00079440"
},
{
"timestamp": "2025-03-09T02:05:29Z",
"data": "60055E050505002563000000000000000001FFFF00079445"
},
{
"timestamp": "2025-03-09T02:10:29Z",
"data": "61055F050505002560000000000000000001FFFF0007944B"
}
],
"unit": "C",
"timestamp": "2025-03-09T11:11:30.786Z"
}
},
"custom.outingMode": {
"outingMode": {
"value": "off",
"timestamp": "2025-03-09T08:00:05.571Z"
}
},
"samsungce.ehsThermostat": {
"connectionState": {
"value": "disconnected",
"timestamp": "2025-03-09T08:00:05.562Z"
}
},
"refresh": {},
"custom.thermostatSetpointControl": {
"minimumSetpoint": {
"value": 40,
"unit": "C",
"timestamp": "2025-03-09T08:18:06.394Z"
},
"maximumSetpoint": {
"value": 55,
"unit": "C",
"timestamp": "2025-03-09T08:18:06.394Z"
}
},
"airConditionerMode": {
"availableAcModes": {
"value": null
},
"supportedAcModes": {
"value": ["eco", "std", "force"],
"timestamp": "2025-03-09T08:18:06.394Z"
},
"airConditionerMode": {
"value": "std",
"timestamp": "2025-03-09T08:00:05.562Z"
}
},
"samsungce.ehsFsvSettings": {
"fsvSettings": {
"value": [
{
"id": "1031",
"inUse": true,
"resolution": 1,
"type": "temperature",
"minValue": 37,
"maxValue": 70,
"value": 70,
"isValid": true,
"temperatureUnit": "C"
},
{
"id": "1032",
"inUse": true,
"resolution": 1,
"type": "temperature",
"minValue": 15,
"maxValue": 37,
"value": 25,
"isValid": true,
"temperatureUnit": "C"
},
{
"id": "1051",
"inUse": true,
"resolution": 1,
"type": "temperature",
"minValue": 50,
"maxValue": 70,
"value": 55,
"isValid": true,
"temperatureUnit": "C"
},
{
"id": "1052",
"inUse": true,
"resolution": 1,
"type": "temperature",
"minValue": 30,
"maxValue": 40,
"value": 40,
"isValid": true,
"temperatureUnit": "C"
},
{
"id": "2011",
"inUse": true,
"resolution": 1,
"type": "temperature",
"minValue": -20,
"maxValue": 5,
"value": -3,
"isValid": true,
"temperatureUnit": "C"
},
{
"id": "2012",
"inUse": true,
"resolution": 1,
"type": "temperature",
"minValue": 10,
"maxValue": 20,
"value": 15,
"isValid": true,
"temperatureUnit": "C"
},
{
"id": "2021",
"inUse": true,
"resolution": 1,
"type": "temperature",
"minValue": 17,
"maxValue": 70,
"value": 50,
"isValid": true,
"temperatureUnit": "C"
},
{
"id": "2022",
"inUse": true,
"resolution": 1,
"type": "temperature",
"minValue": 17,
"maxValue": 70,
"value": 32,
"isValid": true,
"temperatureUnit": "C"
},
{
"id": "2031",
"inUse": true,
"resolution": 1,
"type": "temperature",
"minValue": 17,
"maxValue": 70,
"value": 50,
"isValid": true,
"temperatureUnit": "C"
},
{
"id": "2032",
"inUse": true,
"resolution": 1,
"type": "temperature",
"minValue": 17,
"maxValue": 70,
"value": 38,
"isValid": true,
"temperatureUnit": "C"
},
{
"id": "2091",
"inUse": true,
"resolution": 1,
"type": "etc",
"minValue": 0,
"maxValue": 4,
"value": 0,
"isValid": true
},
{
"id": "2092",
"inUse": true,
"resolution": 1,
"type": "etc",
"minValue": 0,
"maxValue": 4,
"value": 0,
"isValid": true
},
{
"id": "2093",
"inUse": true,
"resolution": 1,
"type": "etc",
"minValue": 1,
"maxValue": 4,
"value": 4,
"isValid": true
},
{
"id": "3011",
"inUse": true,
"resolution": 1,
"type": "etc",
"minValue": 0,
"maxValue": 2,
"value": 2,
"isValid": true
},
{
"id": "3071",
"inUse": true,
"resolution": 1,
"type": "etc",
"minValue": 0,
"maxValue": 1,
"value": 0,
"isValid": true
},
{
"id": "4011",
"inUse": true,
"resolution": 1,
"type": "etc",
"minValue": 0,
"maxValue": 1,
"value": 0,
"isValid": true
},
{
"id": "4012",
"inUse": true,
"resolution": 1,
"type": "temperature",
"minValue": -15,
"maxValue": 20,
"value": 0,
"isValid": true,
"temperatureUnit": "C"
},
{
"id": "4021",
"inUse": true,
"resolution": 1,
"type": "etc",
"minValue": 0,
"maxValue": 2,
"value": 0,
"isValid": true
},
{
"id": "4042",
"inUse": true,
"resolution": 1,
"type": "temperature",
"minValue": 5,
"maxValue": 15,
"value": 10,
"isValid": true,
"temperatureUnit": "C"
},
{
"id": "4061",
"inUse": true,
"resolution": 1,
"type": "etc",
"minValue": 0,
"maxValue": 1,
"value": 0,
"isValid": true
}
],
"timestamp": "2025-03-09T08:18:06.394Z"
}
},
"execute": {
"data": {
"value": {
"payload": {
"rt": ["x.com.samsung.da.information"],
"if": ["oic.if.a"],
"x.com.samsung.da.modelNum": "SAC_EHS_MONO|220614|61007400001600000400000000000000",
"x.com.samsung.da.description": "EHS",
"x.com.samsung.da.serialNum": "",
"x.com.samsung.da.versionId": "Samsung Electronics",
"x.com.samsung.da.items": [
{
"x.com.samsung.da.number": "DB91-02102A 2023-01-11",
"x.com.samsung.da.type": "Software",
"x.com.samsung.da.newVersionAvailable": "false",
"x.com.samsung.da.id": "0",
"x.com.samsung.da.description": "Version"
},
{
"x.com.samsung.da.number": "DB91-02100A 2020-07-10",
"x.com.samsung.da.type": "Firmware",
"x.com.samsung.da.newVersionAvailable": "false",
"x.com.samsung.da.id": "1",
"x.com.samsung.da.description": "Version"
},
{
"x.com.samsung.da.number": "DB91-02103B 2022-06-14",
"x.com.samsung.da.type": "Firmware",
"x.com.samsung.da.newVersionAvailable": "false",
"x.com.samsung.da.id": "2",
"x.com.samsung.da.description": ""
},
{
"x.com.samsung.da.number": "DB91-02450A 2022-07-06",
"x.com.samsung.da.type": "Firmware",
"x.com.samsung.da.newVersionAvailable": "false",
"x.com.samsung.da.id": "3",
"x.com.samsung.da.description": "EHS MONO LOWTEMP"
}
]
}
},
"data": {
"href": "/information/vs/0"
},
"timestamp": "2023-08-02T14:32:28.435Z"
}
},
"samsungce.deviceIdentification": {
"micomAssayCode": {
"value": null
},
"modelName": {
"value": null
},
"serialNumber": {
"value": null
},
"serialNumberExtra": {
"value": null
},
"modelClassificationCode": {
"value": null
},
"description": {
"value": null
},
"releaseYear": {
"value": null
},
"binaryId": {
"value": "SAC_EHS_MONO",
"timestamp": "2025-03-09T08:18:06.394Z"
}
},
"samsungce.sacDisplayCondition": {
"switch": {
"value": "enabled",
"timestamp": "2025-03-09T08:00:05.514Z"
}
},
"switch": {
"switch": {
"value": "off",
"timestamp": "2025-03-09T11:00:27.522Z"
}
},
"ocf": {
"st": {
"value": "2025-03-06T08:37:35Z",
"timestamp": "2025-03-09T08:18:05.953Z"
},
"mndt": {
"value": "",
"timestamp": "2025-03-09T08:18:05.953Z"
},
"mnfv": {
"value": "20240611.1",
"timestamp": "2025-03-09T08:18:05.953Z"
},
"mnhw": {
"value": "",
"timestamp": "2025-03-09T08:18:05.953Z"
},
"di": {
"value": "1f98ebd0-ac48-d802-7f62-000001200100",
"timestamp": "2025-03-09T08:18:05.955Z"
},
"mnsl": {
"value": "",
"timestamp": "2025-03-09T08:18:05.953Z"
},
"dmv": {
"value": "res.1.1.0,sh.1.1.0",
"timestamp": "2025-03-09T08:18:05.955Z"
},
"n": {
"value": "Eco Heating System",
"timestamp": "2025-03-09T08:18:05.955Z"
},
"mnmo": {
"value": "SAC_EHS_MONO|220614|61007400001600000400000000000000",
"timestamp": "2025-03-09T08:18:06.394Z"
},
"vid": {
"value": "DA-SAC-EHS-000001-SUB",
"timestamp": "2025-03-09T08:18:05.953Z"
},
"mnmn": {
"value": "Samsung Electronics",
"timestamp": "2025-03-09T08:18:05.953Z"
},
"mnml": {
"value": "",
"timestamp": "2025-03-09T08:18:05.953Z"
},
"mnpv": {
"value": "4.0",
"timestamp": "2025-03-09T08:18:05.953Z"
},
"mnos": {
"value": "Tizen",
"timestamp": "2025-03-09T08:18:05.953Z"
},
"pi": {
"value": "1f98ebd0-ac48-d802-7f62-000001200100",
"timestamp": "2025-03-09T08:18:05.953Z"
},
"icv": {
"value": "core.1.1.0",
"timestamp": "2025-03-09T08:18:05.955Z"
}
},
"remoteControlStatus": {
"remoteControlEnabled": {
"value": "true",
"timestamp": "2025-03-09T08:18:06.394Z"
}
},
"custom.energyType": {
"energyType": {
"value": "2.0",
"timestamp": "2025-03-09T08:18:06.394Z"
},
"energySavingSupport": {
"value": false,
"timestamp": "2023-08-02T14:36:25.480Z"
},
"drMaxDuration": {
"value": null
},
"energySavingLevel": {
"value": null
},
"energySavingInfo": {
"value": null
},
"supportedEnergySavingLevels": {
"value": null
},
"energySavingOperation": {
"value": null
},
"notificationTemplateID": {
"value": null
},
"energySavingOperationSupport": {
"value": null
}
},
"samsungce.toggleSwitch": {
"switch": {
"value": "off",
"timestamp": "2025-03-09T11:00:22.880Z"
}
},
"custom.disabledCapabilities": {
"disabledCapabilities": {
"value": ["remoteControlStatus", "demandResponseLoadControl"],
"timestamp": "2025-03-09T08:31:30.641Z"
}
},
"samsungce.driverVersion": {
"versionNumber": {
"value": 23070101,
"timestamp": "2023-08-02T14:32:26.195Z"
}
},
"samsungce.softwareUpdate": {
"targetModule": {
"value": null
},
"otnDUID": {
"value": null
},
"lastUpdatedDate": {
"value": null
},
"availableModules": {
"value": [],
"timestamp": "2025-03-09T08:18:06.394Z"
},
"newVersionAvailable": {
"value": false,
"timestamp": "2025-03-09T08:18:06.394Z"
},
"operatingState": {
"value": null
},
"progress": {
"value": null
}
},
"temperatureMeasurement": {
"temperatureRange": {
"value": null
},
"temperature": {
"value": 54.3,
"unit": "C",
"timestamp": "2025-03-09T10:43:24.134Z"
}
},
"custom.deviceReportStateConfiguration": {
"reportStateRealtimePeriod": {
"value": "enabled",
"timestamp": "2024-11-08T01:41:37.280Z"
},
"reportStateRealtime": {
"value": {
"state": "disabled"
},
"timestamp": "2025-03-08T12:06:55.069Z"
},
"reportStatePeriod": {
"value": "enabled",
"timestamp": "2024-11-08T01:41:37.280Z"
}
},
"samsungce.ehsTemperatureReference": {
"temperatureReference": {
"value": "water",
"timestamp": "2025-03-09T07:15:48.438Z"
}
},
"thermostatCoolingSetpoint": {
"coolingSetpointRange": {
"value": null
},
"coolingSetpoint": {
"value": 48,
"unit": "C",
"timestamp": "2025-03-09T10:58:50.857Z"
}
}
},
"INDOOR": {
"samsungce.ehsThermostat": {
"connectionState": {
"value": "disconnected",
"timestamp": "2025-03-09T08:18:06.394Z"
}
},
"samsungce.toggleSwitch": {
"switch": {
"value": "off",
"timestamp": "2025-03-09T11:14:44.775Z"
}
},
"temperatureMeasurement": {
"temperatureRange": {
"value": null
},
"temperature": {
"value": 39.2,
"unit": "C",
"timestamp": "2025-03-09T11:15:49.852Z"
}
},
"custom.thermostatSetpointControl": {
"minimumSetpoint": {
"value": 25,
"unit": "C",
"timestamp": "2025-03-09T07:06:20.699Z"
},
"maximumSetpoint": {
"value": 65,
"unit": "C",
"timestamp": "2025-03-09T07:06:20.699Z"
}
},
"airConditionerMode": {
"availableAcModes": {
"value": null
},
"supportedAcModes": {
"value": ["auto", "cool", "heat"],
"timestamp": "2025-03-09T08:18:06.394Z"
},
"airConditionerMode": {
"value": "heat",
"timestamp": "2025-03-09T08:18:06.394Z"
}
},
"samsungce.ehsTemperatureReference": {
"temperatureReference": {
"value": "water",
"timestamp": "2025-03-09T07:06:20.699Z"
}
},
"thermostatCoolingSetpoint": {
"coolingSetpointRange": {
"value": null
},
"coolingSetpoint": {
"value": 25,
"unit": "C",
"timestamp": "2025-03-09T11:14:44.734Z"
}
},
"samsungce.sacDisplayCondition": {
"switch": {
"value": "enabled",
"timestamp": "2025-03-09T08:18:06.394Z"
}
},
"switch": {
"switch": {
"value": "off",
"timestamp": "2025-03-09T11:14:57.238Z"
}
}
}
}
}

View File

@ -0,0 +1,202 @@
{
"items": [
{
"deviceId": "1f98ebd0-ac48-d802-7f62-000001200100",
"name": "Eco Heating System",
"label": "Eco Heating System",
"manufacturerName": "Samsung Electronics",
"presentationId": "DA-SAC-EHS-000001-SUB",
"deviceManufacturerCode": "Samsung Electronics",
"locationId": "d22d6401-6070-4928-8e7b-b724e2dbf425",
"ownerId": "35445a41-3ae2-4bc0-6f51-31705de6b96f",
"roomId": "169ef666-a51d-4d74-9b45-e660ecd4a8d7",
"deviceTypeName": "Samsung OCF Air Conditioner",
"components": [
{
"id": "main",
"label": "main",
"capabilities": [
{
"id": "ocf",
"version": 1
},
{
"id": "switch",
"version": 1
},
{
"id": "temperatureMeasurement",
"version": 1
},
{
"id": "thermostatCoolingSetpoint",
"version": 1
},
{
"id": "airConditionerMode",
"version": 1
},
{
"id": "powerConsumptionReport",
"version": 1
},
{
"id": "demandResponseLoadControl",
"version": 1
},
{
"id": "remoteControlStatus",
"version": 1
},
{
"id": "refresh",
"version": 1
},
{
"id": "execute",
"version": 1
},
{
"id": "custom.energyType",
"version": 1
},
{
"id": "custom.outingMode",
"version": 1
},
{
"id": "custom.thermostatSetpointControl",
"version": 1
},
{
"id": "custom.deviceReportStateConfiguration",
"version": 1
},
{
"id": "custom.disabledCapabilities",
"version": 1
},
{
"id": "samsungce.deviceIdentification",
"version": 1
},
{
"id": "samsungce.driverVersion",
"version": 1
},
{
"id": "samsungce.sacDisplayCondition",
"version": 1
},
{
"id": "samsungce.softwareUpdate",
"version": 1
},
{
"id": "samsungce.ehsFsvSettings",
"version": 1
},
{
"id": "samsungce.ehsCycleData",
"version": 1
},
{
"id": "samsungce.ehsTemperatureReference",
"version": 1
},
{
"id": "samsungce.ehsThermostat",
"version": 1
},
{
"id": "samsungce.toggleSwitch",
"version": 1
}
],
"categories": [
{
"name": "AirConditioner",
"categoryType": "manufacturer"
}
]
},
{
"id": "INDOOR",
"label": "INDOOR",
"capabilities": [
{
"id": "switch",
"version": 1
},
{
"id": "temperatureMeasurement",
"version": 1
},
{
"id": "thermostatCoolingSetpoint",
"version": 1
},
{
"id": "airConditionerMode",
"version": 1
},
{
"id": "custom.thermostatSetpointControl",
"version": 1
},
{
"id": "samsungce.ehsTemperatureReference",
"version": 1
},
{
"id": "samsungce.sacDisplayCondition",
"version": 1
},
{
"id": "samsungce.ehsThermostat",
"version": 1
},
{
"id": "samsungce.toggleSwitch",
"version": 1
}
],
"categories": [
{
"name": "Other",
"categoryType": "manufacturer"
}
]
}
],
"createTime": "2023-08-02T14:32:26.006Z",
"parentDeviceId": "1f98ebd0-ac48-d802-7f62-12592d8286b7",
"profile": {
"id": "54b9789f-2c8c-310d-9e14-9a84903c792b"
},
"ocf": {
"ocfDeviceType": "oic.d.airconditioner",
"name": "Eco Heating System",
"specVersion": "core.1.1.0",
"verticalDomainSpecVersion": "1.2.1",
"manufacturerName": "Samsung Electronics",
"modelNumber": "SAC_EHS_MONO|220614|61007400001600000400000000000000",
"platformVersion": "4.0",
"platformOS": "Tizen",
"hwVersion": "",
"firmwareVersion": "20240611.1",
"vendorId": "DA-SAC-EHS-000001-SUB",
"vendorResourceClientServerVersion": "3.2.20",
"lastSignupTime": "2023-08-02T14:32:25.282882Z",
"transferCandidate": false,
"additionalAuthCodeRequired": false
},
"type": "OCF",
"restrictionTier": 0,
"allowed": null,
"executionContext": "CLOUD",
"relationships": []
}
],
"_links": {}
}

View File

@ -530,6 +530,39 @@
'via_device_id': None,
})
# ---
# name: test_devices[da_sac_ehs_000001_sub]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': 'https://account.smartthings.com',
'connections': set({
}),
'disabled_by': None,
'entry_type': None,
'hw_version': '',
'id': <ANY>,
'identifiers': set({
tuple(
'smartthings',
'1f98ebd0-ac48-d802-7f62-000001200100',
),
}),
'is_new': False,
'labels': set({
}),
'manufacturer': 'Samsung Electronics',
'model': 'SAC_EHS_MONO',
'model_id': None,
'name': 'Eco Heating System',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'suggested_area': None,
'sw_version': '20240611.1',
'via_device_id': None,
})
# ---
# name: test_devices[da_wm_dw_000001]
DeviceRegistryEntrySnapshot({
'area_id': 'theater',

View File

@ -3406,6 +3406,384 @@
'state': 'off',
})
# ---
# name: test_all_entities[da_sac_ehs_000001_sub][sensor.eco_heating_system_cooling_set_point-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'sensor',
'entity_category': None,
'entity_id': 'sensor.eco_heating_system_cooling_set_point',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>,
'original_icon': None,
'original_name': 'Cooling set point',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'thermostat_cooling_setpoint',
'unique_id': '1f98ebd0-ac48-d802-7f62-000001200100.coolingSetpoint',
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
})
# ---
# name: test_all_entities[da_sac_ehs_000001_sub][sensor.eco_heating_system_cooling_set_point-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Eco Heating System Cooling set point',
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.eco_heating_system_cooling_set_point',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': '48',
})
# ---
# name: test_all_entities[da_sac_ehs_000001_sub][sensor.eco_heating_system_energy-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': dict({
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'sensor',
'entity_category': None,
'entity_id': 'sensor.eco_heating_system_energy',
'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': 'Energy',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': None,
'unique_id': '1f98ebd0-ac48-d802-7f62-000001200100.energy_meter',
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
})
# ---
# name: test_all_entities[da_sac_ehs_000001_sub][sensor.eco_heating_system_energy-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Eco Heating System Energy',
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.eco_heating_system_energy',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': '8193.81',
})
# ---
# name: test_all_entities[da_sac_ehs_000001_sub][sensor.eco_heating_system_energy_difference-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': None,
'entity_id': 'sensor.eco_heating_system_energy_difference',
'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': 'Energy difference',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'energy_difference',
'unique_id': '1f98ebd0-ac48-d802-7f62-000001200100.deltaEnergy_meter',
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
})
# ---
# name: test_all_entities[da_sac_ehs_000001_sub][sensor.eco_heating_system_energy_difference-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Eco Heating System Energy difference',
'state_class': <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.eco_heating_system_energy_difference',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': '0.0',
})
# ---
# name: test_all_entities[da_sac_ehs_000001_sub][sensor.eco_heating_system_energy_saved-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': dict({
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'sensor',
'entity_category': None,
'entity_id': 'sensor.eco_heating_system_energy_saved',
'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': 'Energy saved',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'energy_saved',
'unique_id': '1f98ebd0-ac48-d802-7f62-000001200100.energySaved_meter',
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
})
# ---
# name: test_all_entities[da_sac_ehs_000001_sub][sensor.eco_heating_system_energy_saved-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Eco Heating System Energy saved',
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.eco_heating_system_energy_saved',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': '0.0',
})
# ---
# name: test_all_entities[da_sac_ehs_000001_sub][sensor.eco_heating_system_power-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': None,
'entity_id': 'sensor.eco_heating_system_power',
'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.POWER: 'power'>,
'original_icon': None,
'original_name': 'Power',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': None,
'unique_id': '1f98ebd0-ac48-d802-7f62-000001200100.power_meter',
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
})
# ---
# name: test_all_entities[da_sac_ehs_000001_sub][sensor.eco_heating_system_power-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'power',
'friendly_name': 'Eco Heating System Power',
'power_consumption_end': '2025-03-09T11:14:57Z',
'power_consumption_start': '2025-03-09T11:14:44Z',
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
}),
'context': <ANY>,
'entity_id': 'sensor.eco_heating_system_power',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': '2.539',
})
# ---
# name: test_all_entities[da_sac_ehs_000001_sub][sensor.eco_heating_system_power_energy-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': dict({
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
}),
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'sensor',
'entity_category': None,
'entity_id': 'sensor.eco_heating_system_power_energy',
'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': 'Power energy',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'power_energy',
'unique_id': '1f98ebd0-ac48-d802-7f62-000001200100.powerEnergy_meter',
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
})
# ---
# name: test_all_entities[da_sac_ehs_000001_sub][sensor.eco_heating_system_power_energy-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Eco Heating System Power energy',
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.eco_heating_system_power_energy',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': '9.4041739669111e-06',
})
# ---
# name: test_all_entities[da_sac_ehs_000001_sub][sensor.eco_heating_system_temperature-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': None,
'entity_id': 'sensor.eco_heating_system_temperature',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>,
'original_icon': None,
'original_name': 'Temperature',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': None,
'unique_id': '1f98ebd0-ac48-d802-7f62-000001200100.temperature',
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
})
# ---
# name: test_all_entities[da_sac_ehs_000001_sub][sensor.eco_heating_system_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Eco Heating System Temperature',
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.eco_heating_system_temperature',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': '54.3',
})
# ---
# name: test_all_entities[da_wm_dw_000001][sensor.dishwasher_completion_time-entry]
EntityRegistryEntrySnapshot({
'aliases': set({

View File

@ -140,6 +140,53 @@
'state': 'off',
})
# ---
# name: test_all_entities[da_sac_ehs_000001_sub][switch.eco_heating_system-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': None,
'entity_id': 'switch.eco_heating_system',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': None,
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': None,
'unique_id': '1f98ebd0-ac48-d802-7f62-000001200100',
'unit_of_measurement': None,
})
# ---
# name: test_all_entities[da_sac_ehs_000001_sub][switch.eco_heating_system-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Eco Heating System',
}),
'context': <ANY>,
'entity_id': 'switch.eco_heating_system',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_all_entities[da_wm_dw_000001][switch.dishwasher-entry]
EntityRegistryEntrySnapshot({
'aliases': set({