Inherits homeassistant.helpers.entity.Entity, cached_properties, and CACHED_PROPERTIES_WITH_ATTR_.
Inherited by homeassistant.components.abode.lock.AbodeLock, homeassistant.components.august.lock.AugustLock, homeassistant.components.bmw_connected_drive.lock.BMWLock, homeassistant.components.demo.lock.DemoLock, homeassistant.components.dormakaba_dkey.lock.DormakabaDkeyLock, homeassistant.components.esphome.lock.EsphomeLock, homeassistant.components.fibaro.lock.FibaroLock, homeassistant.components.freedompro.lock.Device, homeassistant.components.group.lock.LockGroup, homeassistant.components.homekit_controller.lock.HomeKitLock, homeassistant.components.homematic.lock.HMLock, homeassistant.components.homematicip_cloud.lock.HomematicipDoorLockDrive, homeassistant.components.insteon.lock.InsteonLockEntity, homeassistant.components.isy994.lock.ISYLockEntity, homeassistant.components.isy994.lock.ISYLockProgramEntity, homeassistant.components.keba.lock.KebaLock, homeassistant.components.kitchen_sink.lock.DemoLock, homeassistant.components.kiwi.lock.KiwiLock, homeassistant.components.loqed.lock.LoqedLock, homeassistant.components.matter.lock.MatterLock, homeassistant.components.mqtt.lock.MqttLock, homeassistant.components.overkiz.lock.OverkizLock, homeassistant.components.schlage.lock.SchlageLockEntity, homeassistant.components.sesame.lock.SesameDevice, homeassistant.components.simplisafe.lock.SimpliSafeLock, homeassistant.components.smartthings.lock.SmartThingsLock, homeassistant.components.starline.lock.StarlineLock, homeassistant.components.subaru.lock.SubaruLock, homeassistant.components.surepetcare.lock.SurePetcareLock, homeassistant.components.switchbot.lock.SwitchBotLock, homeassistant.components.switchbot_cloud.lock.SwitchBotCloudLock, homeassistant.components.tedee.lock.TedeeLockEntity, homeassistant.components.template.lock.TemplateLock, homeassistant.components.tesla_fleet.lock.TeslaFleetCableLockEntity, homeassistant.components.tesla_fleet.lock.TeslaFleetVehicleLockEntity, homeassistant.components.teslemetry.lock.TeslemetryCableLockEntity, homeassistant.components.teslemetry.lock.TeslemetryVehicleLockEntity, homeassistant.components.tessie.lock.TessieCableLockEntity, homeassistant.components.tessie.lock.TessieLockEntity, homeassistant.components.unifiprotect.lock.ProtectLock, homeassistant.components.vera.lock.VeraLock, homeassistant.components.verisure.lock.VerisureDoorlock, homeassistant.components.volvooncall.lock.VolvoLock, homeassistant.components.wallbox.lock.WallboxLock, homeassistant.components.xiaomi_aqara.lock.XiaomiAqaraLock, homeassistant.components.yale.lock.YaleLock, homeassistant.components.yale_smart_alarm.lock.YaleDoorlock, homeassistant.components.yalexs_ble.lock.YaleXSBLELock, homeassistant.components.yolink.lock.YoLinkLockEntity, homeassistant.components.zha.lock.ZhaDoorLock, and homeassistant.components.zwave_me.lock.ZWaveMeLock.
Static Public Attributes | |
| LockEntityFeature | |
| None | |
| str | |
Static Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| bool | |
| EntityPlatform | |
| HomeAssistant | |
| None | |
| StateInfo | |
| StateType | |
| str | |
Private Member Functions | |
| None | _async_read_entity_options (self) |
Private Attributes | |
| __code_format_cmp | |
| _lock_option_default_code | |
Additional Inherited Members | |
Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| device_entry | |
| entity_id | |
| hass | |
| parallel_updates | |
| platform | |
| registry_entry | |
Base class for lock entities.
Definition at line 130 of file __init__.py.
|
private |
Read entity options from entity registry. Called when the entity registry entry has been updated and before the lock is added to the state machine.
Definition at line 313 of file __init__.py.
| dict[Any, Any] homeassistant.components.lock.LockEntity.add_default_code | ( | self, | |
| dict[Any, Any] | data | ||
| ) |
Add default lock code.
Definition at line 149 of file __init__.py.
| None homeassistant.components.lock.LockEntity.async_handle_lock_service | ( | self, | |
| **Any | kwargs | ||
| ) |
Add default code and lock.
Definition at line 224 of file __init__.py.
| None homeassistant.components.lock.LockEntity.async_handle_open_service | ( | self, | |
| **Any | kwargs | ||
| ) |
Add default code and open.
Definition at line 250 of file __init__.py.
| None homeassistant.components.lock.LockEntity.async_handle_unlock_service | ( | self, | |
| **Any | kwargs | ||
| ) |
Add default code and unlock.
Definition at line 237 of file __init__.py.
| None homeassistant.components.lock.LockEntity.async_internal_added_to_hass | ( | self | ) |
Call when the sensor entity is added to hass.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 300 of file __init__.py.
| None homeassistant.components.lock.LockEntity.async_lock | ( | self, | |
| **Any | kwargs | ||
| ) |
Lock the lock.
Reimplemented in homeassistant.components.zha.lock.ZhaDoorLock, homeassistant.components.yolink.lock.YoLinkLockEntity, homeassistant.components.yalexs_ble.lock.YaleXSBLELock, homeassistant.components.yale_smart_alarm.lock.YaleDoorlock, homeassistant.components.yale.lock.YaleLock, homeassistant.components.wallbox.lock.WallboxLock, homeassistant.components.volvooncall.lock.VolvoLock, homeassistant.components.verisure.lock.VerisureDoorlock, homeassistant.components.unifiprotect.lock.ProtectLock, homeassistant.components.tessie.lock.TessieCableLockEntity, homeassistant.components.tessie.lock.TessieLockEntity, homeassistant.components.teslemetry.lock.TeslemetryCableLockEntity, homeassistant.components.teslemetry.lock.TeslemetryVehicleLockEntity, homeassistant.components.tesla_fleet.lock.TeslaFleetCableLockEntity, homeassistant.components.tesla_fleet.lock.TeslaFleetVehicleLockEntity, homeassistant.components.template.lock.TemplateLock, homeassistant.components.tedee.lock.TedeeLockEntity, homeassistant.components.switchbot_cloud.lock.SwitchBotCloudLock, homeassistant.components.switchbot.lock.SwitchBotLock, homeassistant.components.surepetcare.lock.SurePetcareLock, homeassistant.components.subaru.lock.SubaruLock, homeassistant.components.smartthings.lock.SmartThingsLock, homeassistant.components.simplisafe.lock.SimpliSafeLock, homeassistant.components.schlage.lock.SchlageLockEntity, homeassistant.components.overkiz.lock.OverkizLock, homeassistant.components.mqtt.lock.MqttLock, homeassistant.components.matter.lock.MatterLock, homeassistant.components.loqed.lock.LoqedLock, homeassistant.components.kitchen_sink.lock.DemoLock, homeassistant.components.keba.lock.KebaLock, homeassistant.components.isy994.lock.ISYLockProgramEntity, homeassistant.components.isy994.lock.ISYLockEntity, homeassistant.components.insteon.lock.InsteonLockEntity, homeassistant.components.homematicip_cloud.lock.HomematicipDoorLockDrive, homeassistant.components.homekit_controller.lock.HomeKitLock, homeassistant.components.group.lock.LockGroup, homeassistant.components.freedompro.lock.Device, homeassistant.components.esphome.lock.EsphomeLock, homeassistant.components.dormakaba_dkey.lock.DormakabaDkeyLock, homeassistant.components.demo.lock.DemoLock, homeassistant.components.bmw_connected_drive.lock.BMWLock, and homeassistant.components.august.lock.AugustLock.
Definition at line 232 of file __init__.py.
| None homeassistant.components.lock.LockEntity.async_open | ( | self, | |
| **Any | kwargs | ||
| ) |
Open the door latch.
Reimplemented in homeassistant.components.yale.lock.YaleLock, homeassistant.components.template.lock.TemplateLock, homeassistant.components.tedee.lock.TedeeLockWithLatchEntity, homeassistant.components.switchbot.lock.SwitchBotLock, homeassistant.components.mqtt.lock.MqttLock, homeassistant.components.matter.lock.MatterLock, homeassistant.components.loqed.lock.LoqedLock, homeassistant.components.kitchen_sink.lock.DemoLock, homeassistant.components.homematicip_cloud.lock.HomematicipDoorLockDrive, homeassistant.components.group.lock.LockGroup, homeassistant.components.esphome.lock.EsphomeLock, homeassistant.components.demo.lock.DemoLock, and homeassistant.components.august.lock.AugustLock.
Definition at line 258 of file __init__.py.
| None homeassistant.components.lock.LockEntity.async_registry_entry_updated | ( | self | ) |
Run when the entity registry entry has been updated.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 308 of file __init__.py.
| None homeassistant.components.lock.LockEntity.async_unlock | ( | self, | |
| **Any | kwargs | ||
| ) |
Unlock the lock.
Reimplemented in homeassistant.components.zha.lock.ZhaDoorLock, homeassistant.components.yolink.lock.YoLinkLockEntity, homeassistant.components.yalexs_ble.lock.YaleXSBLELock, homeassistant.components.yale_smart_alarm.lock.YaleDoorlock, homeassistant.components.yale.lock.YaleLock, homeassistant.components.wallbox.lock.WallboxLock, homeassistant.components.volvooncall.lock.VolvoLock, homeassistant.components.verisure.lock.VerisureDoorlock, homeassistant.components.unifiprotect.lock.ProtectLock, homeassistant.components.tessie.lock.TessieCableLockEntity, homeassistant.components.tessie.lock.TessieLockEntity, homeassistant.components.teslemetry.lock.TeslemetryCableLockEntity, homeassistant.components.teslemetry.lock.TeslemetryVehicleLockEntity, homeassistant.components.tesla_fleet.lock.TeslaFleetCableLockEntity, homeassistant.components.tesla_fleet.lock.TeslaFleetVehicleLockEntity, homeassistant.components.template.lock.TemplateLock, homeassistant.components.tedee.lock.TedeeLockEntity, homeassistant.components.switchbot_cloud.lock.SwitchBotCloudLock, homeassistant.components.switchbot.lock.SwitchBotLock, homeassistant.components.surepetcare.lock.SurePetcareLock, homeassistant.components.subaru.lock.SubaruLock, homeassistant.components.simplisafe.lock.SimpliSafeLock, homeassistant.components.schlage.lock.SchlageLockEntity, homeassistant.components.mqtt.lock.MqttLock, homeassistant.components.matter.lock.MatterLock, homeassistant.components.loqed.lock.LoqedLock, homeassistant.components.kitchen_sink.lock.DemoLock, homeassistant.components.keba.lock.KebaLock, homeassistant.components.isy994.lock.ISYLockProgramEntity, homeassistant.components.isy994.lock.ISYLockEntity, homeassistant.components.insteon.lock.InsteonLockEntity, homeassistant.components.homematicip_cloud.lock.HomematicipDoorLockDrive, homeassistant.components.homekit_controller.lock.HomeKitLock, homeassistant.components.group.lock.LockGroup, homeassistant.components.freedompro.lock.Device, homeassistant.components.esphome.lock.EsphomeLock, homeassistant.components.dormakaba_dkey.lock.DormakabaDkeyLock, homeassistant.components.demo.lock.DemoLock, homeassistant.components.bmw_connected_drive.lock.BMWLock, and homeassistant.components.august.lock.AugustLock.
Definition at line 245 of file __init__.py.
Last change triggered by.
Reimplemented in homeassistant.components.xiaomi_aqara.lock.XiaomiAqaraLock, homeassistant.components.verisure.lock.VerisureDoorlock, homeassistant.components.vera.lock.VeraLock, and homeassistant.components.loqed.lock.LoqedLock.
Definition at line 170 of file __init__.py.
Regex for code format or None if no code is required.
Reimplemented in homeassistant.components.verisure.lock.VerisureDoorlock, homeassistant.components.template.lock.TemplateLock, and homeassistant.components.matter.lock.MatterLock.
Definition at line 175 of file __init__.py.
Return a compiled code_format.
Definition at line 181 of file __init__.py.
Return true if the lock is jammed (incomplete locking).
Reimplemented in homeassistant.components.template.lock.TemplateLock, homeassistant.components.tedee.lock.TedeeLockEntity, homeassistant.components.loqed.lock.LoqedLock, homeassistant.components.homekit_controller.lock.HomeKitLock, homeassistant.components.esphome.lock.EsphomeLock, and homeassistant.components.demo.lock.DemoLock.
Definition at line 219 of file __init__.py.
Return true if the lock is locked.
Reimplemented in homeassistant.components.zwave_me.lock.ZWaveMeLock, homeassistant.components.zha.lock.ZhaDoorLock, homeassistant.components.yale_smart_alarm.lock.YaleDoorlock, homeassistant.components.xiaomi_aqara.lock.XiaomiAqaraLock, homeassistant.components.wallbox.lock.WallboxLock, homeassistant.components.volvooncall.lock.VolvoLock, homeassistant.components.verisure.lock.VerisureDoorlock, homeassistant.components.tessie.lock.TessieCableLockEntity, homeassistant.components.tessie.lock.TessieLockEntity, homeassistant.components.template.lock.TemplateLock, homeassistant.components.tedee.lock.TedeeLockEntity, homeassistant.components.starline.lock.StarlineLock, homeassistant.components.sesame.lock.SesameDevice, homeassistant.components.loqed.lock.LoqedLock, homeassistant.components.kiwi.lock.KiwiLock, homeassistant.components.kitchen_sink.lock.DemoLock, homeassistant.components.isy994.lock.ISYLockProgramEntity, homeassistant.components.isy994.lock.ISYLockEntity, homeassistant.components.insteon.lock.InsteonLockEntity, homeassistant.components.homematicip_cloud.lock.HomematicipDoorLockDrive, homeassistant.components.homematic.lock.HMLock, homeassistant.components.homekit_controller.lock.HomeKitLock, homeassistant.components.esphome.lock.EsphomeLock, homeassistant.components.demo.lock.DemoLock, and homeassistant.components.abode.lock.AbodeLock.
Definition at line 194 of file __init__.py.
Return true if the lock is locking.
Reimplemented in homeassistant.components.template.lock.TemplateLock, homeassistant.components.tedee.lock.TedeeLockEntity, homeassistant.components.loqed.lock.LoqedLock, homeassistant.components.homematicip_cloud.lock.HomematicipDoorLockDrive, homeassistant.components.homekit_controller.lock.HomeKitLock, homeassistant.components.esphome.lock.EsphomeLock, and homeassistant.components.demo.lock.DemoLock.
Definition at line 199 of file __init__.py.
Return true if the lock is open.
Reimplemented in homeassistant.components.yale_smart_alarm.lock.YaleDoorlock, homeassistant.components.template.lock.TemplateLock, homeassistant.components.tedee.lock.TedeeLockEntity, homeassistant.components.kitchen_sink.lock.DemoLock, and homeassistant.components.demo.lock.DemoLock.
Definition at line 209 of file __init__.py.
Return true if the lock is opening.
Reimplemented in homeassistant.components.tedee.lock.TedeeLockEntity, and homeassistant.components.demo.lock.DemoLock.
Definition at line 214 of file __init__.py.
Return true if the lock is unlocking.
Reimplemented in homeassistant.components.template.lock.TemplateLock, homeassistant.components.tedee.lock.TedeeLockEntity, homeassistant.components.loqed.lock.LoqedLock, homeassistant.components.homematicip_cloud.lock.HomematicipDoorLockDrive, homeassistant.components.homekit_controller.lock.HomeKitLock, homeassistant.components.esphome.lock.EsphomeLock, and homeassistant.components.demo.lock.DemoLock.
Definition at line 204 of file __init__.py.
| None homeassistant.components.lock.LockEntity.lock | ( | self, | |
| **Any | kwargs | ||
| ) |
Lock the lock.
Reimplemented in homeassistant.components.zwave_me.lock.ZWaveMeLock, homeassistant.components.vera.lock.VeraLock, homeassistant.components.starline.lock.StarlineLock, homeassistant.components.sesame.lock.SesameDevice, homeassistant.components.homematic.lock.HMLock, homeassistant.components.fibaro.lock.FibaroLock, and homeassistant.components.abode.lock.AbodeLock.
Definition at line 228 of file __init__.py.
| None homeassistant.components.lock.LockEntity.open | ( | self, | |
| **Any | kwargs | ||
| ) |
Open the door latch.
Reimplemented in homeassistant.components.homematic.lock.HMLock.
Definition at line 254 of file __init__.py.
Return the state.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 274 of file __init__.py.
Return the state attributes.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 264 of file __init__.py.
| LockEntityFeature homeassistant.components.lock.LockEntity.supported_features | ( | self | ) |
Return the list of supported features.
Reimplemented from homeassistant.helpers.entity.Entity.
Reimplemented in homeassistant.components.tedee.lock.TedeeLockWithLatchEntity.
Definition at line 291 of file __init__.py.
| None homeassistant.components.lock.LockEntity.unlock | ( | self, | |
| **Any | kwargs | ||
| ) |
Unlock the lock.
Reimplemented in homeassistant.components.zwave_me.lock.ZWaveMeLock, homeassistant.components.vera.lock.VeraLock, homeassistant.components.starline.lock.StarlineLock, homeassistant.components.sesame.lock.SesameDevice, homeassistant.components.kiwi.lock.KiwiLock, homeassistant.components.homematic.lock.HMLock, homeassistant.components.fibaro.lock.FibaroLock, and homeassistant.components.abode.lock.AbodeLock.
Definition at line 241 of file __init__.py.
|
private |
Definition at line 184 of file __init__.py.
|
private |
Definition at line 326 of file __init__.py.
|
static |
Definition at line 143 of file __init__.py.
|
static |
Definition at line 134 of file __init__.py.
|
static |
Definition at line 144 of file __init__.py.