ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::Device Class Reference

#include <device.h>

Public Member Functions

void set_device_id (uint32_t device_id)
 
uint32_t get_device_id ()
 
void set_name (const char *name)
 
const char * get_name ()
 
void set_area_id (uint32_t area_id)
 
uint32_t get_area_id ()
 
void set_relation (DeviceRelation relation)
 
DeviceRelation get_relation () const
 
DeviceRelation get_relation () const
 
DeviceRelation get_relation () const
 

Protected Attributes

uint32_t device_id_ {}
 
uint32_t area_id_ {}
 
const char * name_ = ""
 
DeviceRelation relation_ {DeviceRelation::DEVICE_RELATION_VIA}
 

Detailed Description

Definition at line 17 of file device.h.

Member Function Documentation

◆ get_area_id()

uint32_t esphome::Device::get_area_id ( )
inline

Definition at line 24 of file device.h.

◆ get_device_id()

uint32_t esphome::Device::get_device_id ( )
inline

Definition at line 20 of file device.h.

◆ get_name()

const char * esphome::Device::get_name ( )
inline

Definition at line 22 of file device.h.

◆ get_relation() [1/3]

DeviceRelation esphome::Device::get_relation ( ) const
inline

Definition at line 28 of file device.h.

◆ get_relation() [2/3]

DeviceRelation esphome::Device::get_relation ( ) const
inline

Definition at line 30 of file device.h.

◆ get_relation() [3/3]

DeviceRelation esphome::Device::get_relation ( ) const
inline

Definition at line 32 of file device.h.

◆ set_area_id()

void esphome::Device::set_area_id ( uint32_t area_id)
inline

Definition at line 23 of file device.h.

◆ set_device_id()

void esphome::Device::set_device_id ( uint32_t device_id)
inline

Definition at line 19 of file device.h.

◆ set_name()

void esphome::Device::set_name ( const char * name)
inline

Definition at line 21 of file device.h.

◆ set_relation()

void esphome::Device::set_relation ( DeviceRelation relation)
inline

Definition at line 27 of file device.h.

Field Documentation

◆ area_id_

uint32_t esphome::Device::area_id_ {}
protected

Definition at line 37 of file device.h.

◆ device_id_

uint32_t esphome::Device::device_id_ {}
protected

Definition at line 36 of file device.h.

◆ name_

const char* esphome::Device::name_ = ""
protected

Definition at line 38 of file device.h.

◆ relation_

DeviceRelation esphome::Device::relation_ {DeviceRelation::DEVICE_RELATION_VIA}
protected

Definition at line 40 of file device.h.


The documentation for this class was generated from the following file: