esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
Public Attributes | List of all members
esphome::api::SensorInfo Struct Reference

Static description of a sensor entity. More...

#include <sensor.hpp>

Inheritance diagram for esphome::api::SensorInfo:
Inheritance graph
[legend]
Collaboration diagram for esphome::api::SensorInfo:
Collaboration graph
[legend]

Public Attributes

std::string unit_of_measurement
 
std::int32_t accuracy_decimals = 0
 
bool force_update = false
 
std::string device_class
 
SensorStateClass state_class = SensorStateClass::None
 
- Public Attributes inherited from esphome::api::EntityInfo
std::uint32_t key = 0
 Stable per-entity identifier used to correlate state and command messages.
 
std::string object_id
 
std::string name
 
std::string icon
 
bool disabled_by_default = false
 
EntityCategory entity_category = EntityCategory::None
 
std::uint32_t device_id = 0
 Sub-device id (0 = the root device) when the device exposes sub-devices.
 

Detailed Description

Static description of a sensor entity.

Member Data Documentation

◆ accuracy_decimals

std::int32_t esphome::api::SensorInfo::accuracy_decimals = 0

◆ device_class

std::string esphome::api::SensorInfo::device_class

◆ force_update

bool esphome::api::SensorInfo::force_update = false

◆ state_class

SensorStateClass esphome::api::SensorInfo::state_class = SensorStateClass::None

◆ unit_of_measurement

std::string esphome::api::SensorInfo::unit_of_measurement

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