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

Per-hub device table, update-callback fan-out, and linked-remote map. More...

#include "proto_device_model.h"
#include <functional>
#include <map>
#include <string>
#include <vector>
Include dependency graph for device_registry.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::DeviceConfig
 YAML-declared device metadata for registration; defaults match an undeclared device. More...
class  esphome::home_io_control::DeviceRegistry
 Owns the per-hub device table, update callbacks, and linked-remote associations. More...

Namespaces

namespace  esphome
namespace  esphome::home_io_control

Typedefs

using esphome::home_io_control::DeviceUpdateCallback = std::function<void(const std::string &device_id, const IoDevice &device)>
 Callback type invoked when a device's state changes.

Detailed Description

Per-hub device table, update-callback fan-out, and linked-remote map.

DeviceRegistry owns the per-hub device table, the update-callback list, and the linked-remote map. Keeping them in one class lets the polling loop, status engine, and pairing flow share a single, testable source of truth without knowing about each other.

Definition in file device_registry.h.