13#include "esphome/core/component.h"
14#include "esphome/components/switch/switch.h"
24 void setup()
override;
The main IO-Homecontrol component.
Binary switch entity for IO‑Homecontrol on/off devices.
IOHomeControlComponent * parent_
void set_parent(IOHomeControlComponent *parent)
Set parent controller.
uint32_t status_poll_interval_ms_
float get_setup_priority() const override
Get setup priority (DATA).
void set_subtype(uint8_t subtype)
Set the declared device subtype (from YAML).
void dump_config() override
Dump configuration to log.
void on_device_update_(const std::string &id, const IoDevice &dev)
Callback when device state changes (e.g., from a remote).
void set_status_poll_interval(uint32_t poll_interval_ms)
Configure bounded follow-up polling while a state change is expected.
void set_device_type(DeviceType type)
Set the declared device type (from YAML).
void set_device_id(const std::string &id)
Set device ID from YAML.
void write_state(bool state) override
Write state change to the device.
void setup() override
Initialize the switch entity.
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.