ESPHome  2024.4.0
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::text_sensor::TextSensor esphome::analog_threshold::AnalogThresholdBinarySensor esphome::binary_sensor::BinarySensorInitiallyOff esphome::cap1188::CAP1188Channel esphome::copy::CopyBinarySensor esphome::cst816::CST816Button esphome::demo::DemoBinarySensor esphome::esp32_touch::ESP32TouchBinarySensor esphome::gpio::GPIOBinarySensor esphome::gt911::GT911Button esphome::homeassistant::HomeassistantBinarySensor esphome::ld2420::LD2420BinarySensor esphome::matrix_keypad::MatrixKeypadBinarySensor esphome::modbus_controller::ModbusBinarySensor esphome::mpr121::MPR121Channel esphome::nfc::NfcTagBinarySensor esphome::pn532::PN532BinarySensor esphome::qwiic_pir::QwiicPIRComponent 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::ld2420::LD2420ApplyConfigButton esphome::ld2420::LD2420FactoryResetButton esphome::ld2420::LD2420RestartModuleButton esphome::ld2420::LD2420RevertConfigButton esphome::micronova::MicroNovaButton esphome::output::OutputButton esphome::restart::RestartButton esphome::safe_mode::SafeModeButton esphome::seeed_mr24hpc1::CustomSetEndButton esphome::seeed_mr24hpc1::RestartButton esphome::shutdown::ShutdownButton esphome::template_::TemplateButton esphome::uart::UARTButton 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::he60r::HE60rCover esphome::template_::TemplateCover esphome::time_based::TimeBasedCover esphome::tuya::TuyaCover esphome::a01nyub::A01nyubComponent esphome::a02yyuw::A02yyuwComponent esphome::absolute_humidity::AbsoluteHumidityComponent esphome::adc128s102::ADC128S102Sensor esphome::adc::ADCSensor esphome::ade7953_base::ADE7953 esphome::ads1115::ADS1115Sensor esphome::ads1118::ADS1118Sensor esphome::as5600::AS5600Sensor esphome::bh1750::BH1750Sensor esphome::binary_sensor_map::BinarySensorMap esphome::ble_client::BLEClientRSSISensor esphome::ble_client::BLESensor esphome::ble_rssi::BLERSSISensor esphome::cd74hc4067::CD74HC4067Sensor esphome::combination::CombinationComponent esphome::copy::CopySensor esphome::ct_clamp::CTClampSensor esphome::dallas::DallasTemperatureSensor esphome::demo::DemoSensor esphome::duty_cycle::DutyCycleSensor esphome::duty_time_sensor::DutyTimeSensor esphome::ens160::ENS160Component 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::jsn_sr04t::Jsnsr04tComponent esphome::ld2420::LD2420Sensor 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::micronova::MicroNovaSensor 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::sen0321_sensor::Sen0321Sensor 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::uponor_smatrix::UponorSmatrixSensor esphome::uptime::UptimeSensor esphome::vbus::VBusCustomSubSensor esphome::veml3235::VEML3235Sensor esphome::vl53l0x::VL53L0XSensor esphome::wifi_signal::WiFiSignalSensor esphome::xgzp68xx::XGZP68XXComponent esphome::zio_ultrasonic::ZioUltrasonicComponent esphome::at581x::RFSwitch esphome::ble_client::BLEClientSwitch esphome::copy::CopySwitch esphome::demo::DemoSwitch esphome::dfrobot_sen0395::DfrobotSen0395Switch esphome::factory_reset::FactoryResetSwitch esphome::gpio::GPIOSwitch esphome::ld2410::BluetoothSwitch esphome::ld2410::EngineeringModeSwitch esphome::micronova::MicroNovaSwitch esphome::modbus_controller::ModbusSwitch esphome::nextion::NextionSwitch esphome::output::OutputSwitch esphome::pipsolar::PipsolarSwitch esphome::restart::RestartSwitch esphome::safe_mode::SafeModeSwitch esphome::seeed_mr24hpc1::UnderlyOpenFunctionSwitch esphome::shutdown::ShutdownSwitch esphome::sprinkler::SprinklerControllerSwitch esphome::template_::TemplateSwitch esphome::tm1638::TM1638SwitchLed esphome::tuya::TuyaSwitch esphome::uart::UARTSwitch esphome::ble_client::BLETextSensor esphome::ble_scanner::BLEScanner esphome::copy::CopyTextSensor esphome::demo::DemoTextSensor esphome::ethernet_info::IPAddressEthernetInfo esphome::homeassistant::HomeassistantTextSensor esphome::ld2420::LD2420TextSensor esphome::micronova::MicroNovaTextSensor esphome::modbus_controller::ModbusTextSensor esphome::mqtt_subscribe::MQTTSubscribeTextSensor esphome::nextion::NextionTextSensor esphome::sml::SmlTextSensor esphome::sun::SunTextSensor esphome::teleinfo::TeleInfoTextSensor esphome::template_::TemplateTextSensor esphome::tuya::TuyaTextSensor esphome::version::VersionTextSensor esphome::wifi_info::BSSIDWiFiInfo esphome::wifi_info::DNSAddressWifiInfo esphome::wifi_info::IPAddressWiFiInfo esphome::wifi_info::MacAddressWifiInfo esphome::wifi_info::ScanResultsWiFiInfo esphome::wifi_info::SSIDWiFiInfo esphome::wl_134::Wl134Component

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: