ESPHome  2022.6.2
inkbird_ibsth1_mini.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 #ifdef USE_ESP32
8 
9 namespace esphome {
10 namespace inkbird_ibsth1_mini {
11 
13  public:
14  void set_address(uint64_t address) { 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_external_temperature(sensor::Sensor *external_temperature) { external_temperature_ = external_temperature; }
22  void set_humidity(sensor::Sensor *humidity) { humidity_ = humidity; }
23  void set_battery_level(sensor::Sensor *battery_level) { battery_level_ = battery_level; }
24 
25  protected:
26  uint64_t address_;
31 };
32 
33 } // namespace inkbird_ibsth1_mini
34 } // namespace esphome
35 
36 #endif
const float DATA
For components that import data from directly connected sensors like DHT.
Definition: component.cpp:18
void set_external_temperature(sensor::Sensor *external_temperature)
void set_temperature(sensor::Sensor *temperature)
float temperature
Definition: qmp6988.h:71
bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override
Definition: a4988.cpp:4
Base-class for all sensors.
Definition: sensor.h:47
void set_battery_level(sensor::Sensor *battery_level)