6static const char *
const TAG =
"resistance";
9 LOG_SENSOR(
"",
"Resistance Sensor",
this);
11 " Configuration: %s\n"
13 " Reference Voltage: %.1fV",
18 if (std::isnan(value)) {
41 ESP_LOGV(TAG,
"'%s' - Resistance %.1fΩ", this->
name_.
c_str(), res);
constexpr const char * c_str() const
ResistanceConfiguration configuration_
void process_(float value)
void dump_config() override
void publish_state(float state)
Publish a new state to the front-end.