7static const char *
const TAG =
"resistance";
10 LOG_SENSOR(
"",
"Resistance Sensor",
this);
12 ESP_LOGCONFIG(TAG,
" Resistor: %.2fΩ", this->
resistor_);
16 if (std::isnan(value)) {
39 ESP_LOGD(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.
Providing packet encoding functions for exchanging data with a remote host.