Add wrinkle prevent binary sensor active to SmartThings (#141289)

* Add wrinkle prevent binary sensor active to SmartThings

* Fix
This commit is contained in:
Joost Lekkerkerker 2025-03-24 15:48:18 +01:00 committed by GitHub
parent 06382f33e0
commit 69a375776a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 111 additions and 0 deletions

View File

@ -68,6 +68,14 @@ CAPABILITY_TO_SENSORS: dict[
},
)
},
Capability.CUSTOM_DRYER_WRINKLE_PREVENT: {
Attribute.OPERATING_STATE: SmartThingsBinarySensorEntityDescription(
key=Attribute.OPERATING_STATE,
translation_key="dryer_wrinkle_prevent_active",
is_on_key="running",
entity_category=EntityCategory.DIAGNOSTIC,
)
},
Capability.FILTER_STATUS: {
Attribute.FILTER_STATUS: SmartThingsBinarySensorEntityDescription(
key=Attribute.FILTER_STATUS,

View File

@ -1,6 +1,12 @@
{
"entity": {
"binary_sensor": {
"dryer_wrinkle_prevent_active": {
"default": "mdi:tumble-dryer",
"state": {
"on": "mdi:tumble-dryer-alert"
}
},
"remote_control": {
"default": "mdi:remote-off",
"state": {

View File

@ -36,6 +36,9 @@
"door": {
"name": "[%key:component::binary_sensor::entity_component::door::name%]"
},
"dryer_wrinkle_prevent_active": {
"name": "Wrinkle prevent active"
},
"filter_status": {
"name": "Filter status"
},

View File

@ -949,6 +949,53 @@
'state': 'off',
})
# ---
# name: test_all_entities[da_wm_wd_000001][binary_sensor.dryer_wrinkle_prevent_active-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': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
'entity_id': 'binary_sensor.dryer_wrinkle_prevent_active',
'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': 'Wrinkle prevent active',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'dryer_wrinkle_prevent_active',
'unique_id': '02f7256e-8353-5bdd-547f-bd5b1647e01b.operatingState',
'unit_of_measurement': None,
})
# ---
# name: test_all_entities[da_wm_wd_000001][binary_sensor.dryer_wrinkle_prevent_active-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Dryer Wrinkle prevent active',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.dryer_wrinkle_prevent_active',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_all_entities[da_wm_wd_000001_1][binary_sensor.seca_roupa_child_lock-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
@ -1091,6 +1138,53 @@
'state': 'off',
})
# ---
# name: test_all_entities[da_wm_wd_000001_1][binary_sensor.seca_roupa_wrinkle_prevent_active-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': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
'entity_id': 'binary_sensor.seca_roupa_wrinkle_prevent_active',
'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': 'Wrinkle prevent active',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'dryer_wrinkle_prevent_active',
'unique_id': '3a6c4e05-811d-5041-e956-3d04c424cbcd.operatingState',
'unit_of_measurement': None,
})
# ---
# name: test_all_entities[da_wm_wd_000001_1][binary_sensor.seca_roupa_wrinkle_prevent_active-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Seca-Roupa Wrinkle prevent active',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.seca_roupa_wrinkle_prevent_active',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_all_entities[da_wm_wm_000001][binary_sensor.washer_child_lock-entry]
EntityRegistryEntrySnapshot({
'aliases': set({