ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
xiaomi_rtcgq02lm.h
Go to the documentation of this file.
1#pragma once
2
4#ifdef USE_BINARY_SENSOR
6#endif
7#ifdef USE_SENSOR
9#endif
12
14
16#ifdef USE_BINARY_SENSOR
17 SUB_BINARY_SENSOR(motion)
18 SUB_BINARY_SENSOR(light)
19 SUB_BINARY_SENSOR(button)
20#endif
21#ifdef USE_SENSOR
22 SUB_SENSOR(battery_level)
23#endif
24
25 public:
26 void dump_config() override;
27
28#ifdef USE_BINARY_SENSOR
29 void set_motion_timeout(uint16_t timeout) { this->motion_timeout_ = timeout; }
30
31 void set_button_timeout(uint16_t timeout) { this->button_timeout_ = timeout; }
32#endif
33
34 protected:
35 void publish_result(const xiaomi_ble::XiaomiParseResult &res) override;
36
37#ifdef USE_BINARY_SENSOR
40
41#endif
42};
43
44} // namespace esphome::xiaomi_rtcgq02lm
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