9 ESP_LOGCONFIG(TAG,
"Xiaomi CGD1");
11 LOG_SENSOR(
" ",
"Temperature", this->temperature_sensor_);
12 LOG_SENSOR(
" ",
"Humidity", this->humidity_sensor_);
13 LOG_SENSOR(
" ",
"Battery Level", this->battery_level_sensor_);
virtual void dump_config()
void dump_bindkey_(const char *tag) const
void publish_result(const xiaomi_ble::XiaomiParseResult &res) override
ESPHOME_LOG_TAG(TAG, "xiaomi_cgd1")
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