custom-components / ble_monitor

BLE monitor for passive BLE sensors
https://community.home-assistant.io/t/passive-ble-monitor-integration/
MIT License
1.91k stars 247 forks source link

[New Sensor]: Amazfit T-Rex Pro #1207

Open BertrumUK opened 1 year ago

BertrumUK commented 1 year ago

Sensor Description

Amazfit T-Rex Pro Smartwatch with GPS

Additional information

The device gets picked up as a Mi-band by this integration, but the steps and HR always show unknown -

ble heart rate D6F0B8DD207F Unknown ble steps D6F0B8DD207F Unknown

Can this get added to the amazfit.py sensor ?

Theengs decoder picks this up fine, but then I need to use a separate ESP32 to get the data off it - sensor link

The BLE data below shows the renamed device hence why "amazfit_trex_pro" appears in the signal strength logs.

BLE advertisements

2023-07-16 11:29:33.961 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.ble_rssi_amazfit_trex_pro (<class 'custom_components.ble_monitor.sensor.MeasuringSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('signal_strength') it is using; expected one of ['dB', 'dBm']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
2023-07-16 11:30:11.079 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.ble_rssi_amazfit_trex_pro (None) cannot be converted to the unit of previously compiled statistics (dBm). Generation of long term statistics will be suppressed unless the unit changes back to dBm or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2023-07-16 11:33:06.553 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.ble_rssi_amazfit_trex_pro (<class 'custom_components.ble_monitor.sensor.MeasuringSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('signal_strength') it is using; expected one of ['dB', 'dBm']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
2023-07-16 11:33:53.945 INFO (Thread-9) [custom_components.ble_monitor.ble_parser] BLE advertisement received from MAC/UUID d6f0b8dd207f: service data: [b'\x07\x16\xe0\xfe\xd7\x10\x00\x00']manufacturer specific data: []local name: Amazfit T-Rex ProUUID16: 57598,UUID128: None
2023-07-16 11:33:53.952 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.ble_rssi_amazfit_trex_pro (<class 'custom_components.ble_monitor.sensor.MeasuringSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('signal_strength') it is using; expected one of ['dB', 'dBm']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
2023-07-16 11:33:56.155 INFO (Thread-9) [custom_components.ble_monitor.ble_parser] BLE advertisement received from MAC/UUID d6f0b8dd207f: service data: [b'\x07\x16\xe0\xfe\xd7\x10\x00\x00']manufacturer specific data: []local name: Amazfit T-Rex ProUUID16: 57598,UUID128: None
2023-07-16 11:33:58.918 INFO (Thread-9) [custom_components.ble_monitor.ble_parser] BLE advertisement received from MAC/UUID d6f0b8dd207f: service data: [b'\x07\x16\xe0\xfe\xd7\x10\x00\x00']manufacturer specific data: []local name: Amazfit T-Rex ProUUID16: 57598,UUID128: None
2023-07-16 11:33:59.779 INFO (Thread-9) [custom_components.ble_monitor.ble_parser] BLE advertisement received from MAC/UUID d6f0b8dd207f: service data: [b'\x07\x16\xe0\xfe\xd7\x10\x00\x00']manufacturer specific data: []local name: Amazfit T-Rex ProUUID16: 57598,UUID128: None
2023-07-16 11:34:01.433 INFO (Thread-9) [custom_components.ble_monitor.ble_parser] BLE advertisement received from MAC/UUID d6f0b8dd207f: service data: [b'\x07\x16\xe0\xfe\xd7\x10\x00\x00']manufacturer specific data: []local name: Amazfit T-Rex ProUUID16: 57598,UUID128: None
2023-07-16 11:34:04.187 INFO (Thread-9) [custom_components.ble_monitor.ble_parser] BLE advertisement received from MAC/UUID d6f0b8dd207f: service data: [b'\x07\x16\xe0\xfe\xd7\x10\x00\x00']manufacturer specific data: []local name: Amazfit T-Rex ProUUID16: 57598,UUID128: None
2023-07-16 11:34:05.839 INFO (Thread-9) [custom_components.ble_monitor.ble_parser] BLE advertisement received from MAC/UUID d6f0b8dd207f: service data: [b'\x07\x16\xe0\xfe\xd7\x10\x00\x00']manufacturer specific data: []local name: Amazfit T-Rex ProUUID16: 57598,UUID128: None
2023-07-16 11:34:08.033 INFO (Thread-9) [custom_components.ble_monitor.ble_parser] BLE advertisement received from MAC/UUID d6f0b8dd207f: service data: [b'\x07\x16\xe0\xfe\xd7\x10\x00\x00']manufacturer specific data: []local name: Amazfit T-Rex ProUUID16: 57598,UUID128: None
DigiH commented 1 year ago

Hi @BertrumUK,

Just FYI, you do not necessarily need a separate ESP32 to use the Theengs Decoder decoding of your Amazfit T-Rex Pro, you can also use the Theengs Gateway Home Assistant Add-On directly on your HA machine.

BertrumUK commented 1 year ago

Hi @BertrumUK,

Just FYI, you do not necessarily need a separate ESP32 to use the Theengs Decoder decoding of your Amazfit T-Rex Pro, you can also use the Theengs Gateway Home Assistant Add-On directly on your HA machine.

I run this on a pi3b+ but running Theengs as well was getting too much for it so I used an esp32. My main HA is on a Pi4, but Bluetooth on a Pi4 with an SSD connected via usb does not work very well hence why I use the esp32