mirror of
https://github.com/esphome/esphome.git
synced 2024-12-18 15:57:58 +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
@ -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 &&
|
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]) != 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]);
|
ESP_LOGE(TAG, "Unsupported Sensor Type (0x%X)", manu_data.data[0]);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,9 @@ enum SensorType {
|
|||||||
TOP_DOWN_AIR_ABOVE = 0x04,
|
TOP_DOWN_AIR_ABOVE = 0x04,
|
||||||
BOTTOM_UP_WATER = 0x05,
|
BOTTOM_UP_WATER = 0x05,
|
||||||
LIPPERT_BOTTOM_UP = 0x06,
|
LIPPERT_BOTTOM_UP = 0x06,
|
||||||
PLUS_BOTTOM_UP = 0x08
|
PLUS_BOTTOM_UP = 0x08,
|
||||||
|
PRO_UNIVERSAL = 0xC // Pro Check Universal
|
||||||
|
|
||||||
// all other values are reserved
|
// all other values are reserved
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user