5#ifdef USE_BINARY_SENSOR
17namespace xiaomi_rtcgq02lm {
28#ifdef USE_BINARY_SENSOR
45#ifdef USE_BINARY_SENSOR
Base class for all binary_sensor-type classes.
Base-class for all sensors.
void dump_config() override
sensor::Sensor * battery_level_
void set_motion_timeout(uint16_t timeout)
binary_sensor::BinarySensor * motion_
void set_motion(binary_sensor::BinarySensor *motion)
binary_sensor::BinarySensor * button_
float get_setup_priority() const override
void set_button(binary_sensor::BinarySensor *button)
void set_bindkey(const std::string &bindkey)
void set_button_timeout(uint16_t timeout)
binary_sensor::BinarySensor * light_
bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override
void set_address(uint64_t address)
void set_battery_level(sensor::Sensor *battery_level)
void set_light(binary_sensor::BinarySensor *light)
const float DATA
For components that import data from directly connected sensors like DHT.
Providing packet encoding functions for exchanging data with a remote host.