ESPHome  2023.8.3
Public Member Functions | Protected Attributes
esphome::EntityBase_DeviceClass Class Reference

#include <entity_base.h>

Inheritance diagram for esphome::EntityBase_DeviceClass:
esphome::binary_sensor::BinarySensor esphome::button::Button esphome::cover::Cover esphome::number::NumberTraits esphome::sensor::Sensor esphome::switch_::Switch esphome::analog_threshold::AnalogThresholdBinarySensor esphome::binary_sensor::BinarySensorInitiallyOff esphome::cap1188::CAP1188Channel esphome::copy::CopyBinarySensor esphome::demo::DemoBinarySensor esphome::esp32_touch::ESP32TouchBinarySensor esphome::gpio::GPIOBinarySensor esphome::homeassistant::HomeassistantBinarySensor esphome::matrix_keypad::MatrixKeypadBinarySensor esphome::modbus_controller::ModbusBinarySensor esphome::mpr121::MPR121Channel esphome::pn532::PN532BinarySensor esphome::rc522::RC522BinarySensor esphome::status::StatusBinarySensor esphome::sx1509::SX1509BinarySensor esphome::template_::TemplateBinarySensor esphome::tm1637::TM1637Key esphome::tm1638::TM1638Key esphome::touchscreen::TouchscreenBinarySensor esphome::tt21100::TT21100Button esphome::ttp229_bsf::TTP229BSFChannel esphome::ttp229_lsf::TTP229Channel esphome::tuya::TuyaBinarySensor esphome::vbus::VBusCustomSubBSensor esphome::copy::CopyButton esphome::factory_reset::FactoryResetButton esphome::ld2410::QueryButton esphome::ld2410::ResetButton esphome::ld2410::RestartButton esphome::output::OutputButton esphome::restart::RestartButton esphome::safe_mode::SafeModeButton esphome::shutdown::ShutdownButton esphome::template_::TemplateButton esphome::wake_on_lan::WakeOnLanButton esphome::am43::Am43Component esphome::copy::CopyCover esphome::current_based::CurrentBasedCover esphome::demo::DemoCover esphome::endstop::EndstopCover esphome::feedback::FeedbackCover esphome::template_::TemplateCover esphome::time_based::TimeBasedCover esphome::tuya::TuyaCover esphome::a01nyub::A01nyubComponent esphome::absolute_humidity::AbsoluteHumidityComponent esphome::adc128s102::ADC128S102Sensor esphome::adc::ADCSensor esphome::ads1115::ADS1115Sensor esphome::bh1750::BH1750Sensor esphome::binary_sensor_map::BinarySensorMap esphome::ble_client::BLEClientRSSISensor esphome::ble_client::BLESensor esphome::ble_rssi::BLERSSISensor esphome::cd74hc4067::CD74HC4067Sensor esphome::copy::CopySensor esphome::ct_clamp::CTClampSensor esphome::dallas::DallasTemperatureSensor esphome::demo::DemoSensor esphome::duty_cycle::DutyCycleSensor esphome::duty_time_sensor::DutyTimeSensor esphome::esp32_hall::ESP32HallSensor esphome::ezo::EZOSensor esphome::fs3000::FS3000Component esphome::homeassistant::HomeassistantSensor esphome::hrxl_maxsonar_wr::HrxlMaxsonarWrComponent esphome::hx711::HX711Sensor esphome::integration::IntegrationSensor esphome::internal_temperature::InternalTemperatureSensor esphome::kalman_combinator::KalmanCombinatorComponent esphome::max31855::MAX31855Sensor esphome::max31856::MAX31856Sensor esphome::max31865::MAX31865Sensor esphome::max44009::MAX44009Sensor esphome::max6675::MAX6675Sensor esphome::mcp3008::MCP3008Sensor esphome::mcp3204::MCP3204Sensor esphome::mcp9808::MCP9808Sensor esphome::modbus_controller::ModbusSensor esphome::mqtt_subscribe::MQTTSubscribeSensor esphome::nextion::NextionSensor esphome::ntc::NTC esphome::pid::PIDClimateSensor esphome::pulse_counter::PulseCounterSensor esphome::pulse_meter::PulseMeterSensor esphome::pulse_width::PulseWidthSensor esphome::resistance::ResistanceSensor esphome::rotary_encoder::RotaryEncoderSensor esphome::sdp3x::SDP3XComponent esphome::sen21231_sensor::Sen21231Sensor esphome::sgp4x::SGP4xComponent esphome::sml::SmlSensor esphome::sts3x::STS3XComponent esphome::sun::SunSensor esphome::tee501::TEE501Component esphome::teleinfo::TeleInfoSensor esphome::template_::TemplateSensor esphome::tmp102::TMP102Component esphome::tmp1075::TMP1075Sensor esphome::tmp117::TMP117Component esphome::tof10120::TOF10120Sensor esphome::total_daily_energy::TotalDailyEnergy esphome::tsl2561::TSL2561Sensor esphome::tuya::TuyaSensor esphome::ultrasonic::UltrasonicSensorComponent esphome::uptime::UptimeSensor esphome::vbus::VBusCustomSubSensor esphome::vl53l0x::VL53L0XSensor esphome::wifi_signal::WiFiSignalSensor esphome::zio_ultrasonic::ZioUltrasonicComponent esphome::ble_client::BLEClientSwitch esphome::copy::CopySwitch esphome::demo::DemoSwitch esphome::factory_reset::FactoryResetSwitch esphome::gpio::GPIOSwitch esphome::ld2410::BluetoothSwitch esphome::ld2410::EngineeringModeSwitch esphome::modbus_controller::ModbusSwitch esphome::nextion::NextionSwitch esphome::output::OutputSwitch esphome::pipsolar::PipsolarSwitch esphome::restart::RestartSwitch esphome::safe_mode::SafeModeSwitch esphome::shutdown::ShutdownSwitch esphome::sprinkler::SprinklerControllerSwitch esphome::template_::TemplateSwitch esphome::tm1638::TM1638SwitchLed esphome::tuya::TuyaSwitch esphome::uart::UARTSwitch

Public Member Functions

std::string get_device_class ()
 Get the device class, using the manual override if set. More...
 
void set_device_class (const char *device_class)
 Manually set the device class. More...
 

Protected Attributes

const char * device_class_ {nullptr}
 Device class override. More...
 

Detailed Description

Definition at line 66 of file entity_base.h.

Member Function Documentation

◆ get_device_class()

std::string esphome::EntityBase_DeviceClass::get_device_class ( )

Get the device class, using the manual override if set.

Definition at line 78 of file entity_base.cpp.

◆ set_device_class()

void esphome::EntityBase_DeviceClass::set_device_class ( const char *  device_class)

Manually set the device class.

Definition at line 85 of file entity_base.cpp.

Field Documentation

◆ device_class_

const char* esphome::EntityBase_DeviceClass::device_class_ {nullptr}
protected

Device class override.

Definition at line 74 of file entity_base.h.


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