Compare commits

...

2 Commits

Author SHA1 Message Date
Ludovic BOUÉ
2dc4d9e8ec Add icons for door lock open and closed events 2025-11-04 20:07:03 +00:00
Ludovic BOUÉ
1dc902c413 Add Matter sensor support for door lock open and closed events 2025-11-04 19:51:03 +00:00
3 changed files with 36 additions and 0 deletions

View File

@@ -86,6 +86,12 @@
"current_phase": {
"default": "mdi:state-machine"
},
"door_lock_door_closed_events": {
"default": "mdi:door-closed"
},
"door_lock_door_opened_events": {
"default": "mdi:door-open"
},
"esa_opt_out_state": {
"default": "mdi:home-lightning-bolt"
},

View File

@@ -1488,4 +1488,28 @@ DISCOVERY_SCHEMAS = [
entity_class=MatterSensor,
required_attributes=(clusters.ServiceArea.Attributes.EstimatedEndTime,),
),
MatterDiscoverySchema(
platform=Platform.SENSOR,
entity_description=MatterSensorEntityDescription(
key="DoorLockDoorOpenEvents",
translation_key="door_lock_door_open_events",
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL,
),
entity_class=MatterSensor,
required_attributes=(clusters.DoorLock.Attributes.DoorOpenEvents,),
featuremap_contains=clusters.DoorLock.Bitmaps.Feature.kDoorPositionSensor,
),
MatterDiscoverySchema(
platform=Platform.SENSOR,
entity_description=MatterSensorEntityDescription(
key="DoorLockDoorClosedEvents",
translation_key="door_lock_door_closed_events",
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL,
),
entity_class=MatterSensor,
required_attributes=(clusters.DoorLock.Attributes.DoorClosedEvents,),
featuremap_contains=clusters.DoorLock.Bitmaps.Feature.kDoorPositionSensor,
),
]

View File

@@ -365,6 +365,12 @@
"current_phase": {
"name": "Current phase"
},
"door_lock_door_closed_events": {
"name": "Door closed events"
},
"door_lock_door_opened_events": {
"name": "Door opened events"
},
"energy_exported": {
"name": "Energy exported"
},