|
Home IO Control
ESPHome add-on for IO-Homecontrol devices
|
Hub-level switch entity: ON arms the key-extraction responder for 10 minutes, OFF disarms it immediately. More...
#include <platform_accept_foreign_pairing_switch.h>
Public Member Functions | |
| void | set_parent (IOHomeControlComponent *parent) |
| Set the parent controller component. | |
| void | setup () override |
| Register the armed-state callback so this entity mirrors the hub's own disarm events. | |
| void | dump_config () override |
| Dump configuration to the log. | |
| float | get_setup_priority () const override |
| Get setup priority so the parent hub is available first. | |
Protected Member Functions | |
| void | write_state (bool state) override |
| Arm or disarm the hub's key-extraction responder. | |
Protected Attributes | |
| IOHomeControlComponent * | parent_ {nullptr} |
Hub-level switch entity: ON arms the key-extraction responder for 10 minutes, OFF disarms it immediately.
Publishes its own state changes when the hub disarms itself (successful extraction or auto-off timeout), not just on a user-initiated toggle.
Definition at line 30 of file platform_accept_foreign_pairing_switch.h.
|
override |
Dump configuration to the log.
Definition at line 26 of file platform_accept_foreign_pairing_switch.cpp.
|
inlinenodiscardoverride |
Get setup priority so the parent hub is available first.
Definition at line 44 of file platform_accept_foreign_pairing_switch.h.
|
inline |
Set the parent controller component.
| parent | Pointer to the IOHomeControlComponent instance. |
Definition at line 34 of file platform_accept_foreign_pairing_switch.h.
|
override |
Register the armed-state callback so this entity mirrors the hub's own disarm events.
Definition at line 14 of file platform_accept_foreign_pairing_switch.cpp.
|
overrideprotected |
Arm or disarm the hub's key-extraction responder.
| state | Desired switch state. |
Definition at line 20 of file platform_accept_foreign_pairing_switch.cpp.
|
protected |
Definition at line 51 of file platform_accept_foreign_pairing_switch.h.