12 namespace xiaomi_miscale {
25 void dump_config()
override;
35 bool clear_impedance_{
false};
38 bool parse_message_(
const std::vector<uint8_t> &message,
ParseResult &result);
39 bool parse_message_v1_(
const std::vector<uint8_t> &message,
ParseResult &result);
40 bool parse_message_v2_(
const std::vector<uint8_t> &message,
ParseResult &result);
const float DATA
For components that import data from directly connected sensors like DHT.
void set_address(uint64_t address)
optional< float > impedance
void set_clear_impedance(bool clear_impedance)
void set_weight(sensor::Sensor *weight)
Implementation of SPI Controller mode.
float get_setup_priority() const override
Base-class for all sensors.
void set_impedance(sensor::Sensor *impedance)