ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
xiaomi_cgpr1.h
Go to the documentation of this file.
1#pragma once
2
7
8namespace esphome::xiaomi_cgpr1 {
9
10class XiaomiCGPR1 final : public Component,
13 SUB_SENSOR(battery_level)
14 SUB_SENSOR(illuminance)
15 SUB_SENSOR(idle_time)
16
17 public:
18 void dump_config() override;
19
20 protected:
21 void publish_result(const xiaomi_ble::XiaomiParseResult &res) override;
22};
23
24} // namespace esphome::xiaomi_cgpr1
virtual void dump_config()
A XiaomiDevice whose frames are encrypted with a bindkey.
Definition xiaomi_ble.h:92
void publish_result(const xiaomi_ble::XiaomiParseResult &res) override