9 ESP_LOGCONFIG(TAG,
"Xiaomi MHOC303");
10 LOG_SENSOR(
" ",
"Temperature", this->temperature_sensor_);
11 LOG_SENSOR(
" ",
"Humidity", this->humidity_sensor_);
12 LOG_SENSOR(
" ",
"Battery Level", this->battery_level_sensor_);
virtual void dump_child_config()
Called from the tracker's dump_config(); not dump_config() so Component listeners don't print twice.
void publish_result(const xiaomi_ble::XiaomiParseResult &res) override
ESPHOME_LOG_TAG(TAG, "xiaomi_mhoc303")
void publish_optional(E *entity, const optional< V > &value)
Publish value to entity when the entity is configured and the value is set.
optional< float > humidity
optional< float > battery_level
optional< float > temperature