70 void api_rename_device(
const std::string &device_id,
const std::string &new_name);
213 void api_probe_device(
const std::string &device_id,
const std::string &probe,
const std::string &index);
224 void api_probe_sweep(
const std::string &device_id,
const std::string &probe,
const std::string &first_index,
225 const std::string &last_index);
234 const std::string &first_index,
const std::string &last_index);
237 void api_heating_control(
const std::string &device_id,
const std::string &function,
const std::string &value);
262 const std::string &value);
298 bool send_authenticated_request_(
const IoFrame &request,
IoFrame &response,
const char *action_verb,
301 const uint8_t *node_id_;
302 const uint8_t *system_key_;
306 const bool *initialized_;
Owns the per-hub device table, update callbacks, and linked-remote associations.
Sends diagnostic probe frames to already-paired devices and reports the raw replies.
The main IO-Homecontrol component.
ManagementActions(const ManagementActions &)=delete
Non-copyable — stores references and pointers into hub member addresses.
void api_probe_device(const std::string &device_id, const std::string &probe, const std::string &index)
Native API callback: run a single diagnostic probe and publish the result as a HA event.
void register_actions()
Register all management actions (rename, identify, force-open, ...) with ESPHome's native API server.
void api_rename_device(const std::string &device_id, const std::string &new_name)
Native API callback: rename a device and publish the result as a HA event.
void api_oneway_set_position(const std::string &controller_id, const std::string &position)
Native API callback: queue a 1W position for a controller identity.
ManagementActionResult scan_paired_devices()
Broadcast a roll-call and report every device that answers.
ManagementActionResult probe_device(const std::string &device_id, const std::string &probe, const std::string &index)
Send a single diagnostic probe frame to a paired device; delegates to DiagnosticProbes::probe_device(...
ManagementActionResult rename_device(const std::string &device_id, const std::string &new_name)
Rename a registered device and verify the result by reading the name back.
void api_oneway_remove_controller(const std::string &controller_id)
Native API callback: queue a standalone 1W un-enrollment (remove-controller, CMD 0x39) for a controll...
void api_heating_control(const std::string &device_id, const std::string &function, const std::string &value)
Native API callback: run a heating/climate function and publish the result as a HA event.
void publish_result(const ManagementActionResult &result)
Publish a management result as one or more structured log lines (one call per line of result....
void api_force_open_device(const std::string &device_id)
Native API callback: force-open a device and publish the result as a HA event.
ManagementActions(const uint8_t *node_id, const uint8_t *system_key, const TuningConfig *tuning, ExchangeEngine &engine, DeviceRegistry ®istry, const bool *initialized, IOHomeControlComponent *hub)
Construct with all required collaborators.
ManagementActionResult identify_device(const std::string &device_id)
Trigger a registered device's physical identify (brief jog/flash).
ManagementActionResult force_open_device(const std::string &device_id)
Move a registered cover device to fully open at elevated priority, intended to bypass wind/rain soft ...
void api_probe_sweep(const std::string &device_id, const std::string &probe, const std::string &first_index, const std::string &last_index)
Native API callback: run a bounded probe sweep and publish the result as a HA event.
void api_scan_paired_devices()
Native API callback: run a roll-call scan and publish the result as a HA event.
void api_identify_device(const std::string &device_id)
Native API callback: trigger a device's physical identify and publish the result as a HA event.
ManagementActionResult heating_control(const std::string &device_id, const std::string &function, const std::string &value)
Send one 2W heating/climate function (CMD_WRITE_PRIVATE 0x20) to a registered climate device.
ManagementActions & operator=(const ManagementActions &)=delete
ManagementActionResult probe_sweep(const std::string &device_id, const std::string &probe, const std::string &first_index, const std::string &last_index)
Walk a bounded index range, one probe per index; delegates to DiagnosticProbes::probe_sweep().
Per-hub device table, update-callback fan-out, and linked-remote map.
Opt-in diagnostic probes: single frames and bounded sweeps for protocol research.
Self-contained authenticated exchange engine for IO-Homecontrol 2W.
Result type and argument/result helpers shared by ManagementActions and DiagnosticProbes.
IO-Homecontrol command IDs, result codes and protocol enumerations.
Runtime state of a paired IO‑Homecontrol device.
Parsed IO‑Homecontrol frame (CTRL0/1 + addresses + command + data).
Result of a hub-level management action such as rename.
All runtime tunable parameters for pairing and radio diagnostics.