Add power binary sensor for microwave in SmartThings (#141415)

Add power binary sensor for microwave
This commit is contained in:
Joost Lekkerkerker 2025-03-25 21:24:01 +01:00 committed by GitHub
parent 013439f7c6
commit c29ca4c50a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 49 additions and 1 deletions

View File

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

View File

@ -238,6 +238,54 @@
'state': 'off',
})
# ---
# name: test_all_entities[da_ks_microwave_0101x][binary_sensor.microwave_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.microwave_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': '2bad3237-4886-e699-1b90-4a51a3d55c8a.switch',
'unit_of_measurement': None,
})
# ---
# name: test_all_entities[da_ks_microwave_0101x][binary_sensor.microwave_power-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'power',
'friendly_name': 'Microwave Power',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.microwave_power',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_all_entities[da_ks_microwave_0101x][binary_sensor.microwave_remote_control-entry]
EntityRegistryEntrySnapshot({
'aliases': set({