mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 08:28:12 +01:00
Add Pro Check Universal sensor support. (#5798)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
3940c6ac4e
commit
af8258168b
2 changed files with 5 additions and 2 deletions
|
@ -54,7 +54,8 @@ bool MopekaProCheck::parse_device(const esp32_ble_tracker::ESPBTDevice &device)
|
|||
|
||||
if (static_cast<SensorType>(manu_data.data[0]) != STANDARD_BOTTOM_UP &&
|
||||
static_cast<SensorType>(manu_data.data[0]) != LIPPERT_BOTTOM_UP &&
|
||||
static_cast<SensorType>(manu_data.data[0]) != PLUS_BOTTOM_UP) {
|
||||
static_cast<SensorType>(manu_data.data[0]) != PLUS_BOTTOM_UP &&
|
||||
static_cast<SensorType>(manu_data.data[0]) != PRO_UNIVERSAL) {
|
||||
ESP_LOGE(TAG, "Unsupported Sensor Type (0x%X)", manu_data.data[0]);
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -17,7 +17,9 @@ enum SensorType {
|
|||
TOP_DOWN_AIR_ABOVE = 0x04,
|
||||
BOTTOM_UP_WATER = 0x05,
|
||||
LIPPERT_BOTTOM_UP = 0x06,
|
||||
PLUS_BOTTOM_UP = 0x08
|
||||
PLUS_BOTTOM_UP = 0x08,
|
||||
PRO_UNIVERSAL = 0xC // Pro Check Universal
|
||||
|
||||
// all other values are reserved
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue