7namespace xiaomi_mue4094rt {
9static const char *
const TAG =
"xiaomi_mue4094rt";
12 ESP_LOGCONFIG(TAG,
"Xiaomi MUE4094RT");
13 LOG_BINARY_SENSOR(
" ",
"Motion",
this);
18 ESP_LOGVV(TAG,
"parse_device(): unknown MAC address.");
21 char addr_buf[MAC_ADDRESS_PRETTY_BUFFER_SIZE];
23 ESP_LOGVV(TAG,
"parse_device(): MAC address %s found.", addr_str);
28 if (!res.has_value()) {
31 if (res->is_duplicate) {
34 if (res->has_encryption) {
35 ESP_LOGVV(TAG,
"parse_device(): payload decryption is currently not supported on this device.");
44 if (res->has_motion.has_value()) {
ESPDEPRECATED("Use const char* or uint32_t overload instead. Removed in 2026.7.0", "2026.1.0") void set_timeout(const std voi set_timeout)(const char *name, uint32_t timeout, std::function< void()> &&f)
Set a timeout function with a unique name.
void publish_state(bool new_state)
Publish a new state to the front-end.
uint64_t address_uint64() const
const char * address_str_to(std::span< char, MAC_ADDRESS_PRETTY_BUFFER_SIZE > buf) const
Format MAC address into provided buffer, returns pointer to buffer for convenience.
const std::vector< ServiceData > & get_service_datas() const
void dump_config() override
bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override
optional< XiaomiParseResult > parse_xiaomi_header(const esp32_ble_tracker::ServiceData &service_data)
bool parse_xiaomi_message(const std::vector< uint8_t > &message, XiaomiParseResult &result)
bool report_xiaomi_results(const optional< XiaomiParseResult > &result, const char *address)
Providing packet encoding functions for exchanging data with a remote host.