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Ω", LOG_STR_ARG(this->
get_log_name()), res);
const LogString * get_log_name() const
Get the name for a "%s" log argument (LOG_STR_ARG).
ResistanceConfiguration configuration_
void process_(float value)
void dump_config() override
void publish_state(float state)
Publish a new state to the front-end.
ESPHOME_LOG_TAG(TAG, "resistance")