ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
b_parasite.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::b_parasite {
8
10 SUB_SENSOR(battery_voltage)
11 SUB_SENSOR(temperature)
12 SUB_SENSOR(humidity)
13 SUB_SENSOR(soil_moisture)
14 SUB_SENSOR(illuminance)
15
16 public:
17 void set_address(uint64_t address) { address_ = address; };
18 void set_bindkey(const std::string &bindkey);
19
20 bool parse_device(const ble_device_base::ESPBTDevice &device) override;
21 void dump_config() override;
22
23 protected:
24 // The received advertisement packet contains an unsigned 4 bits wrap-around counter
25 // for deduplicating messages.
27 uint64_t address_;
28};
29
30} // namespace esphome::b_parasite
uint16_t temperature
Definition sun_gtil2.cpp:12