Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches
esphome::home_io_control::IOHomeAcceptForeignPairingSwitch Class Reference

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>

Inheritance diagram for esphome::home_io_control::IOHomeAcceptForeignPairingSwitch:
Collaboration diagram for esphome::home_io_control::IOHomeAcceptForeignPairingSwitch:

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

IOHomeControlComponentparent_ {nullptr}

Detailed Description

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.

Member Function Documentation

◆ dump_config()

void esphome::home_io_control::IOHomeAcceptForeignPairingSwitch::dump_config ( )
override

Dump configuration to the log.

Definition at line 26 of file platform_accept_foreign_pairing_switch.cpp.

◆ get_setup_priority()

float esphome::home_io_control::IOHomeAcceptForeignPairingSwitch::get_setup_priority ( ) const
inlinenodiscardoverride

Get setup priority so the parent hub is available first.

Returns
setup_priority::DATA.

Definition at line 44 of file platform_accept_foreign_pairing_switch.h.

◆ set_parent()

void esphome::home_io_control::IOHomeAcceptForeignPairingSwitch::set_parent ( IOHomeControlComponent * parent)
inline

Set the parent controller component.

Parameters
parentPointer to the IOHomeControlComponent instance.

Definition at line 34 of file platform_accept_foreign_pairing_switch.h.

◆ setup()

void esphome::home_io_control::IOHomeAcceptForeignPairingSwitch::setup ( )
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.

◆ write_state()

void esphome::home_io_control::IOHomeAcceptForeignPairingSwitch::write_state ( bool state)
overrideprotected

Arm or disarm the hub's key-extraction responder.

Parameters
stateDesired switch state.

Definition at line 20 of file platform_accept_foreign_pairing_switch.cpp.

Member Data Documentation

◆ parent_

IOHomeControlComponent* esphome::home_io_control::IOHomeAcceptForeignPairingSwitch::parent_ {nullptr}
protected

Definition at line 51 of file platform_accept_foreign_pairing_switch.h.


The documentation for this class was generated from the following files: