Lock entity for IO-Homecontrol lock devices.
More...
#include <platform_lock.h>
|
| void | control (const lock::LockCall &call) override |
| | Apply a Home Assistant lock control request.
|
| void | on_device_update_ (const std::string &id, const IoDevice &dev) |
| | Handle inbound device status updates.
|
Lock entity for IO-Homecontrol lock devices.
Definition at line 24 of file platform_lock.h.
◆ control()
| void esphome::home_io_control::IOHomeLock::control |
( |
const lock::LockCall & | call | ) |
|
|
overrideprotected |
Apply a Home Assistant lock control request.
- Parameters
-
| call | Desired state change. |
Definition at line 31 of file platform_lock.cpp.
◆ dump_config()
| void esphome::home_io_control::IOHomeLock::dump_config |
( |
| ) |
|
|
override |
◆ get_setup_priority()
| float esphome::home_io_control::IOHomeLock::get_setup_priority |
( |
| ) |
const |
|
inlinenodiscardoverride |
Get setup priority (DATA).
- Returns
- setup_priority::DATA.
Definition at line 32 of file platform_lock.h.
◆ on_device_update_()
| void esphome::home_io_control::IOHomeLock::on_device_update_ |
( |
const std::string & | id, |
|
|
const IoDevice & | dev ) |
|
protected |
Handle inbound device status updates.
- Parameters
-
| id | Device ID. |
| dev | Updated device state. |
Definition at line 52 of file platform_lock.cpp.
◆ set_device_id()
| void esphome::home_io_control::IOHomeLock::set_device_id |
( |
const std::string & | id | ) |
|
|
inline |
◆ set_device_type()
| void esphome::home_io_control::IOHomeLock::set_device_type |
( |
DeviceType | type | ) |
|
|
inline |
Set the declared device type (from YAML).
- Parameters
-
Definition at line 42 of file platform_lock.h.
◆ set_parent()
◆ set_status_poll_interval()
| void esphome::home_io_control::IOHomeLock::set_status_poll_interval |
( |
uint32_t | poll_interval_ms | ) |
|
|
inline |
Configure bounded follow-up polling while a state change is expected.
- Parameters
-
| poll_interval_ms | Poll interval in milliseconds; zero keeps the default single settle poll only. |
Definition at line 48 of file platform_lock.h.
◆ set_subtype()
| void esphome::home_io_control::IOHomeLock::set_subtype |
( |
uint8_t | subtype | ) |
|
|
inline |
Set the declared device subtype (from YAML).
- Parameters
-
Definition at line 45 of file platform_lock.h.
◆ setup()
| void esphome::home_io_control::IOHomeLock::setup |
( |
| ) |
|
|
override |
Initialize the lock entity and register it with the shared hub.
Definition at line 15 of file platform_lock.cpp.
◆ device_id_
| std::string esphome::home_io_control::IOHomeLock::device_id_ |
|
protected |
◆ device_type_
◆ parent_
◆ status_poll_interval_ms_
| uint32_t esphome::home_io_control::IOHomeLock::status_poll_interval_ms_ {0} |
|
protected |
◆ subtype_
| uint8_t esphome::home_io_control::IOHomeLock::subtype_ {0} |
|
protected |
The documentation for this class was generated from the following files: