1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +00:00

Add support for Xiaomi Mi Scale V1 and V2

https://github.com/esphome/feature-requests/issues/209

@tsunglung have all the rights and effort for this.
This commit is contained in:
tiagofreire-pt 2019-08-08 12:18:01 +01:00 committed by GitHub
parent 11e88019c2
commit 43927ed2c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,19 @@
#include "xiaomi_miscale.h"
#include "esphome/core/log.h"
#ifdef ARDUINO_ARCH_ESP32
namespace esphome {
namespace xiaomi_miscale {
static const char *TAG = "xiaomi_miscale";
void XiaomiMiscale::dump_config() {
ESP_LOGCONFIG(TAG, "Xiaomi Mijia");
LOG_SENSOR(" ", "Measured Weight", this->weight_);
}
} // namespace xiaomi_miscale
} // namespace esphome
#endif