Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches
platform_accept_foreign_pairing_switch.h File Reference

Hub-level switch that arms/disarms the "Accept Foreign Pairing" (key-extraction) responder. More...

#include "esphome/components/switch/switch.h"
#include "esphome/core/component.h"
#include "hub_core.h"
Include dependency graph for platform_accept_foreign_pairing_switch.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  esphome::home_io_control::IOHomeAcceptForeignPairingSwitch
 Hub-level switch entity: ON arms the key-extraction responder for 10 minutes, OFF disarms it immediately. More...

Namespaces

namespace  esphome
namespace  esphome::home_io_control

Detailed Description

Hub-level switch that arms/disarms the "Accept Foreign Pairing" (key-extraction) responder.

Unlike IOHomeSwitch (platform_switch.h), this entity is hub-level, not device-bound — it has no io_device_id and isn't declared through a switch: platform entry at all. It is created dynamically from home_io_control.accept_foreign_pairing: true (see __init__.py's _create_accept_foreign_pairing_switch()), the same way tuning: {ui_controls: true} dynamically creates its number/select entities, and bound directly to the hub instance being built (set_parent() called with that same object). See hub_key_extraction.cpp for what arming actually does.

Note
Hardware-confirmed on real RF hardware, but not yet against a third-party hub — see hub_key_extraction.cpp.

Definition in file platform_accept_foreign_pairing_switch.h.