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
8 changed files with 43 additions and 7 deletions

View File

@@ -5,5 +5,5 @@
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/holiday",
"iot_class": "local_polling",
"requirements": ["holidays==0.84", "babel==2.15.0"]
"requirements": ["holidays==0.83", "babel==2.15.0"]
}

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"
},

View File

@@ -9,7 +9,7 @@
"iot_class": "local_push",
"loggers": ["aioshelly"],
"quality_scale": "silver",
"requirements": ["aioshelly==13.16.0"],
"requirements": ["aioshelly==13.15.0"],
"zeroconf": [
{
"name": "shelly*",

View File

@@ -7,5 +7,5 @@
"iot_class": "local_polling",
"loggers": ["holidays"],
"quality_scale": "internal",
"requirements": ["holidays==0.84"]
"requirements": ["holidays==0.83"]
}

4
requirements_all.txt generated
View File

@@ -389,7 +389,7 @@ aioruuvigateway==0.1.0
aiosenz==1.0.0
# homeassistant.components.shelly
aioshelly==13.16.0
aioshelly==13.15.0
# homeassistant.components.skybell
aioskybell==22.7.0
@@ -1181,7 +1181,7 @@ hole==0.9.0
# homeassistant.components.holiday
# homeassistant.components.workday
holidays==0.84
holidays==0.83
# homeassistant.components.frontend
home-assistant-frontend==20251104.0

View File

@@ -371,7 +371,7 @@ aioruuvigateway==0.1.0
aiosenz==1.0.0
# homeassistant.components.shelly
aioshelly==13.16.0
aioshelly==13.15.0
# homeassistant.components.skybell
aioskybell==22.7.0
@@ -1030,7 +1030,7 @@ hole==0.9.0
# homeassistant.components.holiday
# homeassistant.components.workday
holidays==0.84
holidays==0.83
# homeassistant.components.frontend
home-assistant-frontend==20251104.0