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

Hub-level management operations exposed as Home Assistant actions. More...

#include "exchange_engine.h"
#include "device_registry.h"
#include <cstdint>
#include <string>
Include dependency graph for management_actions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  esphome::home_io_control::ManagementActionResult
 Result of a hub-level management action such as rename. More...
class  esphome::home_io_control::ManagementActions
 Encapsulates hub-level management operations exposed as Home Assistant actions. More...

Namespaces

namespace  esphome
namespace  esphome::home_io_control

Detailed Description

Hub-level management operations exposed as Home Assistant actions.

ManagementActions owns the family of advanced, non-entity hub actions (device rename, identify, force-open, ...) and the native API registration that wires them into Home Assistant. Every action is registered through one data-driven API service descriptor (detail::ManagementServiceDescriptor); adding a new action does not require a new descriptor class. The descriptor holds a ManagementActions* and calls only public methods on it, so no friend declarations into the hub are needed.

IOHomeControlComponent exposes this collaborator through thin protected wrappers (api_rename_device_, api_identify_device_, api_force_open_device_, api_scan_paired_devices_, register_management_actions_).

Definition in file management_actions.h.