ESPHome  2024.12.2
xiaomi_hhccpot002.h
Go to the documentation of this file.
1 #pragma once
2 
7 
8 #ifdef USE_ESP32
9 
10 namespace esphome {
11 namespace xiaomi_hhccpot002 {
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; }
21  void set_moisture(sensor::Sensor *moisture) { moisture_ = moisture; }
22  void set_conductivity(sensor::Sensor *conductivity) { conductivity_ = conductivity; }
23 
24  protected:
25  uint64_t address_;
28 };
29 
30 } // namespace xiaomi_hhccpot002
31 } // namespace esphome
32 
33 #endif
const float DATA
For components that import data from directly connected sensors like DHT.
Definition: component.cpp:19
void set_moisture(sensor::Sensor *moisture)
bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
uint8_t address
Definition: bl0906.h:211
void set_conductivity(sensor::Sensor *conductivity)
Base-class for all sensors.
Definition: sensor.h:57