ESPHome  2022.5.1
xiaomi_hhccjcy01.h
Go to the documentation of this file.
1 #pragma once
2 
7 
8 #ifdef USE_ESP32
9 
10 namespace esphome {
11 namespace xiaomi_hhccjcy01 {
12 
14  public:
15  void set_address(uint64_t address) { address_ = address; }
16 
17  bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override;
18 
19  void dump_config() override;
20  float get_setup_priority() const override { return setup_priority::DATA; }
22  void set_moisture(sensor::Sensor *moisture) { moisture_ = moisture; }
23  void set_conductivity(sensor::Sensor *conductivity) { conductivity_ = conductivity; }
24  void set_illuminance(sensor::Sensor *illuminance) { illuminance_ = illuminance; }
25  void set_battery_level(sensor::Sensor *battery_level) { battery_level_ = battery_level; }
26 
27  protected:
28  uint64_t address_;
34 };
35 
36 } // namespace xiaomi_hhccjcy01
37 } // namespace esphome
38 
39 #endif
const float DATA
For components that import data from directly connected sensors like DHT.
Definition: component.cpp:18
void set_battery_level(sensor::Sensor *battery_level)
void set_conductivity(sensor::Sensor *conductivity)
float temperature
Definition: qmp6988.h:71
void set_moisture(sensor::Sensor *moisture)
Definition: a4988.cpp:4
Base-class for all sensors.
Definition: sensor.h:47
void set_illuminance(sensor::Sensor *illuminance)
bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override
void set_temperature(sensor::Sensor *temperature)