ESPHome  2024.10.2
xiaomi_hhccjcy10.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 #ifdef USE_ESP32
8 
9 namespace esphome {
10 namespace xiaomi_hhccjcy10 {
11 
13  public:
14  void set_address(uint64_t address) { this->address_ = address; }
15 
16  bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override;
17 
18  void dump_config() override;
19  float get_setup_priority() const override { return setup_priority::DATA; }
21  void set_moisture(sensor::Sensor *moisture) { this->moisture_ = moisture; }
22  void set_conductivity(sensor::Sensor *conductivity) { this->conductivity_ = conductivity; }
23  void set_illuminance(sensor::Sensor *illuminance) { this->illuminance_ = illuminance; }
24  void set_battery_level(sensor::Sensor *battery_level) { this->battery_level_ = battery_level; }
25 
26  protected:
27  uint64_t address_;
33 };
34 
35 } // namespace xiaomi_hhccjcy10
36 } // namespace esphome
37 
38 #endif
const float DATA
For components that import data from directly connected sensors like DHT.
Definition: component.cpp:19
void set_conductivity(sensor::Sensor *conductivity)
bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override
void set_moisture(sensor::Sensor *moisture)
uint16_t temperature
Definition: sun_gtil2.cpp:26
void set_illuminance(sensor::Sensor *illuminance)
void set_temperature(sensor::Sensor *temperature)
void set_battery_level(sensor::Sensor *battery_level)
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
uint8_t address
Definition: bl0906.h:211
Base-class for all sensors.
Definition: sensor.h:57