Add power binary sensor for dishwasher in SmartThings (#141417)

Add power binary sensor for dishwasher
This commit is contained in:
Joost Lekkerkerker 2025-03-25 21:49:38 +01:00 committed by GitHub
parent 8dd179c9e0
commit 3a62095af2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 54 additions and 1 deletions

View File

@ -132,7 +132,12 @@ CAPABILITY_TO_SENSORS: dict[
key=Attribute.SWITCH,
device_class=BinarySensorDeviceClass.POWER,
is_on_key="on",
category={Category.DRYER, Category.MICROWAVE, Category.WASHER},
category={
Category.DISHWASHER,
Category.DRYER,
Category.MICROWAVE,
Category.WASHER,
},
)
},
Capability.TAMPER_ALERT: {

View File

@ -808,6 +808,54 @@
'state': 'off',
})
# ---
# name: test_all_entities[da_wm_dw_000001][binary_sensor.dishwasher_power-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': 'binary_sensor',
'entity_category': None,
'entity_id': 'binary_sensor.dishwasher_power',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': <BinarySensorDeviceClass.POWER: 'power'>,
'original_icon': None,
'original_name': 'Power',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': None,
'unique_id': 'f36dc7ce-cac0-0667-dc14-a3704eb5e676.switch',
'unit_of_measurement': None,
})
# ---
# name: test_all_entities[da_wm_dw_000001][binary_sensor.dishwasher_power-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'power',
'friendly_name': 'Dishwasher Power',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.dishwasher_power',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_all_entities[da_wm_dw_000001][binary_sensor.dishwasher_remote_control-entry]
EntityRegistryEntrySnapshot({
'aliases': set({