|
Home IO Control
ESPHome add-on for IO-Homecontrol devices
|
The configured 1W controller identities, in YAML declaration order. More...
#include <oneway_controller.h>
Public Member Functions | |
| void | add (const OneWayControllerIdentity &identity) |
| Add a configured identity. | |
| const OneWayControllerIdentity * | get (const std::string &id) const |
| Look up an identity by its YAML handle. | |
| const std::vector< OneWayControllerIdentity > & | all () const |
| All configured identities, in declaration order. | |
| bool | empty () const |
| Whether any identity is configured. | |
The configured 1W controller identities, in YAML declaration order.
Lookup is by id and linear: a hub has a handful of identities, not hundreds, and keeping insertion order makes boot logging read the same as the YAML that produced it.
Definition at line 226 of file oneway_controller.h.
|
inline |
Add a configured identity.
Called from generated code at setup.
| identity | Fully-resolved identity (key inherited or explicit, address configured or derived). |
Definition at line 230 of file oneway_controller.h.
|
inlinenodiscard |
All configured identities, in declaration order.
Definition at line 244 of file oneway_controller.h.
|
inlinenodiscard |
Whether any identity is configured.
Definition at line 247 of file oneway_controller.h.
|
inlinenodiscard |
Look up an identity by its YAML handle.
| id | Handle to find. |
Definition at line 235 of file oneway_controller.h.