25#if defined(USE_DEVICE_RELATION)
29#elif defined(USE_DEVICE_RELATION_ALL_CHILD)
39#ifdef USE_DEVICE_RELATION
void set_relation(DeviceRelation relation)
DeviceRelation get_relation() const
void set_device_id(uint32_t device_id)
void set_name(const char *name)
void set_area_id(uint32_t area_id)
DeviceRelation
How a sub-device relates to the node that exposes it. Values match the API's DeviceRelation enum.
@ DEVICE_RELATION_VIA
A separate physical device reached through this node (for example over RF, UART or ESP-NOW).
@ DEVICE_RELATION_CHILD
A logical part of this node (for example one zone of a multi-zone controller).