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