15#include "esphome/components/lock/lock.h"
16#include "esphome/core/component.h"
27 void setup()
override;
53 void control(
const lock::LockCall &call)
override;
The main IO-Homecontrol component.
Lock entity for IO-Homecontrol lock devices.
void set_device_type(DeviceType type)
Set the declared device type (from YAML).
void setup() override
Initialize the lock entity and register it with the shared hub.
void on_device_update_(const std::string &id, const IoDevice &dev)
Handle inbound device status updates.
IOHomeControlComponent * parent_
float get_setup_priority() const override
Get setup priority (DATA).
void set_status_poll_interval(uint32_t poll_interval_ms)
Configure bounded follow-up polling while a state change is expected.
void set_device_id(const std::string &id)
Set device ID from YAML.
void set_parent(IOHomeControlComponent *parent)
Set parent controller.
uint32_t status_poll_interval_ms_
void set_subtype(uint8_t subtype)
Set the declared device subtype (from YAML).
void control(const lock::LockCall &call) override
Apply a Home Assistant lock control request.
void dump_config() override
Dump configuration to the log.
IO-Homecontrol ESPHome component — protocol controller.
DeviceType
Device type identifiers reported by IO‑Homecontrol products.
@ UNKNOWN
Unknown/unspecified device.
Runtime state of a paired IO‑Homecontrol device.