mirror of
https://github.com/esphome/esphome.git
synced 2025-03-27 21:18:18 +00:00
21 lines
424 B
C++
21 lines
424 B
C++
#include "xiaomi_lywsd02.h"
|
|
#include "esphome/core/log.h"
|
|
|
|
#ifdef ARDUINO_ARCH_ESP32
|
|
|
|
namespace esphome {
|
|
namespace xiaomi_lywsd02 {
|
|
|
|
static const char *TAG = "xiaomi_lywsd02";
|
|
|
|
void XiaomiLYWSD02::dump_config() {
|
|
ESP_LOGCONFIG(TAG, "Xiaomi LYWSD02");
|
|
LOG_SENSOR(" ", "Temperature", this->temperature_);
|
|
LOG_SENSOR(" ", "Humidity", this->humidity_);
|
|
}
|
|
|
|
} // namespace xiaomi_lywsd02
|
|
} // namespace esphome
|
|
|
|
#endif
|