ESPHome 2025.9.0-dev
Loading...
Searching...
No Matches
xiaomi_hhccpot002.h
Go to the documentation of this file.
1#pragma once
2
7
8#ifdef USE_ESP32
9
10namespace esphome {
11namespace 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 void set_moisture(sensor::Sensor *moisture) { moisture_ = moisture; }
21 void set_conductivity(sensor::Sensor *conductivity) { conductivity_ = conductivity; }
22
23 protected:
24 uint64_t address_;
27};
28
29} // namespace xiaomi_hhccpot002
30} // namespace esphome
31
32#endif
uint8_t address
Definition bl0906.h:4
Base-class for all sensors.
Definition sensor.h:59
bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override
void set_moisture(sensor::Sensor *moisture)
void set_conductivity(sensor::Sensor *conductivity)
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7