|
Home IO Control
ESPHome add-on for IO-Homecontrol devices
|
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"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 |
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.
Definition in file platform_accept_foreign_pairing_switch.h.