ESPHome  2022.8.0
Public Types | Data Fields
esphome::xiaomi_ble::XiaomiParseResult Struct Reference

#include <xiaomi_ble.h>

Public Types

enum  {
  TYPE_HHCCJCY01, TYPE_GCLS002, TYPE_HHCCPOT002, TYPE_LYWSDCGQ,
  TYPE_LYWSD02, TYPE_CGG1, TYPE_LYWSD03MMC, TYPE_CGD1,
  TYPE_CGDK2, TYPE_JQJCY01YM, TYPE_MUE4094RT, TYPE_WX08ZM,
  TYPE_MJYD02YLA, TYPE_MHOC303, TYPE_MHOC401, TYPE_CGPR1,
  TYPE_RTCGQ02LM
}
 

Data Fields

enum esphome::xiaomi_ble::XiaomiParseResult:: { ... }  type
 
std::string name
 
optional< float > temperature
 
optional< float > humidity
 
optional< float > moisture
 
optional< float > conductivity
 
optional< float > illuminance
 
optional< float > formaldehyde
 
optional< float > battery_level
 
optional< float > tablet
 
optional< float > idle_time
 
optional< bool > is_active
 
optional< bool > has_motion
 
optional< bool > is_light
 
optional< bool > button_press
 
bool has_data
 
bool has_capability
 
bool has_encryption
 
bool is_duplicate
 
int raw_offset
 

Detailed Description

Definition at line 11 of file xiaomi_ble.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
TYPE_HHCCJCY01 
TYPE_GCLS002 
TYPE_HHCCPOT002 
TYPE_LYWSDCGQ 
TYPE_LYWSD02 
TYPE_CGG1 
TYPE_LYWSD03MMC 
TYPE_CGD1 
TYPE_CGDK2 
TYPE_JQJCY01YM 
TYPE_MUE4094RT 
TYPE_WX08ZM 
TYPE_MJYD02YLA 
TYPE_MHOC303 
TYPE_MHOC401 
TYPE_CGPR1 
TYPE_RTCGQ02LM 

Definition at line 12 of file xiaomi_ble.h.

Field Documentation

◆ battery_level

optional<float> esphome::xiaomi_ble::XiaomiParseResult::battery_level

Definition at line 38 of file xiaomi_ble.h.

◆ button_press

optional<bool> esphome::xiaomi_ble::XiaomiParseResult::button_press

Definition at line 44 of file xiaomi_ble.h.

◆ conductivity

optional<float> esphome::xiaomi_ble::XiaomiParseResult::conductivity

Definition at line 35 of file xiaomi_ble.h.

◆ formaldehyde

optional<float> esphome::xiaomi_ble::XiaomiParseResult::formaldehyde

Definition at line 37 of file xiaomi_ble.h.

◆ has_capability

bool esphome::xiaomi_ble::XiaomiParseResult::has_capability

Definition at line 46 of file xiaomi_ble.h.

◆ has_data

bool esphome::xiaomi_ble::XiaomiParseResult::has_data

Definition at line 45 of file xiaomi_ble.h.

◆ has_encryption

bool esphome::xiaomi_ble::XiaomiParseResult::has_encryption

Definition at line 47 of file xiaomi_ble.h.

◆ has_motion

optional<bool> esphome::xiaomi_ble::XiaomiParseResult::has_motion

Definition at line 42 of file xiaomi_ble.h.

◆ humidity

optional<float> esphome::xiaomi_ble::XiaomiParseResult::humidity

Definition at line 33 of file xiaomi_ble.h.

◆ idle_time

optional<float> esphome::xiaomi_ble::XiaomiParseResult::idle_time

Definition at line 40 of file xiaomi_ble.h.

◆ illuminance

optional<float> esphome::xiaomi_ble::XiaomiParseResult::illuminance

Definition at line 36 of file xiaomi_ble.h.

◆ is_active

optional<bool> esphome::xiaomi_ble::XiaomiParseResult::is_active

Definition at line 41 of file xiaomi_ble.h.

◆ is_duplicate

bool esphome::xiaomi_ble::XiaomiParseResult::is_duplicate

Definition at line 48 of file xiaomi_ble.h.

◆ is_light

optional<bool> esphome::xiaomi_ble::XiaomiParseResult::is_light

Definition at line 43 of file xiaomi_ble.h.

◆ moisture

optional<float> esphome::xiaomi_ble::XiaomiParseResult::moisture

Definition at line 34 of file xiaomi_ble.h.

◆ name

std::string esphome::xiaomi_ble::XiaomiParseResult::name

Definition at line 31 of file xiaomi_ble.h.

◆ raw_offset

int esphome::xiaomi_ble::XiaomiParseResult::raw_offset

Definition at line 49 of file xiaomi_ble.h.

◆ tablet

optional<float> esphome::xiaomi_ble::XiaomiParseResult::tablet

Definition at line 39 of file xiaomi_ble.h.

◆ temperature

optional<float> esphome::xiaomi_ble::XiaomiParseResult::temperature

Definition at line 32 of file xiaomi_ble.h.

◆ type

enum { ... } esphome::xiaomi_ble::XiaomiParseResult::type

The documentation for this struct was generated from the following file: